added test
This commit is contained in:
parent
de12432e6b
commit
c689eb9694
|
@ -597,8 +597,8 @@ func TestCreateCmdArgs(t *testing.T) {
|
||||||
assert.ElementsMatch(t, args, tc.ExpectedArgs,
|
assert.ElementsMatch(t, args, tc.ExpectedArgs,
|
||||||
"Args didn't match expected:\n\n expected: \n%s\n; recieved: \n%s\n", tc.ExpectedArgs, args)
|
"Args didn't match expected:\n\n expected: \n%s\n; recieved: \n%s\n", tc.ExpectedArgs, args)
|
||||||
assert.ElementsMatch(t, envVars, tc.ExpectedEnvVars, "EnvVars didn't match expected:\n\n expected: \n%s\n; recieved: \n%s\n", tc.ExpectedEnvVars, envVars)
|
assert.ElementsMatch(t, envVars, tc.ExpectedEnvVars, "EnvVars didn't match expected:\n\n expected: \n%s\n; recieved: \n%s\n", tc.ExpectedEnvVars, envVars)
|
||||||
assert.ElementsMatch(t, args[len(args)-1], p.config.PlaybookFile,
|
assert.EqualValues(t, args[len(args)-1], tc.callArgs[2],
|
||||||
"PlayBook File Not Returned as last element: expected \n%s\n; recieved: \n%s\n", args[len(args)-1], p.config.PlaybookFile)
|
"PlayBook File Not Returned as last element: \nexpected: %s\nrecieved: %s\n", args[len(args)-1], tc.callArgs[2])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue