@@ -234,7 +234,7 @@ var _ = Describe("kismatic", func() {
234
234
235
235
sub .It ("should allow adding a worker node" , func () error {
236
236
newWorker := allWorkers [len (allWorkers )- 1 ]
237
- return addWorkerToCluster (newWorker , sshKey )
237
+ return addWorkerToCluster (newWorker , sshKey , [] string { "com.integrationtest/worker=true" } )
238
238
})
239
239
240
240
sub .It ("should be able to deploy a workload with ingress" , func () error {
@@ -257,6 +257,10 @@ var _ = Describe("kismatic", func() {
257
257
sub .It ("should have tiller running" , func () error {
258
258
return verifyTiller (nodes .master [0 ], sshKey )
259
259
})
260
+
261
+ sub .It ("nodes should contain expected labels" , func () error {
262
+ return containsLabels (nodes , sshKey )
263
+ })
260
264
})
261
265
})
262
266
})
@@ -284,7 +288,7 @@ var _ = Describe("kismatic", func() {
284
288
285
289
sub .It ("should allow adding a worker node" , func () error {
286
290
newWorker := allWorkers [len (allWorkers )- 1 ]
287
- return addWorkerToCluster (newWorker , sshKey )
291
+ return addWorkerToCluster (newWorker , sshKey , [] string { "com.integrationtest/worker=true" } )
288
292
})
289
293
290
294
sub .It ("should be able to deploy a workload with ingress" , func () error {
@@ -307,6 +311,10 @@ var _ = Describe("kismatic", func() {
307
311
sub .It ("should have tiller running" , func () error {
308
312
return verifyTiller (nodes .master [0 ], sshKey )
309
313
})
314
+
315
+ sub .It ("nodes should contain expected labels" , func () error {
316
+ return containsLabels (nodes , sshKey )
317
+ })
310
318
})
311
319
})
312
320
})
@@ -334,7 +342,7 @@ var _ = Describe("kismatic", func() {
334
342
335
343
// sub.It("should allow adding a worker node", func() error {
336
344
// newWorker := allWorkers[len(allWorkers)-1]
337
- // return addWorkerToCluster(newWorker, sshKey)
345
+ // return addWorkerToCluster(newWorker, sshKey, []string{} )
338
346
// })
339
347
340
348
// // This test is flaky with contiv
0 commit comments