Example #1
0
 def test_ok(self, cli, migrated_tenant_dbs):
     dbs = list(MIGRATED_TENANT_DBS.keys())
     dbs.sort()
     listedTenants = cli.list_tenants()
     listedTenantsList = listedTenants.split("\n")
     listedTenantsList.remove('')
     listedTenantsList.sort()
     assert dbs == listedTenantsList
Example #2
0
 def test_ok(self, cli, migrated_tenant_dbs):
     dbs = list(MIGRATED_TENANT_DBS.keys())
     dbs.sort()
     code, stdout, stderr = cli.list_tenants()
     assert code == 0
     listedTenants = stdout.decode("utf-8")
     listedTenantsList = listedTenants.split("\n")
     listedTenantsList.remove("")
     listedTenantsList.sort()
     assert dbs == listedTenantsList
Example #3
0
 def test_no_tenants(self, cli):
     assert cli.list_tenants() == ""
Example #4
0
 def test_no_tenants(self, cli):
     assert not cli.list_tenants()[1], "expected no tenants (empty output)"