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
This commit is contained in:
Vincent Françoise 2016-02-12 17:28:01 +01:00
parent 379ac791a8
commit 1ddf69a68f

View File

@ -19,7 +19,6 @@ from __future__ import unicode_literals
import uuid import uuid
from tempest import test from tempest import test
from tempest_lib import decorators
from tempest_lib import exceptions as lib_exc from tempest_lib import exceptions as lib_exc
from watcher_tempest_plugin.tests.api.admin import base 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) self.assert_expected(self.audit_template, audit_template)
@decorators.skip_because(bug="1510189")
@test.attr(type='smoke') @test.attr(type='smoke')
def test_filter_audit_template_by_goal(self): 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']) goal=self.audit_template['goal'])
self.assert_expected(self.audit_template, audit_template_uuids = [
audit_template['audit_templates'][0]) at["uuid"] for at in audit_templates['audit_templates']]
self.assertIn(self.audit_template['uuid'], audit_template_uuids)
@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])
@test.attr(type='smoke') @test.attr(type='smoke')
def test_show_audit_template_with_links(self): def test_show_audit_template_with_links(self):