#9419 Nightly test failure in test_epn.py::TestEPN::test_EPN_config_file
Closed: fixed 10 months ago by frenaud. Opened 10 months ago by frenaud.

Issue

The test test_epn.py::TestEPN::test_EPN_config_file is failing, see PR#2859 with the following logs and report:

self = <ipatests.test_integration.test_epn.TestEPN object at 0x7f9d43017bd0>

    @pytest.mark.skip_if_platform(
        "debian", reason="Cannot check installed packages using RPM"
    )
    def test_EPN_config_file(self):
        """Check that the EPN configuration file is installed.
           https://pagure.io/freeipa/issue/8374
        """
        epn_conf = "/etc/ipa/epn.conf"
        epn_template = "/etc/ipa/epn/expire_msg.template"
        if tasks.get_platform(self.master) != "fedora":
            cmd1 = self.master.run_command(["rpm", "-qc", "ipa-client-epn"])
        else:
            cmd1 = self.master.run_command(["rpm", "-qc", "freeipa-client-epn"])
        assert epn_conf in cmd1.stdout_text
        assert epn_template in cmd1.stdout_text
        cmd2 = self.master.run_command(["sha256sum", epn_conf])
        ck = "5e56a0f8010ff4f399b206c9e45004823bc05bf6577b34b3e701e4a2935df989"
>       assert cmd2.stdout_text.find(ck) == 0
E       AssertionError: assert -1 == 0
E        +  where -1 = <built-in method find of str object at 0x7f9d42ff4c00>('5e56a0f8010ff4f399b206c9e45004823bc05bf6577b34b3e701e4a2935df989')
E        +    where <built-in method find of str object at 0x7f9d42ff4c00> = '06a73f15562686516c984dd9fe61689c5268ff1c5a13e69f8b347afef41b3277  /etc/ipa/epn.conf\n'.find
E        +      where '06a73f15562686516c984dd9fe61689c5268ff1c5a13e69f8b347afef41b3277  /etc/ipa/epn.conf\n' = <pytest_multihost.transport.SSHCommand object at 0x7f9d432d9d50>.stdout_text

Test scenario:

  • install freeipa-client-epn
  • check that /etc/ipa/epn.conf has the expected checksum, obtained with sha256sum /etc/ipa/epn.conf

The checksum has changed after commit https://pagure.io/freeipa/c/fcad9c9aa76b5e027ca247941620c4e6a4be991e and the test needs to be updated with a new expected value for the checksum.


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

10 months ago

master:

  • 7c5ee21 ipatests: update expected cksum for epn.conf

ipa-4-10:

  • bb9b44f ipatests: update expected cksum for epn.conf

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

10 months ago

Login to comment on this ticket.

Metadata