Skip to content

Commit

Permalink
Unmute more memory-related tests after the fix in elastic#68542
Browse files Browse the repository at this point in the history
  • Loading branch information
danhermann committed Feb 19, 2021
1 parent 9b81a7e commit 8fb0949
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 21 deletions.
Expand Up @@ -126,4 +126,3 @@ This is a possible response:
// TESTRESPONSE[s/"build_hash": "99a07c016d5a73"/"build_hash": "$body.native_code.build_hash"/]
// TESTRESPONSE[s/"effective_max_model_memory_limit": "28961mb"/"effective_max_model_memory_limit": "$body.limits.effective_max_model_memory_limit"/]
// TESTRESPONSE[s/"total_ml_memory": "86883mb"/"total_ml_memory": "$body.limits.total_ml_memory"/]
// TESTRESPONSE[skip:"AwaitsFix https://github.com/elastic/elasticsearch/issues/66629"]
@@ -1,9 +1,5 @@
---
"cluster stats test":
- skip:
version: "all"
reason: "https://github.com/elastic/elasticsearch/issues/66629"

- do:
cluster.stats: {}

Expand Down Expand Up @@ -37,10 +33,8 @@
---
"get cluster stats returns cluster_uuid at the top level":
- skip:
version: "all"
reason: "https://github.com/elastic/elasticsearch/issues/66629"
#version: " - 6.99.99"
#reason: "cluster stats including cluster_uuid at the top level is new in v6.5.0 and higher"
version: " - 6.99.99"
reason: "cluster stats including cluster_uuid at the top level is new in v6.5.0 and higher"

- do:
cluster.stats: {}
Expand Down
23 changes: 11 additions & 12 deletions server/src/test/java/org/elasticsearch/monitor/os/OsProbeTests.java
Expand Up @@ -8,15 +8,8 @@

package org.elasticsearch.monitor.os;

import static org.hamcrest.Matchers.allOf;
import static org.hamcrest.Matchers.anyOf;
import static org.hamcrest.Matchers.both;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.greaterThan;
import static org.hamcrest.Matchers.greaterThanOrEqualTo;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.lessThanOrEqualTo;
import static org.hamcrest.Matchers.notNullValue;
import org.apache.lucene.util.Constants;
import org.elasticsearch.test.ESTestCase;

import java.io.IOException;
import java.math.BigInteger;
Expand All @@ -26,8 +19,15 @@
import java.util.Locale;
import java.util.stream.Collectors;

import org.apache.lucene.util.Constants;
import org.elasticsearch.test.ESTestCase;
import static org.hamcrest.Matchers.allOf;
import static org.hamcrest.Matchers.anyOf;
import static org.hamcrest.Matchers.both;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.greaterThan;
import static org.hamcrest.Matchers.greaterThanOrEqualTo;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.lessThanOrEqualTo;
import static org.hamcrest.Matchers.notNullValue;

public class OsProbeTests extends ESTestCase {

Expand Down Expand Up @@ -73,7 +73,6 @@ List<String> readOsRelease() throws IOException {
assertThat(info.getAvailableProcessors(), equalTo(Runtime.getRuntime().availableProcessors()));
}

@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/66629")
public void testOsStats() {
final OsProbe osProbe = new OsProbe();
OsStats stats = osProbe.osStats();
Expand Down

0 comments on commit 8fb0949

Please sign in to comment.