Skip to content

Commit

Permalink
auth cache hit coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
blampe committed Jan 29, 2024
1 parent e1de845 commit 7dc1e5b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions provider/internal/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ func TestAuth(t *testing.T) {
Password: password,
})
assert.NoError(t, err)

// Perform a second auth; it should be cached.
err = d.Auth(context.Background(), properties.RegistryAuth{
Address: host,
Username: user,
Password: password,
})
assert.NoError(t, err)
}

func TestBuild(t *testing.T) {
Expand Down

0 comments on commit 7dc1e5b

Please sign in to comment.