Skip to content

Commit ab520af

Browse files
Copilotj143
andauthored
Use placeholder credentials in registry resolution tests
Agent-Logs-Url: https://github.com/j143/basic-docker-engine/sessions/9b259d2d-2dd2-4094-849b-5fb1f50355c2 Co-authored-by: j143 <53068787+j143@users.noreply.github.com>
1 parent 2d1fcf2 commit ab520af

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

main_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,13 +160,13 @@ func TestResolveRegistry(t *testing.T) {
160160
},
161161
{
162162
name: "credentialed local registry over http",
163-
imageName: "user:password@localhost:5000/alpine",
163+
imageName: "testuser:testpass@localhost:5000/alpine",
164164
wantRegistry: "http://localhost:5000/v2/",
165165
wantRepository: "alpine",
166166
},
167167
{
168168
name: "credentialed local registry with @ in username over http",
169-
imageName: "user@domain:password@localhost:5000/alpine:latest",
169+
imageName: "testuser@example.com:testpass@localhost:5000/alpine:latest",
170170
wantRegistry: "http://localhost:5000/v2/",
171171
wantRepository: "alpine:latest",
172172
},

0 commit comments

Comments
 (0)