fix: [testlive security] change the test org name to not include spaces

there's a lookup via orgname in the URL that causes the tests to fail otherwise
pull/9021/head
iglocska 2023-03-13 15:33:28 +01:00
parent af516ed534
commit e48e7037f9
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 2 additions and 2 deletions

View File

@ -1453,7 +1453,7 @@ class TestSecurity(unittest.TestCase):
with self.__setting("Security.hide_organisation_index_from_users", True):
logged_in = PyMISP(url, self.test_usr.authkey)
for key in (org.id, org.uuid, org.name):
for key in (org.id, org.uuid):
fetched_org = logged_in.get_organisation(key)
check_response(fetched_org)
self.assertNotIn("created_by", fetched_org["Organisation"])
@ -1624,7 +1624,7 @@ class TestSecurity(unittest.TestCase):
def __create_org(self) -> MISPOrganisation:
organisation = MISPOrganisation()
organisation.name = 'Test Org ' + random() # make name always unique
organisation.name = 'TestOrg' + random() # make name always unique
org = self.admin_misp_connector.add_organisation(organisation)
check_response(org)
return org