t.Errorf("expected node port in the config not change after soft start. exepceted node port to be %d but got %d.",apiPortTest,afterCfg.Config.KubernetesConfig.NodePort)
t.Errorf("expected node port in the config not change after soft start. exepceted node port to be %d but got %d.",apiPortTest,afterCfg.Config.KubernetesConfig.NodePort)
}
}
t.Run("Audit",func(t*testing.T){
got,err:=auditContains(profile)
iferr!=nil{
t.Fatalf("failed to check audit log: %v",err)
}
if!got{
t.Errorf("audit.json does not contain the profile %q",profile)
}
})
}
}
// validateKubeContext asserts that kubectl is properly configured (race-condition prone!)
// validateKubeContext asserts that kubectl is properly configured (race-condition prone!)