@@ -83,24 +83,27 @@ var _ = g.Describe("[sig-imageregistry][Serial][Suite:openshift/registry/serial]
83
83
o .Expect (err ).NotTo (o .HaveOccurred ())
84
84
o .Expect (out ).To (o .ContainSubstring ("keyring `/var/lib/origin/gnupg/secring.gpg' created" ))
85
85
86
- // Create kubeconfig for skopeo
86
+ // Create kubeconfig for oc
87
87
g .By ("logging as a test user" )
88
88
out , err = pod .Exec ("oc login https://$KUBERNETES_SERVICE_HOST:$KUBERNETES_SERVICE_PORT --token=" + token + " --certificate-authority=/run/secrets/kubernetes.io/serviceaccount/ca.crt" )
89
89
o .Expect (err ).NotTo (o .HaveOccurred ())
90
90
o .Expect (out ).To (o .ContainSubstring ("Logged in" ))
91
91
92
92
// Sign and copy the memcached image into target image stream tag
93
- // TODO: Fix skopeo to pickup the Kubernetes environment variables (remove the $KUBERNETES_MASTER)
94
93
g .By ("signing the memcached:latest image and pushing it into openshift registry" )
95
94
out , err = pod .Exec (strings .Join ([]string {
96
- "KUBERNETES_MASTER=https://$KUBERNETES_SERVICE_HOST:$KUBERNETES_SERVICE_PORT" ,
97
95
"GNUPGHOME=/var/lib/origin/gnupg" ,
98
- "skopeo" ,
"--debug" ,
"copy" ,
"--sign-by" ,
"[email protected] " ,
96
+ "skopeo" , "--debug" ,
97
+ // Disable the default-docker: file sigstore default in /etc/containers/registries.d, so that the X-Registry-Supports-Signatures protocol is used.
98
+ // Newer versions of Skopeo default to X-R-S-S if present, this test (as of 2021-02) uses skopeo-0.1.40-11.el7_8.x86_64, which defaults to sigstore.
99
+ "--registries.d" , "/this/does/not/exist" ,
100
+
101
+ "copy" ,
"--sign-by" ,
"[email protected] " ,
99
102
"--dest-creds=" + user + ":" + token ,
100
103
// TODO: test with this turned to true as well
101
104
"--dest-tls-verify=false" ,
102
105
"docker://docker.io/library/memcached:latest" ,
103
- "atomic: " + signedImage ,
106
+ "docker:// " + signedImage ,
104
107
}, " " ))
105
108
fmt .Fprintf (g .GinkgoWriter , "output: %s\n " , out )
106
109
o .Expect (err ).NotTo (o .HaveOccurred ())
0 commit comments