@@ -65,17 +65,18 @@ func TestInstascale(t *testing.T) {
65
65
66
66
if machinePoolsExist {
67
67
// look for machine pool with aw name - expect not to find it
68
- foundMachinePool , err := CheckMachinePools (connection , "test-instascale" )
68
+ foundMachinePool , err := CheckMachinePools (connection , TestName )
69
69
test .Expect (err ).NotTo (HaveOccurred ())
70
70
test .Expect (foundMachinePool ).To (BeFalse ())
71
71
} else if nodePoolsExist {
72
72
// look for node pool with aw name - expect not to find it
73
- foundNodePool , err := CheckNodePools (connection , "test-instascale" )
73
+ foundNodePool , err := CheckNodePools (connection , TestName )
74
74
test .Expect (err ).NotTo (HaveOccurred ())
75
75
test .Expect (foundNodePool ).To (BeFalse ())
76
76
} else {
77
- // TODO update to foundMachineSet
78
-
77
+ foundMachineSet , err := CheckMachineSets (TestName )
78
+ test .Expect (err ).NotTo (HaveOccurred ())
79
+ test .Expect (foundMachineSet ).To (BeFalse ())
79
80
}
80
81
81
82
// Batch Job
@@ -197,17 +198,18 @@ func TestInstascale(t *testing.T) {
197
198
198
199
if machinePoolsExist {
199
200
// look for machine pool with aw name - expect to find it
200
- foundMachinePool , err := CheckMachinePools (connection , "test-instascale" )
201
+ foundMachinePool , err := CheckMachinePools (connection , TestName )
201
202
test .Expect (err ).NotTo (HaveOccurred ())
202
203
test .Expect (foundMachinePool ).To (BeTrue ())
203
204
} else if nodePoolsExist {
204
205
// look for node pool with aw name - expect to find it
205
- foundNodePool , err := CheckNodePools (connection , "test-instascale" )
206
+ foundNodePool , err := CheckNodePools (connection , TestName )
206
207
test .Expect (err ).NotTo (HaveOccurred ())
207
208
test .Expect (foundNodePool ).To (BeTrue ())
208
209
} else {
209
- // TODO update to foundMachineSet
210
-
210
+ foundMachineSet , err := CheckMachineSets (TestName )
211
+ test .Expect (err ).NotTo (HaveOccurred ())
212
+ test .Expect (foundMachineSet ).To (BeTrue ())
211
213
}
212
214
213
215
// Assert that the job has completed
@@ -230,16 +232,17 @@ func TestInstascale(t *testing.T) {
230
232
231
233
if machinePoolsExist {
232
234
// look for machine pool with aw name - expect to find it
233
- foundMachinePool , err := CheckMachinePools (connection , "test-instascale" )
235
+ foundMachinePool , err := CheckMachinePools (connection , TestName )
234
236
test .Expect (err ).NotTo (HaveOccurred ())
235
237
test .Expect (foundMachinePool ).To (BeFalse ())
236
238
} else if nodePoolsExist {
237
239
// look for node pool with aw name - expect to find it
238
- foundNodePool , err := CheckNodePools (connection , "test-instascale" )
240
+ foundNodePool , err := CheckNodePools (connection , TestName )
239
241
test .Expect (err ).NotTo (HaveOccurred ())
240
242
test .Expect (foundNodePool ).To (BeFalse ())
241
243
} else {
242
- // TODO update to foundMachineSet
243
-
244
+ foundMachineSet , err := CheckMachineSets (TestName )
245
+ test .Expect (err ).NotTo (HaveOccurred ())
246
+ test .Expect (foundMachineSet ).To (BeFalse ())
244
247
}
245
248
}
0 commit comments