|
|
|
|
@ -494,11 +494,11 @@ func TestProvisioner_RemoteFileDefaultsToScriptnnnn(t *testing.T) {
|
|
|
|
|
remoteFileRegex := regexp.MustCompile("script_[0-9]{4}.sh")
|
|
|
|
|
|
|
|
|
|
if !remoteFileRegex.MatchString(p.config.RemoteFile) {
|
|
|
|
|
t.Fatalf("remote_file did not default to script_nnnn.sh")
|
|
|
|
|
t.Fatalf("remote_file did not default to script_nnnn.sh: %q", p.config.RemoteFile)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if !remoteFileRegex.MatchString(p.config.RemotePath) {
|
|
|
|
|
t.Fatalf("remote_path did not match script_nnnn.sh")
|
|
|
|
|
t.Fatalf("remote_path did not match script_nnnn.sh: %q", p.config.RemotePath)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|