Update hawk image path to load the container built by Leap16.0#25203
Update hawk image path to load the container built by Leap16.0#25203Dawei-Pang wants to merge 1 commit intoos-autoinst:masterfrom
Conversation
58d4891 to
ab873ef
Compare
alvarocarvajald
left a comment
There was a problem hiding this comment.
It LGTM in general, but I do have 2 suggestions.
tests/ha/hawk_gui.pm
Outdated
| my $image = "registry.opensuse.org/devel/openqa/ci/tooling/containers_15_4/hawk_test:latest"; | ||
|
|
||
| assert_script_run("podman pull $image", 240); | ||
| my $image = get_var('HAWK_IMAGE_URL', 'registry.opensuse.org/devel/openqa/ci/tooling/containers_16_0/hawk_test:latest'); |
There was a problem hiding this comment.
Is HAWK_IMAGE_URL a new setting? If so, I suggest to change it to something more descriptive, such as HAWK_E2E_TEST_IMAGE. "hawk image URL" tells me that we're downloading HAWK from the URL, when what we're actually downloading is a docker/podman image that contains the E2E test and its dependencies.
tests/ha/hawk_gui.pm
Outdated
| assert_script_run("cd /home/$testapi::username"); | ||
| my $test_cmd = "podman run --rm --name test --ipc=host -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=\$DISPLAY -v \$PWD/$path:/$path "; | ||
| record_info("podman images", script_output('podman images')); | ||
| my $test_cmd = $docker_content_trust . "podman run --rm --name test --ipc=host -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=\$DISPLAY -v \$PWD/$path:/$path "; |
There was a problem hiding this comment.
As you're using double quotes, the variable can go between the quotes:
my $test_cmd = "$docker_content_trust podman run --rm --name test --ipc=host -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=\$DISPLAY -v \$PWD/$path:/$path ";
This way you avoid the string concat operation on top of the string interpolation.
There was a problem hiding this comment.
Fixed, thanks Alvaro!
Since $docker_content_trust include trailing space, I uses ${docker_content_trust}podman to make sure podman command without leading space when $docker_content_trust is empty.
ab873ef to
5f29a71
Compare
Please allow me to use this merge request to implement:
Leap15 image:
16.0 https://openqa.suse.de/tests/21718933
15.7 https://openqa.suse.de/tests/21718893
15.6 https://openqa.suse.de/tests/21718900
15.5 https://openqa.suse.de/tests/21718909
15.4 https://openqa.suse.de/tests/21718919
12.5 https://openqa.suse.de/tests/21718926
Leap16 image:
16.0 https://openqa.suse.de/tests/21718929
15.7 https://openqa.suse.de/tests/21718888
15.6 https://openqa.suse.de/tests/21718898
15.5 https://openqa.suse.de/tests/21718906
15.4 https://openqa.suse.de/tests/21718919
12.5 https://openqa.suse.de/tests/21718923