@@ -65,17 +65,18 @@ func TestInstascale(t *testing.T) {
6565
6666 if machinePoolsExist {
6767 // 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 )
6969 test .Expect (err ).NotTo (HaveOccurred ())
7070 test .Expect (foundMachinePool ).To (BeFalse ())
7171 } else if nodePoolsExist {
7272 // 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 )
7474 test .Expect (err ).NotTo (HaveOccurred ())
7575 test .Expect (foundNodePool ).To (BeFalse ())
7676 } else {
77- // TODO update to foundMachineSet
78-
77+ foundMachineSet , err := CheckMachineSets (TestName )
78+ test .Expect (err ).NotTo (HaveOccurred ())
79+ test .Expect (foundMachineSet ).To (BeFalse ())
7980 }
8081
8182 // Batch Job
@@ -197,17 +198,18 @@ func TestInstascale(t *testing.T) {
197198
198199 if machinePoolsExist {
199200 // look for machine pool with aw name - expect to find it
200- foundMachinePool , err := CheckMachinePools (connection , "test-instascale" )
201+ foundMachinePool , err := CheckMachinePools (connection , TestName )
201202 test .Expect (err ).NotTo (HaveOccurred ())
202203 test .Expect (foundMachinePool ).To (BeTrue ())
203204 } else if nodePoolsExist {
204205 // look for node pool with aw name - expect to find it
205- foundNodePool , err := CheckNodePools (connection , "test-instascale" )
206+ foundNodePool , err := CheckNodePools (connection , TestName )
206207 test .Expect (err ).NotTo (HaveOccurred ())
207208 test .Expect (foundNodePool ).To (BeTrue ())
208209 } else {
209- // TODO update to foundMachineSet
210-
210+ foundMachineSet , err := CheckMachineSets (TestName )
211+ test .Expect (err ).NotTo (HaveOccurred ())
212+ test .Expect (foundMachineSet ).To (BeTrue ())
211213 }
212214
213215 // Assert that the job has completed
@@ -230,16 +232,17 @@ func TestInstascale(t *testing.T) {
230232
231233 if machinePoolsExist {
232234 // look for machine pool with aw name - expect to find it
233- foundMachinePool , err := CheckMachinePools (connection , "test-instascale" )
235+ foundMachinePool , err := CheckMachinePools (connection , TestName )
234236 test .Expect (err ).NotTo (HaveOccurred ())
235237 test .Expect (foundMachinePool ).To (BeFalse ())
236238 } else if nodePoolsExist {
237239 // look for node pool with aw name - expect to find it
238- foundNodePool , err := CheckNodePools (connection , "test-instascale" )
240+ foundNodePool , err := CheckNodePools (connection , TestName )
239241 test .Expect (err ).NotTo (HaveOccurred ())
240242 test .Expect (foundNodePool ).To (BeFalse ())
241243 } else {
242- // TODO update to foundMachineSet
243-
244+ foundMachineSet , err := CheckMachineSets (TestName )
245+ test .Expect (err ).NotTo (HaveOccurred ())
246+ test .Expect (foundMachineSet ).To (BeFalse ())
244247 }
245248}
0 commit comments