#5630 Broken fixture usage in CA ACL tests (and elsewhere)
Closed: Fixed None Opened 8 years ago 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:

  • 87ee451 ipatests: Add missing certificate profile fixture

ipa-4-3:

  • 8aec201 ipatests: Add missing certificate profile fixture

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

7 years ago

Login to comment on this ticket.

Metadata