Skip to content

Commit

Permalink
fix review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
aganesh-suse committed Apr 5, 2024
1 parent 69871bc commit 77769a8
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions pkg/testcase/secretsencrypt.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,23 +118,17 @@ func verifyStdOut(action, stdout string) {
}

func verifyStatusOutput(action, stdout string) {
Expect(stdout).To(ContainSubstring("Encryption Status: Enabled"))
Expect(stdout).To(ContainSubstring("Server Encryption Hashes: All hashes match"))
switch action {
case "prepare":
Expect(stdout).To(ContainSubstring("Encryption Status: Enabled"))
Expect(stdout).To(ContainSubstring("Current Rotation Stage: prepare"))
Expect(stdout).To(ContainSubstring("Server Encryption Hashes: All hashes match"))
case "rotate":
Expect(stdout).To(ContainSubstring("Encryption Status: Enabled"))
Expect(stdout).To(ContainSubstring("Current Rotation Stage: rotate"))
Expect(stdout).To(ContainSubstring("Server Encryption Hashes: All hashes match"))
case "reencrypt":
Expect(stdout).To(ContainSubstring("Encryption Status: Enabled"))
Expect(stdout).To(ContainSubstring("Current Rotation Stage: reencrypt_finished"))
Expect(stdout).To(ContainSubstring("Server Encryption Hashes: All hashes match"))
case "rotate-keys":
Expect(stdout).To(ContainSubstring("Encryption Status: Enabled"))
Expect(stdout).To(ContainSubstring("Current Rotation Stage: reencrypt_finished"))
Expect(stdout).To(ContainSubstring("Server Encryption Hashes: All hashes match"))
}
}

Expand Down

0 comments on commit 77769a8

Please sign in to comment.