Add on expectedLabels a missing label.
parent
38d59318b0
commit
c6393b84fb
|
@ -219,7 +219,7 @@ func validateNodeLabels(ctx context.Context, t *testing.T, profile string) {
|
|||
t.Errorf("failed to 'kubectl get nodes' with args %q: %v", rr.Command(), err)
|
||||
}
|
||||
// docs: check if the node labels matches with the expected Minikube labels: `minikube.k8s.io/*`
|
||||
expectedLabels := []string{"minikube.k8s.io/commit", "minikube.k8s.io/version", "minikube.k8s.io/updated_at", "minikube.k8s.io/name"}
|
||||
expectedLabels := []string{"minikube.k8s.io/commit", "minikube.k8s.io/version", "minikube.k8s.io/updated_at", "minikube.k8s.io/name", "minikube.k8s.io/primary"}
|
||||
for _, el := range expectedLabels {
|
||||
if !strings.Contains(rr.Output(), el) {
|
||||
t.Errorf("expected to have label %q in node labels but got : %s", el, rr.Output())
|
||||
|
|
Loading…
Reference in New Issue