Skip to content

Commit 12eef79

Browse files
committed
deps: Consume testcontainers tinyproxy image from gitlab registry
Signed-off-by: Víctor Cuadrado Juan <vcuadradojuan@suse.de>
1 parent d749a64 commit 12eef79

3 files changed

Lines changed: 15 additions & 13 deletions

File tree

crates/kwctl/tests/proxy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const POLICY_URI: &str = "registry://ghcr.io/kubewarden/tests/pod-privileged:v0.
1515
const LOCAL_POLICY_PATH: &str = "kubewarden/tests/pod-privileged:v0.2.5";
1616

1717
fn start_proxy() -> (Container<GenericImage>, u16) {
18-
let proxy_image = GenericImage::new("kalaksi/tinyproxy", "1.7")
18+
let proxy_image = GenericImage::new("registry.gitlab.com/kalaksi-containers/tinyproxy", "1.7")
1919
.with_wait_for(WaitFor::message_on_stdout("Starting main loop"))
2020
.with_exposed_port(8888.tcp());
2121
let container = proxy_image

crates/policy-evaluator/tests/proxy.rs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@ mod proxy_tests {
1919
use crate::common::setup_callback_handler;
2020

2121
async fn start_proxy() -> (ContainerAsync<GenericImage>, u16) {
22-
let container = GenericImage::new("kalaksi/tinyproxy", "1.7")
23-
.with_wait_for(WaitFor::message_on_stdout("Starting main loop"))
24-
.with_exposed_port(8888.tcp())
25-
.start()
26-
.await
27-
.expect("Failed to start proxy container");
22+
let container =
23+
GenericImage::new("registry.gitlab.com/kalaksi-containers/tinyproxy", "1.7")
24+
.with_wait_for(WaitFor::message_on_stdout("Starting main loop"))
25+
.with_exposed_port(8888.tcp())
26+
.start()
27+
.await
28+
.expect("Failed to start proxy container");
2829
let port = container
2930
.get_host_port_ipv4(8888)
3031
.await

crates/policy-server/tests/integration_test.rs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1312,12 +1312,13 @@ mod proxy_helpers {
13121312
runners::AsyncRunner,
13131313
};
13141314
pub async fn start_proxy() -> (ContainerAsync<GenericImage>, u16) {
1315-
let container = GenericImage::new("kalaksi/tinyproxy", "1.7")
1316-
.with_wait_for(WaitFor::message_on_stdout("Starting main loop"))
1317-
.with_exposed_port(8888.tcp())
1318-
.start()
1319-
.await
1320-
.expect("Failed to start proxy container");
1315+
let container =
1316+
GenericImage::new("registry.gitlab.com/kalaksi-containers/tinyproxy", "1.7")
1317+
.with_wait_for(WaitFor::message_on_stdout("Starting main loop"))
1318+
.with_exposed_port(8888.tcp())
1319+
.start()
1320+
.await
1321+
.expect("Failed to start proxy container");
13211322
let port = container
13221323
.get_host_port_ipv4(8888)
13231324
.await

0 commit comments

Comments
 (0)