'Creates OperationContract that creates a new Spinnaker Application and validate its creation in Azure Storage.'

def old_create_app(self):

    email = self.bindings.get('TEST_EMAIL', 'testuser@testhost.org')
    payload = self.agent.make_json_payload_from_kwargs(job=[{'type': 'createApplication', 'account': self.bindings['SPINNAKER_AZURE_ACCOUNT'], 'application': {'name': self.bindings['TEST_APP'], 'description': 'Gate    Testing    Application    for    Azure', 'email': email}, 'user': '[anonymous]'}], description='Test    -    create    application    {app}'.format(app=self.bindings['TEST_APP']), application=self.bindings['TEST_APP'])
    builder = az.AzContractBuilder(self.az_observer)
    builder.new_clause_builder('Application    Created', retryable_for_secs=30).collect_resources(az_resource='storage', command='blob', args=['exists', '--container-name', 'front50', '--name', (('applications/' + self.bindings['TEST_APP']) + '/application-metadata.json'), '--account-name', self.bindings['azure_storage_account_name'], '--account-key', self.bindings['spinnaker_azure_storage_account_key']]).EXPECT(ov_factory.value_list_path_contains('exists', jp.EQUIVALENT(True)))
    return st.OperationContract(self.new_post_operation(title='create_app', data=payload, path='tasks'), contract=builder.build())
