From 1ddf69a68f8325334667698c3c3cc87cef63214a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vincent=20Fran=C3=A7oise?= Date: Fri, 12 Feb 2016 17:28:01 +0100 Subject: [PATCH] Re-enable related Tempest test Following the previous 2 patchset https://review.openstack.org/#/c/279517/ and https://review.openstack.org/#/c/279555/, this patchset re-enables the related Tempest test which filters goals while removing the one that was filtering by host aggregate. Change-Id: I384e62320de34761e29d5cbac37ddc8ae253a70c Closes-Bug: #1510189 --- .../tests/api/admin/test_audit_template.py | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/watcher_tempest_plugin/tests/api/admin/test_audit_template.py b/watcher_tempest_plugin/tests/api/admin/test_audit_template.py index a22d31bfc..9a4911049 100644 --- a/watcher_tempest_plugin/tests/api/admin/test_audit_template.py +++ b/watcher_tempest_plugin/tests/api/admin/test_audit_template.py @@ -19,7 +19,6 @@ from __future__ import unicode_literals import uuid from tempest import test -from tempest_lib import decorators from tempest_lib import exceptions as lib_exc from watcher_tempest_plugin.tests.api.admin import base @@ -85,23 +84,14 @@ class TestAuditTemplate(base.BaseInfraOptimTest): self.assert_expected(self.audit_template, audit_template) - @decorators.skip_because(bug="1510189") @test.attr(type='smoke') def test_filter_audit_template_by_goal(self): - _, audit_template = self.client.list_audit_templates( + _, audit_templates = self.client.list_audit_templates( goal=self.audit_template['goal']) - self.assert_expected(self.audit_template, - audit_template['audit_templates'][0]) - - @decorators.skip_because(bug="1510189") - @test.attr(type='smoke') - def test_filter_audit_template_by_host_aggregate(self): - _, audit_template = self.client.list_audit_templates( - host_aggregate=self.audit_template['host_aggregate']) - - self.assert_expected(self.audit_template, - audit_template['audit_templates'][0]) + audit_template_uuids = [ + at["uuid"] for at in audit_templates['audit_templates']] + self.assertIn(self.audit_template['uuid'], audit_template_uuids) @test.attr(type='smoke') def test_show_audit_template_with_links(self):