diff --git a/client/rest-high-level/src/test/java/org/elasticsearch/client/documentation/SecurityDocumentationIT.java b/client/rest-high-level/src/test/java/org/elasticsearch/client/documentation/SecurityDocumentationIT.java index 7c57d3076c076..669f807479020 100644 --- a/client/rest-high-level/src/test/java/org/elasticsearch/client/documentation/SecurityDocumentationIT.java +++ b/client/rest-high-level/src/test/java/org/elasticsearch/client/documentation/SecurityDocumentationIT.java @@ -2614,7 +2614,6 @@ public void onFailure(Exception e) { } } - @AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/74278") public void testCreateServiceAccountToken() throws IOException { RestHighLevelClient client = highLevelClient(); { @@ -2723,14 +2722,13 @@ public void onFailure(Exception e) { } } - @AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/74278") public void testGetServiceAccountCredentials() throws IOException { RestHighLevelClient client = highLevelClient(); final CreateServiceAccountTokenRequest createServiceAccountTokenRequest = - new CreateServiceAccountTokenRequest("elastic", "fleet-server", "token1"); + new CreateServiceAccountTokenRequest("elastic", "fleet-server", "token2"); final CreateServiceAccountTokenResponse createServiceAccountTokenResponse = client.security().createServiceAccountToken(createServiceAccountTokenRequest, RequestOptions.DEFAULT); - assertThat(createServiceAccountTokenResponse.getName(), equalTo("token1")); + assertThat(createServiceAccountTokenResponse.getName(), equalTo("token2")); { // tag::get-service-account-credentials-request @@ -2752,7 +2750,7 @@ public void testGetServiceAccountCredentials() throws IOException { // end::get-service-account-credentials-response assertThat(principal, equalTo("elastic/fleet-server")); assertThat(serviceTokenInfos.size(), equalTo(1)); - assertThat(tokenName, equalTo("token1")); + assertThat(tokenName, equalTo("token2")); assertThat(tokenSource, equalTo("index")); } @@ -2786,7 +2784,7 @@ public void onFailure(Exception e) { assertNotNull(future.actionGet()); assertThat(future.actionGet().getPrincipal(), equalTo("elastic/fleet-server")); assertThat(future.actionGet().getServiceTokenInfos().size(), equalTo(1)); - assertThat(future.actionGet().getServiceTokenInfos().get(0), equalTo(new ServiceTokenInfo("token1", "index"))); + assertThat(future.actionGet().getServiceTokenInfos().get(0), equalTo(new ServiceTokenInfo("token2", "index"))); } }