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

The changes made to ipa-run-tests script in fd1b4f6ec9a349196d5df510008c4745f0b1fb84 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

master:

  • dde71ec4a9669a155456a8e8912ed3a0503b8704 Move helper code for integration plugin
  • 2895e3931d0b4a9e20e1b211ef5a76f79fc73c9d Move config module to ipatests.pytest_plugins.integration.config
  • 1406dbc8c223ac0894088146bfe2a8ef0688097a Move env_config module to ipatests.pytest_plugins.integration.env_config
  • 313ae46b573b4cac1075dc1b5bd7294424fabfdb Move tasks module to ipatests.pytest_plugins.integration.tasks
  • 8867412adc0ffd0cacf555a5c3693e04074fed5b Move hosts module to ipatests.pytest_plugins.integration.hosts
  • 8aadd55c93a627e88e007d2df864a5fb72fba0a2 Move function run_repeatedly to tasks module
  • 5587a37e2345de4e76813e00f4b2751d24c618fc Ship ipatests.pytest_plugins.integration
  • 24161a619049e0fb3b954592f64ee6d561320d2c Move remaining util functions to tasks module

ipa-4-5:

  • 1199416d4e2dd1a653a7c1255e446970412fe1d6 Move helper code for integration plugin
  • 025a19c3bf2b446de5c9430142e75eac5887fb04 Move config module to ipatests.pytest_plugins.integration.config
  • e257bbd805b319ed85e5bf8ce6eeac80e7c4139c Move env_config module to ipatests.pytest_plugins.integration.env_config
  • 321437cc72b38bc055c74f0a4bdf54520afb57aa Move tasks module to ipatests.pytest_plugins.integration.tasks
  • 6789dac7a09706036dd13555b4ff2ce244551bc6 Move hosts module to ipatests.pytest_plugins.integration.hosts
  • 4c62c4138c443f78757bd519fad143729af27e53 Move function run_repeatedly to tasks module
  • 87b60f3cfb5e43fa0c37a09051872b496ad72829 Ship ipatests.pytest_plugins.integration
  • cd791843da478625f51e98c502b65e186373a9fa 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)

Metadata