Changeset - d20f150f3cca
[Not reviewed]
0 3 0
Branko Majic (branko) - 4 years ago 2020-05-07 22:39:04
branko@majic.rs
MAR-149: Fixed typo error in the tests for preseed role (extra _string at end).
3 files changed with 4 insertions and 4 deletions:
0 comments (0 inline, 0 general)
roles/preseed/molecule/default/tests/test_parameters_mandatory.py
Show inline comments
 
@@ -50,13 +50,13 @@ def test_preseed_configuration_file_content(host):
 
    """
 

	
 
    hostname = host.run('hostname').stdout.strip()
 

	
 
    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
 
    assert "d-i debian-installer/country string SE" in preseed_file_content
 
    assert "d-i debian-installer/locale string en_US.UTF-8" in preseed_file_content
 
    assert "d-i keyboard-configuration/xkb-keymap select us" in preseed_file_content
roles/preseed/molecule/default/tests/test_parameters_optional.py
Show inline comments
 
@@ -45,13 +45,13 @@ def test_preseed_configuration_file_content(host):
 
    """
 

	
 
    hostname = host.run('hostname').stdout.strip()
 

	
 
    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
 
    assert "d-i debian-installer/country string RS" in preseed_file_content
 
    assert "d-i debian-installer/locale string en_UK.UTF-8" in preseed_file_content
 
    assert "d-i keyboard-configuration/xkb-keymap select sv" in preseed_file_content
roles/preseed/molecule/default/tests/test_parameters_optional_with_overrides.py
Show inline comments
 
@@ -29,13 +29,13 @@ def test_preseed_configuration_file_content_host_without_overrides(host):
 
    """
 

	
 
    hostname = 'parameters-mandatory-stretch64'
 

	
 
    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
 
    assert "d-i debian-installer/country string SE" in preseed_file_content
 
    assert "d-i debian-installer/locale string en_US.UTF-8" in preseed_file_content
 
    assert "d-i keyboard-configuration/xkb-keymap select us" in preseed_file_content
 
@@ -61,13 +61,13 @@ def test_preseed_configuration_file_content_host_with_overrides(host):
 
    """
 

	
 
    hostname = 'parameters-optional-with-overrides-stretch64'
 

	
 
    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
 
    assert "d-i debian-installer/country string RS" in preseed_file_content
 
    assert "d-i debian-installer/locale string en_UK.UTF-8" in preseed_file_content
 
    assert "d-i keyboard-configuration/xkb-keymap select sv" in preseed_file_content
0 comments (0 inline, 0 general)