diff --git a/atst/domain/csp/__init__.py b/atst/domain/csp/__init__.py index d2db2b2a..a40d200c 100644 --- a/atst/domain/csp/__init__.py +++ b/atst/domain/csp/__init__.py @@ -1,9 +1,11 @@ +from .cloud import MockCloudProvider from .files import RackspaceFileProvider from .reports import MockReportingProvider class MockCSP: def __init__(self, app): + self.cloud = MockCloudProvider() self.files = RackspaceFileProvider(app) self.reports = MockReportingProvider() diff --git a/atst/domain/csp/cloud.py b/atst/domain/csp/cloud.py new file mode 100644 index 00000000..ca10aba6 --- /dev/null +++ b/atst/domain/csp/cloud.py @@ -0,0 +1,16 @@ +from uuid import uuid4 + + +class CloudProviderInterface: + def create_application(self, name): # pragma: no cover + """Create an application in the cloud with the provided name. Returns + the ID of the created object. + """ + raise NotImplementedError() + + +class MockCloudProvider(CloudProviderInterface): + def create_application(self, name): + """Returns an id that represents what would be an application in the + cloud.""" + return uuid4().hex