diff --git a/roles/preseed/molecule/default/tests/test_parameters_mandatory.py b/roles/preseed/molecule/default/tests/test_parameters_mandatory.py index d0060801453de2a70c8ae685ebab2296d8c54a28..7c77d8482c8090bd23e857a325ea53af95269829 100644 --- a/roles/preseed/molecule/default/tests/test_parameters_mandatory.py +++ b/roles/preseed/molecule/default/tests/test_parameters_mandatory.py @@ -53,7 +53,7 @@ def test_preseed_configuration_file_content(host): with host.sudo(): preseed_file = host.file(os.path.join("/tmp/molecule/preseed/default/inventory", "preseed_files", "%s.cfg" % hostname)) - preseed_file_content = preseed_file.content_string_string + preseed_file_content = preseed_file.content_string ssh_public_key = open(os.path.join(os.path.expanduser("~"), ".ssh", "id_rsa.pub")).read().strip() assert "d-i debian-installer/language string en" in preseed_file_content diff --git a/roles/preseed/molecule/default/tests/test_parameters_optional.py b/roles/preseed/molecule/default/tests/test_parameters_optional.py index a781302ad539983bf2b2e39d16e52cc3696287d8..0506f6387f6728b0ea5f8375217f1b1719969ce6 100644 --- a/roles/preseed/molecule/default/tests/test_parameters_optional.py +++ b/roles/preseed/molecule/default/tests/test_parameters_optional.py @@ -48,7 +48,7 @@ def test_preseed_configuration_file_content(host): with host.sudo(): preseed_file = host.file(os.path.join(PRESEED_DIRECTORY, "%s.cfg" % hostname)) - preseed_file_content = preseed_file.content_string_string + preseed_file_content = preseed_file.content_string ssh_public_key = "CUSTOMKEY" assert "d-i debian-installer/language string sr" in preseed_file_content diff --git a/roles/preseed/molecule/default/tests/test_parameters_optional_with_overrides.py b/roles/preseed/molecule/default/tests/test_parameters_optional_with_overrides.py index 2038e662a0e9e69b552dd1dffb19ae5e1fbfacd0..c8ceb22951ac474063ee726892c395c883b2ccdf 100644 --- a/roles/preseed/molecule/default/tests/test_parameters_optional_with_overrides.py +++ b/roles/preseed/molecule/default/tests/test_parameters_optional_with_overrides.py @@ -32,7 +32,7 @@ def test_preseed_configuration_file_content_host_without_overrides(host): with host.sudo(): preseed_file = host.file(os.path.join(PRESEED_DIRECTORY, "%s.cfg" % hostname)) - preseed_file_content = preseed_file.content_string_string + preseed_file_content = preseed_file.content_string ssh_public_key = "CUSTOMKEY" assert "d-i debian-installer/language string en" in preseed_file_content @@ -64,7 +64,7 @@ def test_preseed_configuration_file_content_host_with_overrides(host): with host.sudo(): preseed_file = host.file(os.path.join(PRESEED_DIRECTORY, "%s.cfg" % hostname)) - preseed_file_content = preseed_file.content_string_string + preseed_file_content = preseed_file.content_string ssh_public_key = "CUSTOMKEY" assert "d-i debian-installer/language string sr" in preseed_file_content