tempest does not see manila test module "api.test_quotas"

Bug #1635588 reported by Valeriy Ponomaryov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Shared File Systems Service (Manila)
Fix Released
High
Valeriy Ponomaryov

Bug Description

And does not execute it.

CI proof:
http://logs.openstack.org/15/389415/1/check/gate-manila-tempest-minimal-dsvm-dummy-ubuntu-xenial/ed15b88/logs/tempest_2/testr_results.html.gz

Local proof:

/opt/stack/tempest$ tox -e venv-tempest -- tempest run --regex manila_tempest_tests.tests.api.test_quotas
venv-tempest develop-inst-noop: /opt/stack/tempest
venv-tempest installed:
...
%list of packets%
...
venv-tempest runtests: PYTHONHASHSEED='1071079297'
venv-tempest runtests: commands[0] | tempest run --regex manila_tempest_tests.tests.api.test_quotas
running=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-500} \
OS_TEST_LOCK_PATH=${OS_TEST_LOCK_PATH:-${TMPDIR:-'/tmp'}} \
${PYTHON:-python} -m subunit.run discover -t ${OS_TOP_LEVEL:-./} ${OS_TEST_PATH:-./tempest/test_discover} --list
running=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-500} \
OS_TEST_LOCK_PATH=${OS_TEST_LOCK_PATH:-${TMPDIR:-'/tmp'}} \
${PYTHON:-python} -m subunit.run discover -t ${OS_TOP_LEVEL:-./} ${OS_TEST_PATH:-./tempest/test_discover} --load-list /tmp/tmpc3teXP
{0} setUpClass (manila_tempest_tests.tests.api.test_quotas_negative.SharesQuotasNegativeTest) ... SKIPPED: Quota tests are disabled.

======
Totals
======
Ran: 1 tests in 16.0000 sec.
 - Passed: 0
 - Skipped: 1
 - Expected Fail: 0
 - Unexpected Success: 0
 - Failed: 0
Sum of execute time for each test: 0.0000 sec.

==============
Worker Balance
==============
 - Worker 0 (1 tests) => 0:00:00

=========================================================================

But it exists:
/opt/stack/manila$ ls -lah manila_tempest_tests/tests/api/ | grep quota
-rw-r--r-- 1 stack stack 2.9K Oct 7 18:14 test_quotas_negative.py
-rw-r--r-- 1 stack stack 2.7K Oct 7 18:14 test_quotas.py

Tags: tempest
description: updated
Changed in manila:
milestone: none → ocata-1
assignee: nobody → Valeriy Ponomaryov (vponomaryov)
tags: added: tempest
Changed in manila:
importance: Undecided → High
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to manila (master)

Fix proposed to branch: master
Review: https://review.openstack.org/389655

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to manila (master)

Reviewed: https://review.openstack.org/389655
Committed: https://git.openstack.org/cgit/openstack/manila/commit/?id=4475a5ca00a7f1d943311c5082996d3d568cbb55
Submitter: Jenkins
Branch: master

commit 4475a5ca00a7f1d943311c5082996d3d568cbb55
Author: Valeriy Ponomaryov <email address hidden>
Date: Fri Oct 21 13:46:47 2016 +0300

    [Tempest] Fix visibility of test_quotas.py module

    Commit [1] added wrong decorator to test class located in
    "manila_tempest_tests/tests/api/test_quotas.py" module that
    made it invisible for tempest.

    It should be "ddt.ddt" instead of "ddt.data" as it is now.

    Also, fix negative quota tests that were testing wrong thing.
    It should have been testing "quota-sets" and "os-quota-sets", not
    "services" and "os-services" as it is now.

    [1] I82f00114db985b4b3bf4db0a64191559508ac600

    Change-Id: Ie0eb7d32b7b032ffdb7f7dd47f68841211e7d7a6
    Closes-Bug: #1635588

Changed in manila:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/manila 4.0.0.0b1

This issue was fixed in the openstack/manila 4.0.0.0b1 development milestone.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.