mirror of
https://github.com/kubernetes/client-go.git
synced 2025-09-06 09:30:56 +00:00
Remove v1alpha1 of the execcredential
Signed-off-by: Margo Crawford <margaretc@vmware.com> Kubernetes-commit: 5b690b44d08807c6434a421b0041ef685482d337
This commit is contained in:
committed by
Kubernetes Publisher
parent
c47b802895
commit
28b9e26d5f
@@ -23,7 +23,6 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/google/go-cmp/cmp"
|
||||
"k8s.io/client-go/pkg/apis/clientauthentication"
|
||||
"k8s.io/client-go/tools/clientcmd/api"
|
||||
"k8s.io/client-go/tools/metrics"
|
||||
)
|
||||
@@ -153,7 +152,7 @@ func TestCallsMetric(t *testing.T) {
|
||||
// Run refresh creds twice so that our test validates that the metrics are set correctly twice
|
||||
// in a row with the same authenticator.
|
||||
refreshCreds := func() {
|
||||
if err := a.refreshCredsLocked(&clientauthentication.Response{}); (err == nil) != (exitCode == 0) {
|
||||
if err := a.refreshCredsLocked(); (err == nil) != (exitCode == 0) {
|
||||
if err != nil {
|
||||
t.Fatalf("wanted no error, but got %q", err.Error())
|
||||
} else {
|
||||
@@ -183,7 +182,7 @@ func TestCallsMetric(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
a.stderr = io.Discard
|
||||
if err := a.refreshCredsLocked(&clientauthentication.Response{}); err == nil {
|
||||
if err := a.refreshCredsLocked(); err == nil {
|
||||
t.Fatal("expected the authenticator to fail because the plugin does not exist")
|
||||
}
|
||||
wantCallsMetrics = append(wantCallsMetrics, mockCallsMetric{exitCode: 1, errorType: "plugin_not_found_error"})
|
||||
|
Reference in New Issue
Block a user