Skip to content

Commit 7016c8e

Browse files
committed
CDH: update unit test for image config
now `image_pull_proxy` is renamed to `https_proxy` and `http_proxy`, thus we need some fixups to update the unit tests. Signed-off-by: Xynnn007 <[email protected]>
1 parent 3c72ac9 commit 7016c8e

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

confidential-data-hub/hub/src/config.rs

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ sigstore_config_uri = "kbs:///default/sigstore-config/test"
188188
image_security_policy_uri = "kbs:///default/security-policy/test"
189189
authenticated_registry_credentials_uri = "kbs:///default/credential/test"
190190
extra_root_certificates = ["cert1", "cert2"]
191-
image_pull_proxy = "http://127.0.0.1:8080"
191+
https_proxy = "http://127.0.0.1:8080"
192192
"#,
193193
Some(CdhConfig {
194194
kbc: KbsConfig {
@@ -202,8 +202,9 @@ image_pull_proxy = "http://127.0.0.1:8080"
202202
sigstore_config_uri: Some("kbs:///default/sigstore-config/test".to_string()),
203203
image_security_policy_uri: Some("kbs:///default/security-policy/test".to_string()),
204204
authenticated_registry_credentials_uri: Some("kbs:///default/credential/test".to_string()),
205-
image_pull_proxy: Some("http://127.0.0.1:8080".into()),
206-
skip_proxy_ips: None,
205+
https_proxy: Some("http://127.0.0.1:8080".into()),
206+
http_proxy: None,
207+
no_proxy: None,
207208
extra_root_certificates: vec!["cert1".into(), "cert2".into()],
208209
..Default::default()
209210
},
@@ -239,8 +240,9 @@ name = "offline_fs_kbc"
239240
sigstore_config_uri: None,
240241
image_security_policy_uri: None,
241242
authenticated_registry_credentials_uri: None,
242-
image_pull_proxy: None,
243-
skip_proxy_ips: None,
243+
https_proxy: None,
244+
http_proxy: None,
245+
no_proxy: None,
244246
..Default::default()
245247
},
246248
socket: DEFAULT_CDH_SOCKET_ADDR.to_string(),
@@ -265,8 +267,9 @@ some_undefined_field = "unknown value"
265267
sigstore_config_uri: None,
266268
image_security_policy_uri: None,
267269
authenticated_registry_credentials_uri: None,
268-
image_pull_proxy: None,
269-
skip_proxy_ips: None,
270+
https_proxy: None,
271+
http_proxy: None,
272+
no_proxy: None,
270273
..Default::default()
271274
},
272275
socket: DEFAULT_CDH_SOCKET_ADDR.to_string(),

0 commit comments

Comments
 (0)