File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
client/rest-high-level/src/test/java/org/elasticsearch/client/documentation Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2617,7 +2617,7 @@ public void testCreateServiceAccountToken() throws IOException {
2617
2617
{
2618
2618
// tag::create-service-account-token-request
2619
2619
CreateServiceAccountTokenRequest createServiceAccountTokenRequest =
2620
- new CreateServiceAccountTokenRequest ("elastic" , "fleet-server" , "token1 " );
2620
+ new CreateServiceAccountTokenRequest ("elastic" , "fleet-server" , "my_token_1 " );
2621
2621
// end::create-service-account-token-request
2622
2622
2623
2623
// tag::create-service-account-token-execute
@@ -2629,7 +2629,7 @@ public void testCreateServiceAccountToken() throws IOException {
2629
2629
final String tokenName = createServiceAccountTokenResponse .getName (); // <1>
2630
2630
final SecureString tokenValue = createServiceAccountTokenResponse .getValue (); // <2>
2631
2631
// end::create-service-account-token-response
2632
- assertThat (createServiceAccountTokenResponse .getName (), equalTo ("token1 " ));
2632
+ assertThat (createServiceAccountTokenResponse .getName (), equalTo ("my_token_1 " ));
2633
2633
assertNotNull (tokenValue );
2634
2634
}
2635
2635
You can’t perform that action at this time.
0 commit comments