Skip to content

Commit 2488a97

Browse files
committed
add a test case for parsing an AWS ECR image reference
1 parent abddb7f commit 2488a97

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

client/src/test/groovy/de/gesellix/docker/client/authentication/ReferenceParserTest.groovy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ class ReferenceParserTest extends Specification {
3737
"sub-dom1.foo.com/bar/baz/quux" || [domain: "sub-dom1.foo.com", path: "bar/baz/quux"]
3838
"sub-dom1.foo.com/bar/baz/quux:some-long-tag" || [repo: [domain: "sub-dom1.foo.com", path: "bar/baz/quux"], tag: "some-long-tag"]
3939
"b.gcr.io/test.example.com/my-app:test.example.com" || [repo: [domain: "b.gcr.io", path: "test.example.com/my-app"], tag: "test.example.com"]
40+
"123456789.dkr.ecr.region.amazonaws.com/my-app:a-tag" || [repo: [domain: "123456789.dkr.ecr.region.amazonaws.com", path: "my-app"], tag: "a-tag"]
4041
// ☃.com in punycode
4142
"xn--n3h.com:18080/foo" || [domain: "xn--n3h.com:18080", path: "foo"]
4243
"xn--n3h.com/myimage:xn--n3h.com" || [repo: [domain: "xn--n3h.com", path: "myimage"], tag: "xn--n3h.com"]

0 commit comments

Comments
 (0)