@@ -1305,8 +1305,10 @@ func (s *SkopeoSuite) TestFailureCopySrcWithMirrorsUnavailable(c *check.C) {
1305
1305
dir , err := ioutil .TempDir ("" , "copy-mirror" )
1306
1306
c .Assert (err , check .IsNil )
1307
1307
1308
- assertSkopeoFails (c , ".*no such host.*" , "--registries-conf=" + regConfFixture , "copy" ,
1309
- "docker://invalid.invalid/busybox" , "dir:" + dir )
1308
+ // .invalid domains are, per RFC 6761, supposed to result in NXDOMAIN.
1309
+ // With systemd-resolved (used only via NSS?), we instead seem to get “Temporary failure in name resolution”
1310
+ assertSkopeoFails (c , ".*(no such host|Temporary failure in name resolution).*" ,
1311
+ "--registries-conf=" + regConfFixture , "copy" , "docker://invalid.invalid/busybox" , "dir:" + dir )
1310
1312
}
1311
1313
1312
1314
func (s * SkopeoSuite ) TestSuccessCopySrcWithMirrorAndPrefix (c * check.C ) {
@@ -1321,8 +1323,10 @@ func (s *SkopeoSuite) TestFailureCopySrcWithMirrorAndPrefixUnavailable(c *check.
1321
1323
dir , err := ioutil .TempDir ("" , "copy-mirror" )
1322
1324
c .Assert (err , check .IsNil )
1323
1325
1324
- assertSkopeoFails (c , ".*no such host.*" , "--registries-conf=" + regConfFixture , "copy" ,
1325
- "docker://gcr.invalid/wrong/prefix/busybox" , "dir:" + dir )
1326
+ // .invalid domains are, per RFC 6761, supposed to result in NXDOMAIN.
1327
+ // With systemd-resolved (used only via NSS?), we instead seem to get “Temporary failure in name resolution”
1328
+ assertSkopeoFails (c , ".*(no such host|Temporary failure in name resolution).*" ,
1329
+ "--registries-conf=" + regConfFixture , "copy" , "docker://gcr.invalid/wrong/prefix/busybox" , "dir:" + dir )
1326
1330
}
1327
1331
1328
1332
func (s * CopySuite ) TestCopyFailsWhenReferenceIsInvalid (c * check.C ) {
0 commit comments