Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Disable flaky tests. Related issues are in repo #1550

Merged
merged 2 commits into from
Jun 17, 2021
Merged
Changes from 1 commit
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
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
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
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
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