@@ -50,13 +50,13 @@ def test_run_app_test(self):
5050 assert cid
5151 cip = self .s2i_app .get_cip (cid_file_name = cid_file_name )
5252 assert cip
53- command = PodmanCLIWrapper .podman_get_file_content (
53+ nginx_config = PodmanCLIWrapper .podman_get_file_content (
5454 cid_file_name = cid , filename = "/opt/app-root/etc/nginx.d/default.conf"
5555 )
5656 # Checks if nginx configuration contains resolver
57- assert re .search ("resolver" , command )
57+ assert re .search ("resolver" , nginx_config )
5858 # Checks if nginx configuration DO NOT container "DNS_SERVER"
59- assert not re .search ("DNS_SERVER" , command )
59+ assert not re .search ("DNS_SERVER" , nginx_config )
6060 assert f"nginx/{ VARS .VERSION_NO_MICRO } " in PodmanCLIWrapper .podman_run_command_and_remove (
6161 cid_file_name = VARS .IMAGE_NAME ,
6262 cmd = "nginx -v"
@@ -84,7 +84,7 @@ def teardown_method(self):
8484
8585 def test_run_app_test (self ):
8686 if VARS .VERSION .endswith ("-micro" ):
87- pytest .skip ("Run the chosen tests (not for micro variant which lacks perl) " )
87+ pytest .skip ("Micro image variant lacks Perl. " )
8888 cid_file_name = self .s2i_app .app_name
8989 self .s2i_app .set_new_image (image_name = f"{ VARS .IMAGE_NAME } -{ cid_file_name } " )
9090 assert self .s2i_app .create_container (cid_file_name = cid_file_name , container_args = "--user 10001" )
@@ -134,7 +134,6 @@ def test_log_output(self):
134134 url = f"http://{ cip } " , port = 8080 , page = "/nothing-at-all" , expected_code = 404
135135 )
136136 logs = self .s2i_app .get_logs (cid_file_name = cid_file_name )
137- assert logs
138137 # Checks logs container 'failed' and 'No such file or directory'
139138 assert re .search ("open.*failed.*No such file or directory" , logs )
140139
0 commit comments