@@ -237,6 +237,7 @@ func TestCloudConfigInput(t *testing.T) {
237237 KubernetesVersion : "v1.25.0" ,
238238 Token : strings .Repeat ("a" , 32 ),
239239 TokenTTL : 100 ,
240+ SnapstoreProxyScheme : "https" ,
240241 SnapstoreProxyDomain : "snapstore.domain.com" ,
241242 SnapstoreProxyId : "ID123456789" ,
242243 })
@@ -249,6 +250,7 @@ func TestCloudConfigInput(t *testing.T) {
249250 KubernetesVersion : "v1.25.0" ,
250251 Token : strings .Repeat ("a" , 32 ),
251252 TokenTTL : 100 ,
253+ SnapstoreProxyScheme : "https" ,
252254 SnapstoreProxyDomain : "snapstore.domain.com" ,
253255 SnapstoreProxyId : "ID123456789" ,
254256 })
@@ -260,6 +262,7 @@ func TestCloudConfigInput(t *testing.T) {
260262 return cloudinit .NewJoinWorker (& cloudinit.WorkerInput {
261263 KubernetesVersion : "v1.25.0" ,
262264 Token : strings .Repeat ("a" , 32 ),
265+ SnapstoreProxyScheme : "https" ,
263266 SnapstoreProxyDomain : "snapstore.domain.com" ,
264267 SnapstoreProxyId : "ID123456789" ,
265268 })
@@ -271,7 +274,7 @@ func TestCloudConfigInput(t *testing.T) {
271274 c , err := tc .makeCloudConfig ()
272275 g .Expect (err ).NotTo (HaveOccurred ())
273276
274- g .Expect (c .RunCommands ).To (ContainElement (`/capi-scripts/00-configure-snapstore-proxy.sh "snapstore.domain.com" "ID123456789"` ))
277+ g .Expect (c .RunCommands ).To (ContainElement (`/capi-scripts/00-configure-snapstore-proxy.sh "https" " snapstore.domain.com" "ID123456789"` ))
275278 })
276279 }
277280 })
0 commit comments