def test_create_ok(self, internal_client, clean_db):

        _, r = internal_client.create_tenant('foobar')
        assert r.status_code == 201

        assert 'inventory-foobar' in clean_db.database_names()
        assert 'migration_info' in clean_db['inventory-foobar'].collection_names()
Esempio n. 2
0
    def test_create_ok(self, api_client_int, clean_db):
        _, r = api_client_int.create_tenant("foobar")
        assert r.status_code == 201

        assert "deployment_service-foobar" in clean_db.database_names()
        assert ("migration_info"
                in clean_db["deployment_service-foobar"].collection_names())
Esempio n. 3
0
    def test_create_tenant_ok(self, internal_api, clean_db):
        _, r = internal_api.create_tenant('foobar')
        assert r.status_code == 201

        assert 'deviceauth-foobar' in clean_db.database_names()
        assert 'migration_info' in clean_db[
            'deviceauth-foobar'].collection_names()
Esempio n. 4
0
    def test_create_ok(self, api_client_int, clean_db):
        _, r = api_client_int.create_tenant('foobar')
        assert r.status_code == 201

        assert 'deviceadm-foobar' in clean_db.database_names()
        assert 'migration_info' in clean_db[
            'deviceadm-foobar'].collection_names()
Esempio n. 5
0
    def test_create_ok(self, internal_client, clean_db):

        _, r = internal_client.create_tenant("foobar")
        assert r.status_code == 201

        assert "inventory-foobar" in clean_db.database_names()
        assert "migration_info" in clean_db[
            "inventory-foobar"].collection_names()