Browse Source

Move tests into test/unit

This makes room for a sibling directory for nodepool functional tests.

Change-Id: Iace94d313edb04192ac23a533ed967f076410980
changes/87/424787/1
James E. Blair 4 years ago
parent
commit
2a8e0fa5f1
20 changed files with 3 additions and 2 deletions
  1. +1
    -1
      .testr.conf
  2. +0
    -0
      tests/unit/__init__.py
  3. +0
    -0
      tests/unit/test_change_matcher.py
  4. +0
    -0
      tests/unit/test_clonemapper.py
  5. +0
    -0
      tests/unit/test_cloner.py
  6. +0
    -0
      tests/unit/test_cloner_cmd.py
  7. +0
    -0
      tests/unit/test_connection.py
  8. +0
    -0
      tests/unit/test_daemon.py
  9. +2
    -1
      tests/unit/test_gerrit.py
  10. +0
    -0
      tests/unit/test_layoutvalidator.py
  11. +0
    -0
      tests/unit/test_merger_repo.py
  12. +0
    -0
      tests/unit/test_model.py
  13. +0
    -0
      tests/unit/test_nodepool.py
  14. +0
    -0
      tests/unit/test_openstack.py
  15. +0
    -0
      tests/unit/test_requirements.py
  16. +0
    -0
      tests/unit/test_scheduler.py
  17. +0
    -0
      tests/unit/test_stack_dump.py
  18. +0
    -0
      tests/unit/test_v3.py
  19. +0
    -0
      tests/unit/test_webapp.py
  20. +0
    -0
      tests/unit/test_zuultrigger.py

+ 1
- 1
.testr.conf View File

@ -1,4 +1,4 @@
[DEFAULT]
test_command=OS_LOG_LEVEL=${OS_LOG_LEVEL:-INFO} OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} OS_LOG_CAPTURE=${OS_LOG_CAPTURE:-1} OS_LOG_DEFAULTS=${OS_LOG_DEFAULTS:-""} ${PYTHON:-python} -m subunit.run discover -t ./ tests $LISTOPT $IDOPTION
test_command=OS_LOG_LEVEL=${OS_LOG_LEVEL:-INFO} OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} OS_LOG_CAPTURE=${OS_LOG_CAPTURE:-1} OS_LOG_DEFAULTS=${OS_LOG_DEFAULTS:-""} ${PYTHON:-python} -m subunit.run discover -t ./ ${OS_TEST_PATH:-./tests/unit} $LISTOPT $IDOPTION
test_id_option=--load-list $IDFILE
test_list_option=--list

+ 0
- 0
tests/unit/__init__.py View File


tests/test_change_matcher.py → tests/unit/test_change_matcher.py View File


tests/test_clonemapper.py → tests/unit/test_clonemapper.py View File


tests/test_cloner.py → tests/unit/test_cloner.py View File


tests/test_cloner_cmd.py → tests/unit/test_cloner_cmd.py View File


tests/test_connection.py → tests/unit/test_connection.py View File


tests/test_daemon.py → tests/unit/test_daemon.py View File


tests/test_gerrit.py → tests/unit/test_gerrit.py View File

@ -20,10 +20,11 @@ try:
except ImportError:
import mock
import tests.base
from tests.base import BaseTestCase
from zuul.driver.gerrit.gerritconnection import GerritConnection
FIXTURE_DIR = os.path.join(os.path.dirname(__file__), 'fixtures/gerrit')
FIXTURE_DIR = os.path.join(tests.base.FIXTURE_DIR, 'gerrit')
def read_fixture(file):

tests/test_layoutvalidator.py → tests/unit/test_layoutvalidator.py View File


tests/test_merger_repo.py → tests/unit/test_merger_repo.py View File


tests/test_model.py → tests/unit/test_model.py View File


tests/test_nodepool.py → tests/unit/test_nodepool.py View File


tests/test_openstack.py → tests/unit/test_openstack.py View File


tests/test_requirements.py → tests/unit/test_requirements.py View File


tests/test_scheduler.py → tests/unit/test_scheduler.py View File


tests/test_stack_dump.py → tests/unit/test_stack_dump.py View File


tests/test_v3.py → tests/unit/test_v3.py View File


tests/test_webapp.py → tests/unit/test_webapp.py View File


tests/test_zuultrigger.py → tests/unit/test_zuultrigger.py View File


Loading…
Cancel
Save