Skip to content

Commit 37a69ef

Browse files
committed
Fix CmdCreateRhcos_test.go errors
1 parent e1699e7 commit 37a69ef

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

CmdCreateRhcos_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ func TestParseRhcosFlags(t *testing.T) {
363363
"--sshPublicKey", validSSHKey,
364364
},
365365
expectError: true,
366-
errorMsg: "cloud name is required",
366+
errorMsg: "validation error for field 'Cloud': is required",
367367
},
368368
{
369369
name: "invalid debug flag",
@@ -514,21 +514,21 @@ func TestCreateBootstrapIgnition(t *testing.T) {
514514
passwdHash: "",
515515
sshKey: validSSHKey,
516516
expectError: true,
517-
errorMsg: "password hash cannot be empty",
517+
errorMsg: "validation error for field 'passwdHash': cannot be empty",
518518
},
519519
{
520520
name: "empty ssh key",
521521
passwdHash: validPasswdHash,
522522
sshKey: "",
523523
expectError: true,
524-
errorMsg: "SSH key cannot be empty",
524+
errorMsg: "validation error for field 'sshKey': cannot be empty",
525525
},
526526
{
527527
name: "both empty",
528528
passwdHash: "",
529529
sshKey: "",
530530
expectError: true,
531-
errorMsg: "password hash cannot be empty",
531+
errorMsg: "validation error for field 'passwdHash': cannot be empty",
532532
},
533533
}
534534

@@ -932,4 +932,4 @@ func TestParseRhcosFlags_DebugFlagVariations(t *testing.T) {
932932
}
933933
}
934934

935-
// Made with Bob
935+
// Made with Bob

0 commit comments

Comments
 (0)