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