@@ -123,14 +123,13 @@ var _ = ginkgo.Describe("NPD should export Prometheus metrics.", func() {
123
123
ginkgo .Context ("When ext4 filesystem error happens" , func () {
124
124
125
125
ginkgo .BeforeEach (func () {
126
- err := npd .WaitForNPD (instance , []string {"problem_gauge" }, 120 )
127
- Expect (err ).NotTo (HaveOccurred (), fmt .Sprintf ("Expect NPD to become ready in 120s , but hit error: %v" , err ))
126
+ err := npd .WaitForNPD (instance , []string {"problem_gauge" }, 300 )
127
+ Expect (err ).NotTo (HaveOccurred (), fmt .Sprintf ("Expect NPD to become ready in 300s , but hit error: %v" , err ))
128
128
// This will trigger a ext4 error on the boot disk, causing the boot disk mounted as read-only and systemd-journald crashing.
129
129
instance .RunCommandOrFail ("sudo /home/kubernetes/bin/problem-maker --problem Ext4FilesystemError" )
130
130
})
131
131
132
132
ginkgo .It ("NPD should update problem_counter{reason:Ext4Error} and problem_gauge{type:ReadonlyFilesystem}" , func () {
133
- ginkgo .Skip ("SSH connection fails." )
134
133
time .Sleep (5 * time .Second )
135
134
assertMetricValueAtLeast (instance ,
136
135
"problem_counter" , map [string ]string {"reason" : "Ext4Error" },
@@ -141,7 +140,6 @@ var _ = ginkgo.Describe("NPD should export Prometheus metrics.", func() {
141
140
})
142
141
143
142
ginkgo .It ("NPD should remain healthy" , func () {
144
- ginkgo .Skip ("SSH connection fails." )
145
143
npdStates := instance .RunCommandOrFail ("sudo systemctl show node-problem-detector -p ActiveState -p SubState" )
146
144
Expect (npdStates .Stdout ).To (ContainSubstring ("ActiveState=active" ), "NPD is no longer active: %v" , npdStates )
147
145
Expect (npdStates .Stdout ).To (ContainSubstring ("SubState=running" ), "NPD is no longer running: %v" , npdStates )
0 commit comments