Commit Graph

11 Commits

Author SHA1 Message Date
Hirofumi Ichihara 140b99812e Add API tests for Tag resource with standard attribute
This patch added some api tests for tag resource with standard
attribute, which are securitygroup, floatingip, trunk, and policy.

In TagFilter test, identifier of resource was changed from name to
id because floatingip doesn't have name attribute.

Change-Id: I3a20abe00d4cb32b1a84aeb7b05429e776244c3e
Related-bug: #1682775
2017-09-19 15:20:14 +09:00
Ihar Hrachyshka 62c5afbd95 Switch to tempest.common.utils.requires_ext
The old (tempest.test.requires_ext) location is deprecated in Pike.

Change-Id: I79a9c3033fb38780808e02f34966280aa9591bc8
2017-09-13 16:31:14 -06:00
jeremy.zhang 3e4cb0817d Replace test.attr() with decorators.attr()
Function 'tempest.test.attr()' has been moved to'tempest.lib.decorators.attr()'
in Pike and will be removed in a future version [1]. This patch is to replace
'tempest.test.attr()' with 'tempest.lib.decorators.attr()'.

[1] Iaafbb112b6eee458089cc49918359a8a8d0485e2

Depends-On: I50b823b049d0e391ac517f7ec72380a12fa81176
Change-Id: I1e511166a114a79504404c88579f6cb0c4caaebe
2017-07-13 03:31:15 +00:00
rajat29 09e3e902b7 Replace the usage of 'admin_manager' with 'os_admin'
In tempest, alias 'admin_manager' has been moved to 'os_admin'
'alt_manager' to 'os_alt' and 'manager' to 'os_primary' in
version Pike, and it will be removed in version Queens[1].


[1]I5f7164f7a7ec5d4380ca22885000caa0183a0bf7

Closes-bug: 1697588

Change-Id: Ib41a1bcff70cc7323b90a222c9f64d66e0203e53
2017-06-29 11:20:02 +00:00
Jenkins b6bd475629 Merge "api-tests: Common way to define required extensions" 2017-06-08 18:31:59 +00:00
Ihar Hrachyshka 527468be33 api: work around Routes cutting off suffix from resource id
Routes allows for auxiliary format suffix. Sadly it doesn't distinguish
between an actual format suffix (.json) and any other suffix that may be
part of the id. (like for first.second resource tag). To work this
behavior around, we will reattach the 'format' suffix if it is not of a
supported format (json only at the time of writing).

This of course leaves a corner case where there is a tag where .json is
a part of its id. This seems to be a reasonable balance to leave it
unfixed, because an alternative would probably be not backwards
compatible.

Closes-Bug: #1694897
Change-Id: I271107150166f0ee680faaa2e3ca6044cf4e8d4f
2017-06-01 14:13:39 -07:00
Jakub Libosvar 814fbc0501 api-tests: Common way to define required extensions
As some tests require extensions to be enabled on the server, this patch
introduces a new class attribute to the API base class. If any extension
defined in test class is not enabled on the server, then all tests in
the test class will be skipped.

Change-Id: I0629153f973daeb3bef3a6968360cbc2d427f9ad
2017-05-30 15:37:16 +00:00
Ihar Hrachyshka 0cb8fd6374 On update_tags, clean up tags from the requested resource only
There was a bug in I0179a3616689f39d93c337c730283e21a01677cf that made
the service plugin to clean up removed tags from all resources, not just
the one requested.

Change-Id: Ifbe13102ebd903e01eb28a00d97e7e94d1a0e0b1
Closes-Bug: #1673086
2017-03-15 15:11:12 +00:00
Sławek Kapłoński 04618af085 Switch to use idempotent_id decorator from tempest.lib
Decorator idempotent_id() in tempest.test is deprecated and
tempest.lib.decorators.idempotent_id() should be used instead.
This patch switch all tempest tests to use new decorator.

Change-Id: I2df9c13fbb44b8807da6805761ad30bfd010dc55
2017-02-25 14:24:15 +00:00
Hirofumi Ichihara b56f008f3a Enhance tag mechanism
This patch enhances the tag mechanism for subnet, port, subnetpool,
router resources. The tag-ext as new extension is added so that
tag supports their resources.

APIImpact: Adds tag support to subnet, port, subnetpool, router
DocImpact: allow users to set tags on some resources

Change-Id: I3ab8c2f47f283bee7219f39f20b07361b8e0c5f1
Closes-Bug: #1661608
2017-02-04 11:07:04 +09:00
Hirofumi Ichihara a348c38958 Add API test for tag
This patch adds api test for tag.

Change-Id: I87aba26534db179f0744ddee982251e8e1834638
Partial-Implements: blueprint add-tags-to-core-resources
Related-Bug: #1489291
2016-08-16 19:53:19 +09:00