Skip to content

Commit

Permalink
chore: Disable flaky tests. Related issues are in repo (#1550)
Browse files Browse the repository at this point in the history
* Disable flaky tests. Related issues are in repo

Signed-off-by: Jakub Balhar <[email protected]>

* Provide explanation

Signed-off-by: Jakub Balhar <[email protected]>
  • Loading branch information
balhar-jakub authored Jun 17, 2021
1 parent 421f30d commit 9913803
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import org.apache.http.HttpStatus;
import org.apache.http.client.utils.URIBuilder;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.ValueSource;
Expand Down Expand Up @@ -164,6 +165,7 @@ void givenATTLS_testApplicationBeansEndpoints_Get(String path) throws Exception

@ParameterizedTest(name = "testApplicationInfoEndpoints_Auth {index} {0} ")
@ValueSource(strings = {"/application/info", "/discovery/api/v1/staticApi", "/"})
@Disabled("Unstarted GS breaks this test")
void testApplicationInfoEndpoints_Auth(String path) throws Exception {
RestAssured.useRelaxedHTTPSValidation();
given()
Expand All @@ -176,6 +178,7 @@ void testApplicationInfoEndpoints_Auth(String path) throws Exception {

@ParameterizedTest(name = "testApplicationInfoEndpoints_Cookie {index} {0} ")
@ValueSource(strings = {"/application/info", "/discovery/api/v1/staticApi", "/"})
@Disabled("Unstarted GS breaks this test")
void testApplicationInfoEndpoints_Cookie(String path) throws Exception {
RestAssured.useRelaxedHTTPSValidation();
String jwtToken = SecurityUtils.gatewayToken(username, password);
Expand All @@ -199,6 +202,7 @@ void testDiscoveryEndpoints_whenProvidedCertification() throws Exception {
}

@Test
@Disabled("Unstarted GS breaks this test")
void verifyHttpHeadersOnUi() throws Exception {
RestAssured.useRelaxedHTTPSValidation();
Map<String, String> expectedHeaders = new HashMap<>();
Expand Down Expand Up @@ -239,7 +243,6 @@ void verifyHttpHeadersOnApi() throws Exception {

Response response = RestAssured
.given()
.auth().basic(username, password)
.get(getDiscoveryUriWithPath("/application/info"));
Map<String, String> responseHeaders = new HashMap<>();
response.getHeaders().forEach(h -> responseHeaders.put(h.getName(), h.getValue()));
Expand Down

0 comments on commit 9913803

Please sign in to comment.