diff --git a/test/suites/standard2/configuration.robot b/test/suites/standard2/configuration.robot index 6da0a34d1b..6e96401a0b 100644 --- a/test/suites/standard2/configuration.robot +++ b/test/suites/standard2/configuration.robot @@ -199,6 +199,14 @@ Crio Uses Crun Runtime ${runtime}= Command Should Work crictl info | jq -r '.runtimeHandlers[].name | select(. != null)' Should Be Equal As Strings ${runtime} crun +Http Proxy Not Defined In Bootc Image + [Documentation] Verify that the http proxy environment variables are not defined + ... in the bootc image used to install the system. + + # Only run the check if the system is a bootc image + ${is_bootc}= Is System Bootc + IF ${is_bootc} Check HTTP Proxy Env In Bootc Image + *** Keywords *** Setup @@ -323,3 +331,18 @@ Is Cipher Available ${stdout} ${stderr} ${rc}= Execute Command openssl ciphers ${cipher} ... sudo=True return_stdout=True return_stderr=True return_rc=True IF "${rc}" == "0" RETURN ${TRUE} ELSE RETURN ${FALSE} + +Check HTTP Proxy Env In Bootc Image + [Documentation] Check that the HTTP proxy environment variables are not defined + ... in the bootc image used to install the system. + # Obtain the current bootc image reference + ${bootc_image}= Command Should Work bootc status --json | jq -r .spec.image.image + # Inspect the bootc image environment variables + ${env_vars}= Command Should Work + ... skopeo inspect --authfile /etc/crio/openshift-pull-secret --config docker://${bootc_image} | jq -r '.config.Env' + + # Verify that the environment variables are not defined + ${env_var_lc}= Convert To Lower Case ${env_vars} + Should Not Contain ${env_var_lc} http_proxy\= + Should Not Contain ${env_var_lc} https_proxy\= + Should Not Contain ${env_var_lc} no_proxy\=