#6025 CI test backup_and_restore relies on order of IP addresses
Closed: fixed 5 years ago by rcritten. Opened 7 years ago by mbasti.

Test should not rely on order of IP addresses returned from host command, there is no guarantee of order

[ipa.ipatests.test_integration.host.Host.master.ParamikoTransport] RUN ['host', 'master.ipa.test', 'localhost']
[ipa.ipatests.test_integration.host.Host.master.cmd31] RUN ['host', 'master.ipa.test', 'localhost']
[ipa.ipatests.test_integration.host.Host.master.cmd31] Using domain server:
[ipa.ipatests.test_integration.host.Host.master.cmd31] Name: localhost
[ipa.ipatests.test_integration.host.Host.master.cmd31] Address: ::1#53
[ipa.ipatests.test_integration.host.Host.master.cmd31] Aliases: 
[ipa.ipatests.test_integration.host.Host.master.cmd31] 
[ipa.ipatests.test_integration.host.Host.master.cmd31] master.ipa.test has address 192.168.138.101
[ipa.ipatests.test_integration.host.Host.master.cmd31] master.ipa.test has address 192.168.121.13
[ipa.ipatests.test_integration.host.Host.master.cmd31] Exit code: 0
FAILED
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> traceback >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

self = <ipatests.test_integration.test_backup_and_restore.TestBackupAndRestore object at 0x7f649c590b90>

    def test_full_backup_and_restore(self):
        """backup, uninstall, restore"""
        with restore_checker(self.master):
            backup_path = backup(self.master)

            self.master.run_command(['ipa-server-install',
                                     '--uninstall',
                                     '-U'])

            dirman_password = self.master.config.dirman_password
            self.master.run_command(['ipa-restore', backup_path],
>                                   stdin_text=dirman_password + '\nyes')





E           AssertionError: assert_deepequal: expected != got.
E             
E             expected = 'Using domain server:\nName: localhost\nAddress: ::1#53\nAliases: \n\nmaster.ipa.test has address 192.168.121.13\nmaster.ipa.test has address 192.168.138.101\n'
E             got = 'Using domain server:\nName: localhost\nAddress: ::1#53\nAliases: \n\nmaster.ipa.test has address 192.168.138.101\nmaster.ipa.test has address 192.168.121.13\n'
E             path = ('stdout',)

Please check 'check_dns' checker


Metadata Update from @mbasti:
- Issue assigned to someone
- Issue set to the milestone: FreeIPA 4.4.4

7 years ago

Metadata Update from @mbasti:
- Issue close_status updated to: None
- Issue set to the milestone: FreeIPA 4.4.5 (was: FreeIPA 4.4.4)

7 years ago

I'm going to mark this as fixed as we aren't seeing it currently. I couldn't find a commit which directly addressed this issue though.

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

5 years ago

Login to comment on this ticket.

Metadata