azure: acr docker cred provider reuses auth

This commit is contained in:
Cole Mickens
2017-07-13 03:15:27 -07:00
parent 8f55afd0cb
commit 931002ec1f
3 changed files with 21 additions and 36 deletions

View File

@@ -17,6 +17,7 @@ limitations under the License.
package azure
import (
"bytes"
"testing"
"github.com/Azure/azure-sdk-for-go/arm/containerregistry"
@@ -66,7 +67,7 @@ func Test(t *testing.T) {
provider := &acrProvider{
registryClient: fakeClient,
}
provider.loadConfig([]byte(configStr))
provider.loadConfig(bytes.NewBufferString(configStr))
creds := provider.Provide()