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:
Anton Nikulin
2019-06-10 16:00:36 +03:00
committed by Sumit Jaiswal
parent 039eb892ba
commit 4fa93d5b9b
5 changed files with 80 additions and 7 deletions

View File

@@ -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'}