'Delete user ec2 credential.'

@decorators.idempotent_id('6aba0d4c-b76b-4e46-aa42-add79bc1551d')
def test_delete_ec2_credential(self):

    resp = self.non_admin_users_client.create_user_ec2_credential(self.creds.user_id, tenant_id=self.creds.tenant_id)['credential']
    access = resp['access']
    self.non_admin_users_client.delete_user_ec2_credential(self.creds.user_id, access)
    self.assertRaises(lib_exc.NotFound, self.non_admin_users_client.show_user_ec2_credential, self.creds.user_id, access)
