Skip to content

Commit 931ccea

Browse files
author
Tamas Bihari
committed
modify salt_test not to check hostname -f at hostname manipulation
1 parent f8a9305 commit 931ccea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

saltboot/salt_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ func TestSaltMinionRunRequestHandler(t *testing.T) {
105105
t.Errorf("couldn't unmarshall grain yaml: %s", err)
106106
}
107107

108-
if os.Getenv(EXECUTED_COMMANDS) != "hostname -f:hostname -i:ps aux:/sbin/service salt-minion start:/sbin/chkconfig salt-minion on:" {
108+
if os.Getenv(EXECUTED_COMMANDS) != "hostname -s:hostname -d:hostname -i:ps aux:/sbin/service salt-minion start:/sbin/chkconfig salt-minion on:" {
109109
t.Errorf("wrong commands were executed: %s", os.Getenv(EXECUTED_COMMANDS))
110110
}
111111
}

0 commit comments

Comments
 (0)