@@ -29,29 +29,39 @@ class TestCase:
2929 ),
3030 TestCase (
3131 name = "@digest" ,
32- input = "quay.io/libpod/testimage@71f1b47263fc" ,
33- expected = ("quay.io/libpod/testimage" , "71f1b47263fc" ),
32+ input = "quay.io/libpod/testimage@sha256: 71f1b47263fc" ,
33+ expected = ("quay.io/libpod/testimage@sha256 " , "71f1b47263fc" ),
3434 ),
3535 TestCase (
3636 name = ":tag" ,
3737 input = "quay.io/libpod/testimage:latest" ,
3838 expected = ("quay.io/libpod/testimage" , "latest" ),
3939 ),
40+ TestCase (
41+ name = ":tag@digest" ,
42+ input = "quay.io/libpod/testimage:latest@sha256:71f1b47263fc" ,
43+ expected = ("quay.io/libpod/testimage:latest@sha256" , "71f1b47263fc" ),
44+ ),
4045 TestCase (
4146 name = ":port" ,
4247 input = "quay.io:5000/libpod/testimage" ,
4348 expected = ("quay.io:5000/libpod/testimage" , None ),
4449 ),
4550 TestCase (
4651 name = ":port@digest" ,
47- input = "quay.io:5000/libpod/testimage@71f1b47263fc" ,
48- expected = ("quay.io:5000/libpod/testimage" , "71f1b47263fc" ),
52+ input = "quay.io:5000/libpod/testimage@sha256: 71f1b47263fc" ,
53+ expected = ("quay.io:5000/libpod/testimage@sha256 " , "71f1b47263fc" ),
4954 ),
5055 TestCase (
5156 name = ":port:tag" ,
5257 input = "quay.io:5000/libpod/testimage:latest" ,
5358 expected = ("quay.io:5000/libpod/testimage" , "latest" ),
5459 ),
60+ TestCase (
61+ name = ":port:tag:digest" ,
62+ input = "quay.io:5000/libpod/testimage:latest@sha256:71f1b47263fc" ,
63+ expected = ("quay.io:5000/libpod/testimage:latest@sha256" , "71f1b47263fc" ),
64+ ),
5565 ]
5666
5767 for case in cases :
0 commit comments