#8590 Nightly test failure in test_integration/test_krbtpolicy.py::TestPWPolicy::test_krbtpolicy_default::setup
Closed: fixed by frenaud. Opened by frenaud.

The nightly test test_integration/test_krbtpolicy.py::TestPWPolicy::test_krbtpolicy_default::setup started failing on the master branch after this commit.

See for instance the nightly PR 538, with logs and report:

self = <ipatests.test_integration.test_krbtpolicy.TestPWPolicy object at 0x7f9de360e8b0>
    @pytest.fixture(autouse=True, scope="class")
    def with_admin(self):
>       tasks.kinit_admin(self.master)
E       AttributeError: 'TestPWPolicy' object has no attribute 'master'
test_integration/test_krbtpolicy.py:72: AttributeError

@rharwood could you have a look? I suspect the fixture is called too early, before the mh fixture that is defined here and sets the master attribute.

Ah, I guess this was missed because CI was broken at the time due to something else. I will look into it, thanks!

Metadata Update from @frenaud:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/5281
- Issue assigned to rharwood

master:

  • 9e0084ba981a274d3a7df82ca020a7c9f8c3e106 Fix krbtpolicy tests

ipa-4-8:

  • 93abf9c1d219f1483e4fc3c5054f7d26d178f415 Fix krbtpolicy tests

ipa-4-9:

  • 17a4198a666453dbec55409d4e2acc37a37b57ac Fix krbtpolicy tests

Metadata Update from @frenaud:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

Metadata