mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 07:27:21 +00:00
add Azure Container Registry anonymous repo support
apply fix for msi and fix test failure
This commit is contained in:
@@ -76,14 +76,14 @@ func Test(t *testing.T) {
|
||||
|
||||
creds := provider.Provide()
|
||||
|
||||
if len(creds) != len(result) {
|
||||
t.Errorf("Unexpected list: %v, expected length %d", creds, len(result))
|
||||
if len(creds) != len(result)+1 {
|
||||
t.Errorf("Unexpected list: %v, expected length %d", creds, len(result)+1)
|
||||
}
|
||||
for _, cred := range creds {
|
||||
if cred.Username != "foo" {
|
||||
if cred.Username != "" && cred.Username != "foo" {
|
||||
t.Errorf("expected 'foo' for username, saw: %v", cred.Username)
|
||||
}
|
||||
if cred.Password != "bar" {
|
||||
if cred.Password != "" && cred.Password != "bar" {
|
||||
t.Errorf("expected 'bar' for password, saw: %v", cred.Username)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user