Fix Typo in Variable Name and Update Test Data for Identifier Validation (#85338)

pull/85343/head
Maxim Evtush 6 months ago committed by GitHub
parent f6be5ab224
commit 778fdcbef1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -114,7 +114,7 @@ $actual = Run-Command -command "cmd.exe /c set" -environment @{ TESTENV2 = "test
$env_not_present = $actual.stdout -split "`r`n" | Where-Object { $_ -eq "TESTENV=test" }
$env_present = $actual.stdout -split "`r`n" | Where-Object { $_ -eq "TESTENV2=testing" }
if ($null -ne $env_not_present) {
Fail-Json -obj $result -message "Test $test_name failed`nenvironment variabel TESTENV found in stdout when it should be`n$($actual.stdout)"
Fail-Json -obj $result -message "Test $test_name failed`nenvironment variable TESTENV found in stdout when it should be`n$($actual.stdout)"
}
if ($null -eq $env_present) {
Fail-json -obj $result -message "Test $test_name failed`nenvironment variable TESTENV2 not found in stdout`n$($actual.stdout)"

@ -207,7 +207,7 @@ class TestBase(unittest.TestCase):
def test_vars_not_valid_identifier(self):
ds = {'environment': [],
'vars': [{'var_2_key': 'var_2_value'},
{'1an-invalid identifer': 'var_1_value'}]
{'1an-invalid identifier': 'var_1_value'}]
}
self.assertRaises(AnsibleParserError, self.b.load_data, ds)

Loading…
Cancel
Save