@@ -74,8 +74,8 @@ public void test() {
74
74
tomcatClient .inNamespace (TEST_NS ).create (tomcat );
75
75
webappClient .inNamespace (TEST_NS ).create (webapp1 );
76
76
77
- log .info ("Waiting 2 minutes for Tomcat and Webapp CR statuses to be updated" );
78
- await ().atMost (2 , MINUTES ).untilAsserted (() -> {
77
+ log .info ("Waiting 5 minutes for Tomcat and Webapp CR statuses to be updated" );
78
+ await ().atMost (5 , MINUTES ).untilAsserted (() -> {
79
79
Tomcat updatedTomcat = tomcatClient .inNamespace (TEST_NS ).withName (tomcat .getMetadata ().getName ()).get ();
80
80
Webapp updatedWebapp = webappClient .inNamespace (TEST_NS ).withName (webapp1 .getMetadata ().getName ()).get ();
81
81
assertThat (updatedTomcat .getStatus (), is (notNullValue ()));
@@ -85,15 +85,15 @@ public void test() {
85
85
});
86
86
87
87
String url = "http://" + tomcat .getMetadata ().getName () + "/" + webapp1 .getSpec ().getContextPath () + "/" ;
88
- log .info ("Starting curl Pod and waiting 2 minutes for GET of {} to return 200" , url );
88
+ log .info ("Starting curl Pod and waiting 5 minutes for GET of {} to return 200" , url );
89
89
Pod curlPod = client .run ().inNamespace (TEST_NS )
90
90
.withRunConfig (new RunConfigBuilder ()
91
91
.withArgs ("-s" , "-o" , "/dev/null" , "-w" , "%{http_code}" , url )
92
92
.withName ("curl" )
93
93
.withImage ("curlimages/curl:7.78.0" )
94
94
.withRestartPolicy ("Never" )
95
95
.build ()).done ();
96
- await ().atMost (2 , MINUTES ).untilAsserted (() -> {
96
+ await ().atMost (5 , MINUTES ).untilAsserted (() -> {
97
97
try {
98
98
String curlOutput = client .pods ().inNamespace (TEST_NS ).withName (curlPod .getMetadata ().getName ()).getLog ();
99
99
assertThat (curlOutput , equalTo ("200" ));
0 commit comments