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 5 years ago
parent
commit
2a8e0fa5f1
  1. 2
      .testr.conf
  2. 0
      tests/unit/__init__.py
  3. 0
      tests/unit/test_change_matcher.py
  4. 0
      tests/unit/test_clonemapper.py
  5. 0
      tests/unit/test_cloner.py
  6. 0
      tests/unit/test_cloner_cmd.py
  7. 0
      tests/unit/test_connection.py
  8. 0
      tests/unit/test_daemon.py
  9. 3
      tests/unit/test_gerrit.py
  10. 0
      tests/unit/test_layoutvalidator.py
  11. 0
      tests/unit/test_merger_repo.py
  12. 0
      tests/unit/test_model.py
  13. 0
      tests/unit/test_nodepool.py
  14. 0
      tests/unit/test_openstack.py
  15. 0
      tests/unit/test_requirements.py
  16. 0
      tests/unit/test_scheduler.py
  17. 0
      tests/unit/test_stack_dump.py
  18. 0
      tests/unit/test_v3.py
  19. 0
      tests/unit/test_webapp.py
  20. 0
      tests/unit/test_zuultrigger.py

2
.testr.conf

@ -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
tests/unit/__init__.py

0
tests/test_change_matcher.py → tests/unit/test_change_matcher.py

0
tests/test_clonemapper.py → tests/unit/test_clonemapper.py

0
tests/test_cloner.py → tests/unit/test_cloner.py

0
tests/test_cloner_cmd.py → tests/unit/test_cloner_cmd.py

0
tests/test_connection.py → tests/unit/test_connection.py

0
tests/test_daemon.py → tests/unit/test_daemon.py

3
tests/test_gerrit.py → tests/unit/test_gerrit.py

@ -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):

0
tests/test_layoutvalidator.py → tests/unit/test_layoutvalidator.py

0
tests/test_merger_repo.py → tests/unit/test_merger_repo.py

0
tests/test_model.py → tests/unit/test_model.py

0
tests/test_nodepool.py → tests/unit/test_nodepool.py

0
tests/test_openstack.py → tests/unit/test_openstack.py

0
tests/test_requirements.py → tests/unit/test_requirements.py

0
tests/test_scheduler.py → tests/unit/test_scheduler.py

0
tests/test_stack_dump.py → tests/unit/test_stack_dump.py

0
tests/test_v3.py → tests/unit/test_v3.py

0
tests/test_webapp.py → tests/unit/test_webapp.py

0
tests/test_zuultrigger.py → tests/unit/test_zuultrigger.py

Loading…
Cancel
Save