@@ -15,10 +15,10 @@ func TestGetImagebuilderEnvOffclusterErr(t *testing.T) {
1515 }
1616 env := sys .NewFakeEnv ()
1717 env .Envs = map [string ]string {
18- "DRYCC_STORAGE_LOOKUP " : "path " ,
19- "DRYCC_STORAGE_BUCKET " : "builder " ,
20- "DRYCC_STORAGE_ENDPOINT " : "drycc-storage " ,
21- "DRYCC_REGISTRY_LOCATION" : "off-cluster" ,
18+ "DRYCC_STORAGE_BUCKET " : "builder " ,
19+ "DRYCC_STORAGE_ENDPOINT " : "drycc-storage " ,
20+ "DRYCC_STORAGE_PATH_STYLE " : "auto " ,
21+ "DRYCC_REGISTRY_LOCATION" : "off-cluster" ,
2222 }
2323 _ , err := getImagebuilderEnv (& image , config , env )
2424 assert .Error (t , err , errors .New ("the environment variable DRYCC_REGISTRY_HOST is required" ))
@@ -30,17 +30,17 @@ func TestGetImagebuilderEnvOffclusterErr(t *testing.T) {
3030func TestGetImagebuilderEnvOffclusterSuccess (t * testing.T ) {
3131 env := sys .NewFakeEnv ()
3232 env .Envs = map [string ]string {
33- "DRYCC_STORAGE_LOOKUP" : "path" ,
3433 "DRYCC_STORAGE_BUCKET" : "builder" ,
3534 "DRYCC_STORAGE_ENDPOINT" : "drycc-storage" ,
35+ "DRYCC_STORAGE_PATH_STYLE" : "auto" ,
3636 "DRYCC_REGISTRY_HOST" : "quay.io" ,
3737 "DRYCC_REGISTRY_ORGANIZATION" : "kmala" ,
3838 "DRYCC_REGISTRY_LOCATION" : "off-cluster" ,
3939 }
4040 expectedData := map [string ]string {
41- "DRYCC_STORAGE_LOOKUP" : "path" ,
4241 "DRYCC_STORAGE_BUCKET" : "builder" ,
4342 "DRYCC_STORAGE_ENDPOINT" : "drycc-storage" ,
43+ "DRYCC_STORAGE_PATH_STYLE" : "auto" ,
4444 "DRYCC_REGISTRY_LOCATION" : "off-cluster" ,
4545 "DRYCC_REGISTRY_HOST" : "quay.io" ,
4646 "DRYCC_REGISTRY_ORGANIZATION" : "kmala" ,
@@ -61,17 +61,18 @@ func TestGetImagebuilderEnvOffclusterSuccess(t *testing.T) {
6161func TestGetImagebuilderEnvOnclusterSuccess (t * testing.T ) {
6262 env := sys .NewFakeEnv ()
6363 env .Envs = map [string ]string {
64- "DRYCC_STORAGE_LOOKUP" : "path" ,
6564 "DRYCC_STORAGE_BUCKET" : "builder" ,
6665 "DRYCC_STORAGE_ENDPOINT" : "drycc-storage" ,
66+ "DRYCC_STORAGE_PATH_STYLE" : "auto" ,
6767 "DRYCC_REGISTRY_HOST" : "drycc-registry" ,
6868 "DRYCC_REGISTRY_PROXY_HOST" : "127.0.0.1:8000" ,
6969 "DRYCC_REGISTRY_LOCATION" : "on-cluster" ,
7070 }
7171 expectedData := map [string ]string {
72- "DRYCC_STORAGE_LOOKUP" : "path" ,
72+
7373 "DRYCC_STORAGE_BUCKET" : "builder" ,
7474 "DRYCC_STORAGE_ENDPOINT" : "drycc-storage" ,
75+ "DRYCC_STORAGE_PATH_STYLE" : "auto" ,
7576 "DRYCC_REGISTRY_HOST" : "drycc-registry" ,
7677 "DRYCC_REGISTRY_LOCATION" : "on-cluster" ,
7778 "DRYCC_REGISTRY_PROXY_HOST" : "127.0.0.1:8000" ,
0 commit comments