Add on expectedLabels a missing label.

pull/16416/head
Marcell Martini 2023-05-09 14:20:46 -04:00
parent 38d59318b0
commit c6393b84fb
1 changed files with 1 additions and 1 deletions

View File

@ -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())