File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 7
7
"testing"
8
8
)
9
9
10
- func TestExtract (t * testing.T ) {
10
+ func TestExtractFromFile (t * testing.T ) {
11
11
vectors := []struct {
12
12
file string // Test input file
13
13
filenames []string // Target files
@@ -52,7 +52,7 @@ func TestExtract(t *testing.T) {
52
52
defer f .Close ()
53
53
54
54
d := DockerExtractor {}
55
- fm , err := d .Extract ( f , v .filenames )
55
+ fm , err := d .ExtractFromFile ( nil , f , v .filenames )
56
56
if v .err != err {
57
57
t .Errorf ("err: got %v, want %v" , v .err , err )
58
58
}
Original file line number Diff line number Diff line change @@ -5,10 +5,10 @@ import (
5
5
"encoding/base64"
6
6
"strings"
7
7
8
- "github.com/prometheus/common/log"
9
-
10
8
"golang.org/x/xerrors"
11
9
10
+ "log"
11
+
12
12
"github.com/aws/aws-sdk-go/aws/session"
13
13
"github.com/aws/aws-sdk-go/service/ecr"
14
14
"github.com/docker/docker/api/types"
@@ -34,7 +34,7 @@ func GetToken(ctx context.Context, auth types.AuthConfig) types.AuthConfig {
34
34
username , password , err = GetGCRAuthorizationToken (ctx )
35
35
}
36
36
if err != nil {
37
- log .Debugf ("failed to get token: %w " , err )
37
+ log .Printf ("failed to get token: %s " , err )
38
38
}
39
39
auth .Username = username
40
40
auth .Password = password
You can’t perform that action at this time.
0 commit comments