Skip to content

Commit

Permalink
Revert "[TEST] Unmute TokenBackwardsCompatibilityIT"
Browse files Browse the repository at this point in the history
This reverts commit 05b2c80 as
the CI is under pressure today and we shouldn't add more flaky
tests. I'll get some data points later in the week
  • Loading branch information
jkakavas committed Jan 16, 2019
1 parent 05b2c80 commit ef54e94
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@

import org.apache.http.HttpHeaders;
import org.apache.http.HttpHost;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.lucene.util.LuceneTestCase.AwaitsFix;
import org.elasticsearch.Version;
import org.elasticsearch.client.Request;
import org.elasticsearch.client.RequestOptions;
Expand All @@ -23,10 +22,9 @@
import java.util.List;
import java.util.Map;

@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/37379")
public class TokenBackwardsCompatibilityIT extends AbstractUpgradeTestCase {

private static final Logger LOGGER = LogManager.getLogger(TokenBackwardsCompatibilityIT.class);

public void testGeneratingTokenInOldCluster() throws Exception {
assumeTrue("this test should only run against the old cluster", CLUSTER_TYPE == ClusterType.OLD);
Request createTokenRequest = new Request("POST", "_xpack/security/oauth2/token");
Expand Down Expand Up @@ -103,7 +101,6 @@ public void testMixedCluster() throws Exception {
try (RestClient client = getRestClientForCurrentVersionNodesOnly()) {
Response response = client.performRequest(createTokenRequest);
Map<String, Object> responseMap = entityAsMap(response);
LOGGER.info("Create token response map: "+responseMap);
String accessToken = (String) responseMap.get("access_token");
String refreshToken = (String) responseMap.get("refresh_token");
assertNotNull(accessToken);
Expand All @@ -118,7 +115,6 @@ public void testMixedCluster() throws Exception {
"}");
response = client.performRequest(tokenRefreshRequest);
responseMap = entityAsMap(response);
LOGGER.info("Refresh token response map: "+responseMap);
String updatedAccessToken = (String) responseMap.get("access_token");
String updatedRefreshToken = (String) responseMap.get("refresh_token");
assertNotNull(updatedAccessToken);
Expand Down

0 comments on commit ef54e94

Please sign in to comment.