#6798 Changes to ipa-run-tests broke helper test tools
Closed: fixed 7 years ago Opened 7 years ago by mkubik.

The changes made to ipa-run-tests script in fd1b4f6 broke the ipa-test-config and ipa-test-task scripts which are not executed via pytest.

This changes also broke the CI as the jobs make use of these scripts.

Traceback (most recent call last):
  File "/usr/bin/ipa-test-config", line 30, in <module>
    from ipatests.test_integration import config, env_config
  File "/usr/lib/python2.7/site-packages/ipatests/test_integration/__init__.py", line 22, in <module>
    if pytest.config.getoption('ipaclient_unittests', False):
AttributeError: 'module' object has no attribute 'config'

Metadata Update from @pvoborni:
- Issue set to the milestone: FreeIPA 4.6

7 years ago

master:

  • dde71ec Move helper code for integration plugin
  • 2895e39 Move config module to ipatests.pytest_plugins.integration.config
  • 1406dbc Move env_config module to ipatests.pytest_plugins.integration.env_config
  • 313ae46 Move tasks module to ipatests.pytest_plugins.integration.tasks
  • 8867412 Move hosts module to ipatests.pytest_plugins.integration.hosts
  • 8aadd55 Move function run_repeatedly to tasks module
  • 5587a37 Ship ipatests.pytest_plugins.integration
  • 24161a6 Move remaining util functions to tasks module

ipa-4-5:

  • 1199416 Move helper code for integration plugin
  • 025a19c Move config module to ipatests.pytest_plugins.integration.config
  • e257bbd Move env_config module to ipatests.pytest_plugins.integration.env_config
  • 321437c Move tasks module to ipatests.pytest_plugins.integration.tasks
  • 6789dac Move hosts module to ipatests.pytest_plugins.integration.hosts
  • 4c62c41 Move function run_repeatedly to tasks module
  • 87b60f3 Ship ipatests.pytest_plugins.integration
  • cd79184 Move remaining util functions to tasks module

Metadata Update from @tkrizek:
- Issue close_status updated to: fixed
- Issue priority set to: 3
- Issue set to the milestone: FreeIPA 4.5.1 (was: FreeIPA 4.6)
- Issue status updated to: Closed (was: Open)

7 years ago

Login to comment on this ticket.

Metadata