'Creates OperationContract that deletes a new Spinnaker Application and validates its deletion in Azure Storage.'

def old_delete_app(self):

    payload = self.agent.make_json_payload_from_kwargs(job=[{'type': 'deleteApplication', 'account': self.bindings['SPINNAKER_AZURE_ACCOUNT'], 'application': {'name': self.bindings['TEST_APP']}, 'user': '[anonymous]'}], description='Test    -    delete    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(False)))
    return st.OperationContract(self.new_post_operation(title='delete_app', data=payload, path='tasks'), contract=builder.build())
