#8631 Nightly failure (389ds master branch) in test_commands.py::TestIPACommand::test_ipa_nis_manage_enable_incorrect_password
Closed: fixed 2 years ago by frenaud. Opened 2 years ago by frenaud.

The nightly test test_commands.py::TestIPACommand::test_ipa_nis_manage_enable_incorrect_password is failing when using the nightly copr repo @389ds/389-ds-base-nightly, see PR #601 with the following logs and report:

self = <ipatests.test_integration.test_commands.TestIPACommand object at 0x7f50f93b76a0>

    def test_ipa_nis_manage_enable_incorrect_password(self):
        This testcase checks if ipa-nis-manage enable
        command throws error on console for invalid DS admin password
        msg = (
            "Insufficient access: Invalid credentials "
            "Invalid credentials\n"
        result = self.master.run_command(
            ["ipa-nis-manage", "enable"],
        assert result.returncode == 1
>       assert msg in result.stderr_text
E       AssertionError: assert 'Insufficient access: Invalid credentials Invalid credentials\n' in 'Insufficient access:  Invalid credentials\n'
E        +  where 'Insufficient access:  Invalid credentials\n' = <pytest_multihost.transport.SSHCommand object at 0x7f50f93ceb20>.stderr_text

test_integration/test_commands.py:1299: AssertionError
 -------------------------------Captured log call-------------------------------- 
INFO     ipatests.pytest_ipa.integration.host.Host.master.IPAOpenSSHTransport:transport.py:391 RUN ['ipa-nis-manage', 'enable']
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd439:transport.py:513 RUN ['ipa-nis-manage', 'enable']
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd439:transport.py:557 Insufficient access:  Invalid credentials
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd439:transport.py:557 Directory Manager password: 
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd439:transport.py:217 Exit code: 1

In the past, the command used to return
Insufficient access: Invalid credentials Invalid credentials but now the error is Insufficient access: Invalid credentials.
The new behavior was probably caused by commit cc0f692, fixing #4480 (Unexpected info returned to ldap request).

The test needs to be adapted.

Metadata Update from @frenaud:
- Issue assigned to frenaud

2 years ago

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

2 years ago


  • e7949e2 ipatests: fix expected error message in test_commands


  • 0fa18ee ipatests: fix expected error message in test_commands


  • 8bc3418 ipatests: fix expected error message in test_commands

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

2 years ago

Login to comment on this ticket.