Source: ansible Version: 10.1.0+dfsg-1 Severity: serious User: debian...@lists.debian.org Usertags: regression
Dear maintainer(s),Your package has an autopkgtest, great. However, it fails. Can you please investigate the situation and fix it? I copied some of the output at the bottom of this report. Apart from the failure, the test dependencies are also not available in testing: python3-pyvmomi has an RC bug.
The release team has announced [1] that failing autopkgtest on amd64 and arm64 are considered RC in testing.
More information about this bug and the reason for filing it can be found on https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation
Paul [1] https://lists.debian.org/debian-devel-announce/2019/07/msg00002.html https://ci.debian.net/packages/a/ansible/unstable/amd64/50066821/220s ______ TestNiosHostRecordModule.test_nios_host_record_update_record_name _______
220s [gw21] linux -- Python 3.12.4 /usr/bin/python3 220s220s self = <ansible_collections.infoblox.nios_modules.tests.unit.plugins.modules.test_nios_host_record.TestNiosHostRecordModule testMethod=test_nios_host_record_update_record_name>
220s 220s def test_nios_host_record_update_record_name(self):220s self.module.params = {'provider': None, 'state': 'present', 'name': {'new_name': 'default', 'old_name': 'old_default'},
220s 'comment': 'comment', 'extattrs': None} 220s 220s test_object = [ 220s { 220s "comment": "test comment",220s "_ref": "record:host/ZG5zLm5ldHdvcmtfdmlldyQw:default/true",
220s "name": "default", 220s "old_name": "old_default", 220s "extattrs": {} 220s } 220s ] 220s 220s test_spec = { 220s "name": {"ib_req": True}, 220s "comment": {}, 220s "extattrs": {} 220s } 220s 220s wapi = self._get_wapi(test_object) 220s res = wapi.run('testobject', test_spec) 220s 220s self.assertTrue(res['changed']) 220s > wapi.update_object.called_once_with(test_object) 220s 220s tests/unit/plugins/modules/test_nios_host_record.py:155:220s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
220s 220s self = <Mock name='update_object' id='140531195205616'> 220s name = 'called_once_with' 220s 220s def __getattr__(self, name): 220s if name in {'_mock_methods', '_mock_unsafe'}: 220s raise AttributeError(name) 220s elif self._mock_methods is not None: 220s if name not in self._mock_methods or name in _all_magics:220s raise AttributeError("Mock object has no attribute %r" % name)
220s elif _is_magic(name): 220s raise AttributeError(name)220s if not self._mock_unsafe and (not self._mock_methods or name not in self._mock_methods): 220s if name.startswith(('assert', 'assret', 'asert', 'aseert', 'assrt')) or name in _ATTRIB_DENY_LIST:
220s > raise AttributeError( 220s f"{name!r} is not a valid assertion. Use a spec "220s f"for the mock if {name!r} is meant to be an attribute.") 220s E AttributeError: 'called_once_with' is not a valid assertion. Use a spec for the mock if 'called_once_with' is meant to be an attribute.. Did you mean: 'assert_called_once_with'?
220s 220s /usr/lib/python3.12/unittest/mock.py:663: AttributeError ... 654s #### failed tests are: 654s #### ansible_collections/infoblox/nios_modules/tests/unit 654s #### ansible_collections/google/cloud/tests/unit 654s #### ansible_collections/cyberark/conjur/tests/unit 654s #### ansible_collections/community/vmware/tests/unit 654s #### ansible_collections/community/network/tests/unit 654s #### ansible_collections/community/grafana/tests/unit
OpenPGP_signature.asc
Description: OpenPGP digital signature