#5630 Broken fixture usage in CA ACL tests (and elsewhere)
Closed: Fixed Opened by mkubik.

The code was reusing fixtures defined in other modules in unsupported way.
The fixtures are module local unless defined as in 1. This hack worked up until now.

file /var/lib/jenkins/workspace/freeipa-intree-tests-f23master/ipatests/test_xmlrpc/test_caacl_plugin.py, line 92
      def test_category_member_exclusivity(self, category_acl, default_profile):
        fixture 'default_profile' not found
        available fixtures: pytestconfig, class_integration_logs, tmpdir, recwarn, monkeypatch, default_acl, crud_acl, staged_user, integration_logs, mh, capsys, capfd, category_acl
        use 'py.test --fixtures [testpath]' for help on them.
/var/lib/jenkins/workspace/freeipa-intree-tests-f23master/ipatests/test_xmlrpc/test_caacl_plugin.py:92

By the nature of the fixture usage in tests, the correct approach will be to create all needed fixtures per module that uses them.


master:

  • 87ee451c7d9b311192893b2a2c82d8d757281fa6 ipatests: Add missing certificate profile fixture

ipa-4-3:

  • 8aec20124d415daeea3764294224fea47f8e7b0a ipatests: Add missing certificate profile fixture

Metadata Update from @mkubik:
- Issue assigned to mkubik
- Issue set to the milestone: FreeIPA 4.3.1

Metadata