Fix check-uuid not working

'check-uuid' and 'check-uuid --fix' are not working because we do not
set package name for them. This patch fixes that.

Change-Id: I553c364e3fc0d640620a01046dd7f70bdb704be2
Closes-Bug: #1678407
This commit is contained in:
Jeremy Liu 2017-04-01 16:19:09 +08:00
parent 934acae7a1
commit 78b192553a
2 changed files with 4 additions and 2 deletions

View File

@ -13,6 +13,7 @@
# License for the specific language governing permissions and limitations
# under the License.
from tempest.lib import decorators
from tempest import test
from patrole_tempest_plugin import rbac_rule_validation
@ -39,6 +40,7 @@ class DeferredDeleteRbacTest(rbac_base.BaseV2ComputeRbacTest):
super(DeferredDeleteRbacTest, cls).resource_setup()
cls.server = cls.create_test_server(wait_until='ACTIVE')
@decorators.idempotent_id('189bfed4-1e6d-475c-bb8c-d57e60895391')
@rbac_rule_validation.action(
service="nova",
rule="os_compute_api:os-deferred-delete")

View File

@ -19,10 +19,10 @@ commands =
[testenv:pep8]
commands = flake8 {posargs}
check-uuid
check-uuid --package patrole_tempest_plugin.tests.api
[testenv:uuidgen]
commands = check-uuid --fix
commands = check-uuid --package patrole_tempest_plugin.tests.api --fix
[testenv:venv]
commands = {posargs}