#9918 TestFailure: test_random_serial_numbers.py::TestIPACommand_RSN::test_expiration_date_post_2038
Closed: fixed by frenaud. Opened by pthube.

Summary:
expire_password fixture defined at module level in test_commands.py
TestIPACommand_RSN (in test_random_serial_numbers.py) inherits TestIPACommand but not the module-level fixture
Pytest can't find expire_password when running inherited test

Root Cause:
Module-level fixtures aren't inherited across files. Only class methods are inherited.

Fix:
Move expire_password fixture inside TestIPACommand class as a method.

Affected:
test_integration/test_random_serial_numbers.py::TestIPACommand_RSN::test_expiration_date_post_2038


Metadata Update from @pthube:
- Issue tagged with: test-failure

How is it failing? This configuration has worked for the past 15 months AFAIK.

master:

  • 209d2dc4ec95e357b187bb795f182ea1e12a1068 ipatests: Move expire_password fixture into TestIPACommand class

ipa-4-13:

  • 1c86c973c8dc778a71c8e2abf54ff37ececdd696 ipatests: Move expire_password fixture into TestIPACommand class

ipa-4-12:

  • dcd36ccc47e0b10ab2663a48da4f31a0c699f8d6 ipatests: Move expire_password fixture into TestIPACommand class

Metadata Update from @frenaud:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/8099

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

Metadata