Skip to content

Commit 384cc1e

Browse files
committed
Suppress LicensingDocumentationIT.testPutLicense in release builds
The testPutLicense test tries to put a license generated using snapshot keys into release cluster. This commit suppresses the test during the release builds. Closes elastic#32580
1 parent bc274b2 commit 384cc1e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/rest-high-level/src/test/java/org/elasticsearch/client/documentation/LicensingDocumentationIT.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
package org.elasticsearch.client.documentation;
2121

22-
import org.apache.lucene.util.LuceneTestCase.AwaitsFix;
22+
import org.elasticsearch.Build;
2323
import org.elasticsearch.action.ActionListener;
2424
import org.elasticsearch.action.LatchedActionListener;
2525
import org.elasticsearch.client.ESRestHighLevelClientTestCase;
@@ -41,10 +41,10 @@
4141
* Documentation for Licensing APIs in the high level java client.
4242
* Code wrapped in {@code tag} and {@code end} tags is included in the docs.
4343
*/
44-
@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/32580")
4544
public class LicensingDocumentationIT extends ESRestHighLevelClientTestCase {
4645

4746
public void testPutLicense() throws Exception {
47+
assumeTrue("License is only valid when tested against snapshot/test builds", Build.CURRENT.isSnapshot());
4848
RestHighLevelClient client = highLevelClient();
4949
String license = "{\"license\": {\"uid\":\"893361dc-9749-4997-93cb-802e3d7fa4a8\",\"type\":\"gold\"," +
5050
"\"issue_date_in_millis\":1411948800000,\"expiry_date_in_millis\":1914278399999,\"max_nodes\":1,\"issued_to\":\"issued_to\"," +

0 commit comments

Comments
 (0)