Skip to content

Commit d5e6496

Browse files
ensure license is available before running license api bwc tests (#131422)
1 parent f2a3c14 commit d5e6496

File tree

1 file changed

+9
-0
lines changed
  • x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/java/org/elasticsearch/xpack/test/rest

1 file changed

+9
-0
lines changed

x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/java/org/elasticsearch/xpack/test/rest/XPackRestIT.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import com.carrotsearch.randomizedtesting.annotations.ParametersFactory;
1111

1212
import org.elasticsearch.test.rest.yaml.ClientYamlTestCandidate;
13+
import org.junit.Before;
1314

1415
public class XPackRestIT extends AbstractXPackRestTest {
1516

@@ -21,4 +22,12 @@ public XPackRestIT(ClientYamlTestCandidate testCandidate) {
2122
public static Iterable<Object[]> parameters() throws Exception {
2223
return createParameters();
2324
}
25+
26+
/**
27+
* Some rest tests depend on the trial license being generated before they run
28+
*/
29+
@Before
30+
public void setupLicense() {
31+
super.waitForLicense();
32+
}
2433
}

0 commit comments

Comments
 (0)