@@ -50,7 +50,10 @@ def test_dockerfiles(self, dockerfile):
5050 assert self .app .test_app_dockerfile ()
5151 cip = self .app .get_cip ()
5252 assert cip
53- assert self .app .test_response (url = cip , expected_code = 200 , expected_output = "Welcome to your static httpd application on OpenShift" )
53+ assert self .app .test_response (
54+ url = f"http://{ cip } " ,
55+ expected_output = "Welcome to your static httpd application on OpenShift"
56+ )
5457
5558 @pytest .mark .parametrize (
5659 "mpm_config" ,
@@ -67,7 +70,7 @@ def test_mpm_config(self, mpm_config):
6770 # Let's check that server really response HTTP-403
6871 # See function here: in test/run `_run_mpm_config_test`
6972 # https://github.com/sclorg/httpd-container/blob/master/test/run#L97
70- assert self .app .test_response (url = cip , port = 8080 , expected_code = 403 )
73+ assert self .app .test_response (url = f"http:// { cip } " , expected_code = 403 )
7174 logs = self .app .get_logs (cid_file_name = cid_name )
7275 assert re .search (f"mpm_{ mpm_config } :notice.*resuming normal operations" , logs )
7376
@@ -86,7 +89,7 @@ def test_log_to_data_volume(self):
8689 container_args = f"-e HTTPD_LOG_TO_VOLUME=1 --user 0 -v { data_dir } :/var/log/httpd"
8790 )
8891 cip = self .app .get_cip (cid_file_name = "test_log_dir" )
89- assert self .app .test_response (url = cip , port = 8080 , expected_code = 403 )
92+ assert self .app .test_response (url = f"http:// { cip } " , expected_code = 403 )
9093 assert ContainerTestLibUtils .check_files_are_present (
9194 dir_name = data_dir , file_name_to_check = [
9295 "access_log" ,
@@ -113,4 +116,4 @@ def test_data_volume(self):
113116 )
114117 cip = self .app .get_cip (cid_file_name = "doc_root" )
115118 assert cip
116- assert self .app .test_response (url = cip , port = 8080 , expected_code = 200 , expected_output = "hello" )
119+ assert self .app .test_response (url = f"http:// { cip } " , expected_output = "hello" )
0 commit comments