def setUpClass(cls): cls.credential = Credential() cls.dbaas_api = DatabaseAsAServiceApi(credentials=cls.credential) cls.provider = Provider(dbaas_api=cls.dbaas_api, host_class=FakeHostClass, group_class=FakeGroup) cls.host = cls.provider.create_export(size_kb=512, host=FakeCloudClass)
def setUpClass(cls): cls.credential = Credential() cls.dbaas_api = DatabaseAsAServiceApi(credentials=cls.credential) cls.provider = Provider(dbaas_api=cls.dbaas_api, host_class=FakeHostClass, group_class=FakeGroup)
def get_faas_provider(environment): faas_credentials = get_credentials_for(environment=environment, credential_type=CredentialType.FAAS) dbaas_api = DatabaseAsAServiceApi(credentials=faas_credentials) return Provider(dbaas_api, HostAttr)