-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmirror.patch
30 lines (25 loc) · 949 Bytes
/
mirror.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
diff --git a/conformance/setup.go b/conformance/setup.go
index 50ff4c8..b267e6d 100644
--- a/conformance/setup.go
+++ b/conformance/setup.go
@@ -77,6 +77,7 @@ const (
envVarCrossmountNamespace = "OCI_CROSSMOUNT_NAMESPACE"
envVarAutomaticCrossmount = "OCI_AUTOMATIC_CROSSMOUNT"
envVarReportDir = "OCI_REPORT_DIR"
+ envVarMirrorURL = "OCI_MIRROR_URL"
emptyLayerTestTag = "emptylayer"
testTagName = "tagtest0"
@@ -185,6 +186,8 @@ func init() {
crossmountNamespace = fmt.Sprintf("conformance-%s", uuid.New())
}
+ mirrorURL := os.Getenv(envVarMirrorURL)
+
debug, _ := strconv.ParseBool(os.Getenv(envVarDebug))
for envVar, enableTest := range testMap {
@@ -209,6 +212,8 @@ func init() {
client.SetLogger(logger)
client.SetCookieJar(nil)
+ client.SetQueryParam("ns", mirrorURL)
+
// create a unique config for each workflow category
for i := 0; i < numWorkflows; i++ {