@@ -50,9 +50,9 @@ func TestInstascaleMachinePool(t *testing.T) {
50
50
defer connection .Close ()
51
51
52
52
// check existing cluster machine pool resources
53
- // look for machine pool with aw name - expect not to find it
53
+ // look for a machine pool with a label key equal to aw name - expect NOT to find it
54
54
test .Expect (GetMachinePools (test , connection )).
55
- ShouldNot (ContainElement (WithTransform (MachinePoolId , Equal ("test-instascale-g4dn-xlarge " ))))
55
+ ShouldNot (ContainElement (WithTransform (MachinePoolLabels , HaveKey ("test-instascale" ))))
56
56
57
57
// Setup batch job and AppWrapper
58
58
aw := instaScaleJobAppWrapper (test , namespace , cm )
@@ -66,15 +66,15 @@ func TestInstascaleMachinePool(t *testing.T) {
66
66
test .Eventually (AppWrapper (test , namespace , aw .Name ), TestTimeoutGpuProvisioning ).
67
67
Should (WithTransform (AppWrapperState , Equal (mcadv1beta1 .AppWrapperStateActive )))
68
68
69
- // look for machine pool with aw name - expect to find it
69
+ // look for a machine pool with a label key equal to aw name - expect to find it
70
70
test .Eventually (MachinePools (test , connection ), TestTimeoutLong ).
71
- Should (ContainElement (WithTransform (MachinePoolId , Equal ("test-instascale-g4dn-xlarge " ))))
71
+ Should (ContainElement (WithTransform (MachinePoolLabels , HaveKey ("test-instascale" ))))
72
72
73
73
test .Eventually (AppWrapper (test , namespace , aw .Name ), TestTimeoutShort ).
74
74
Should (WithTransform (AppWrapperState , Equal (mcadv1beta1 .AppWrapperStateCompleted )))
75
75
76
- // look for machine pool with aw name - expect not to find it
76
+ // look for a machine pool with a label key equal to aw name - expect NOT to find it
77
77
test .Eventually (MachinePools (test , connection ), TestTimeoutLong ).
78
- ShouldNot (ContainElement (WithTransform (MachinePoolId , Equal ("test-instascale-g4dn-xlarge " ))))
78
+ ShouldNot (ContainElement (WithTransform (MachinePoolLabels , HaveKey ("test-instascale" ))))
79
79
80
80
}
0 commit comments