Example #1
0
 def setUp(self) -> None:
     self.__mpsiemworker = MPSIEMWorker(self.__creds_ldap, self.__settings)
     self.__module = self.__mpsiemworker.get_module(ModuleNames.INCIDENTS)
     self.__end = round(
         datetime.now(
             tz=pytz.timezone(settings.local_timezone)).timestamp())
     self.__begin = self.__end - 86400 * 5
Example #2
0
 def setUp(self) -> None:
     self.__mpsiemworker = MPSIEMWorker(self.__creds_ldap, self.__settings)
     self.__module = self.__mpsiemworker.get_module(ModuleNames.TABLES)
Example #3
0
 def test_MPSIEMAuth_get_storage_version(self):
     mpsiemworker = MPSIEMWorker(self.__creds_ldap, self.__settings)
     module = mpsiemworker.get_module(ModuleNames.AUTH)
     version = module.get_storage_version()
     self.assertTrue(version.startswith("7"))
Example #4
0
 def test_MPSIEMAuth_connect_core_ldap(self):
     mpsiemworker = MPSIEMWorker(self.__creds_ldap, self.__settings)
     module = mpsiemworker.get_module(ModuleNames.AUTH)
     session = module.connect(MPComponents.CORE)
     self.assertIsInstance(session, requests.Session)
     session.close()
Example #5
0
 def setUp(self) -> None:
     self.__creds_ldap = creds_ldap
     self.__creds_local = creds_local
     self.__settings = settings
     self.__mpsiemworker = MPSIEMWorker(self.__creds_ldap, self.__settings)