Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions test/suites/standard2/configuration.robot
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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\=