mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
FTD configuration module: fix a bug with response parsing (#57480)
* Update dependence's name to firepower-kickstart * Check response type before getting attributes * Add unit test for construct_ansible_facts method * Update error message
This commit is contained in:
committed by
Sumit Jaiswal
parent
039eb892ba
commit
4fa93d5b9b
@@ -85,7 +85,7 @@ class TestFtdInstall(object):
|
||||
|
||||
result = ex.value.args[0]
|
||||
assert result['failed']
|
||||
assert "Firepower-kick library is required to run this module" in result['msg']
|
||||
assert "Firepower-kickstart library is required to run this module" in result['msg']
|
||||
|
||||
def test_module_should_fail_when_platform_is_not_supported(self, config_resource_mock):
|
||||
config_resource_mock.execute_operation.return_value = {'platformModel': 'nonSupportedModel'}
|
||||
|
||||
Reference in New Issue
Block a user