Skip to content

Commit 392b64a

Browse files
committed
test(e2e): expect SCEP on the status Protocols line
The status Protocols line lists SCEP since SCEP support landed, so after the reboots it reads "ACME on, EST on, SCEP off" and "ACME off, EST on, SCEP off". The protocol switch step matched the line up to its newline without SCEP and failed although the switch itself worked. Signed-off-by: Bugs5382 <12115015+Bugs5382@users.noreply.github.com>
1 parent 1288e2f commit 392b64a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎test/integration/image_suite_test.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1168,7 +1168,7 @@ func stepProtocolsOn(t *testing.T, s *suite, st *suiteState) {
11681168
}
11691169
st.inter.reboot(t, suiteIntCN)
11701170
status = st.inter.status(t)
1171-
if !strings.Contains(status, "Protocols: ACME on, EST on\n") || strings.Contains(status, "Reboot:") {
1171+
if !strings.Contains(status, "Protocols: ACME on, EST on, SCEP off\n") || strings.Contains(status, "Reboot:") {
11721172
t.Fatalf("after the reboot, want ACME and EST running and no pending reboot:\n%s", status)
11731173
}
11741174
resp, err := (&http.Client{Timeout: 10 * time.Second}).Get("http://127.0.0.1:" + intACMEPort + "/acme/directory")
@@ -1193,7 +1193,7 @@ func stepProtocolsOff(t *testing.T, s *suite, st *suiteState) {
11931193
}
11941194
st.inter.reboot(t, suiteIntCN)
11951195
status = st.inter.status(t)
1196-
if !strings.Contains(status, "Protocols: ACME off, EST on\n") || strings.Contains(status, "Reboot:") {
1196+
if !strings.Contains(status, "Protocols: ACME off, EST on, SCEP off\n") || strings.Contains(status, "Reboot:") {
11971197
t.Fatalf("after the reboot, want ACME off, EST on and nothing pending:\n%s", status)
11981198
}
11991199
if c, err := net.DialTimeout("tcp", "127.0.0.1:"+intACMEPort, 3*time.Second); err == nil {

0 commit comments

Comments
 (0)