Skip to content

Commit 1bb7d75

Browse files
committed
[DOCS] Fixes gradle errors
1 parent 32f0b81 commit 1bb7d75

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

x-pack/docs/build.gradle

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -739,15 +739,13 @@ setups['admin_role'] = '''
739739
setups['jacknich_user'] = '''
740740
- do:
741741
xpack.security.put_user:
742-
username: "jacknich"
743-
body: >
744-
{
745-
"password" : "j@rV1s",
746-
"roles" : [ "admin", "other_role1" ],
747-
"full_name" : "Jack Nicholson",
748-
"email" : "[email protected]",
749-
"metadata" : {
750-
"intelligence" : 7
751-
}
752-
}
742+
username: "jacknich"
743+
body: >
744+
{
745+
"password" : "test-password",
746+
"roles" : [ "admin", "other_role1" ],
747+
"full_name" : "Jack Nicholson",
748+
"email" : "[email protected]",
749+
"metadata" : { "intelligence" : 7 }
750+
}
753751
'''

x-pack/docs/en/rest-api/security/get-users.asciidoc

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -46,21 +46,23 @@ user. Note that user passwords are not included.
4646

4747
[source,js]
4848
--------------------------------------------------
49-
{
50-
"jacknich": { <1>
51-
"username" : "jacknich",
52-
"roles" : [ "admin", "other_role1" ],
53-
"full_name" : "Jack Nicholson",
54-
"email" : "[email protected]",
55-
"enabled": true,
56-
"metadata" : {
57-
"intelligence" : 7
58-
}
49+
{
50+
"jacknich": {
51+
"username": "jacknich",
52+
"roles": [
53+
"admin", "other_role1"
54+
],
55+
"full_name": "Jack Nicholson",
56+
"email": "[email protected]",
57+
"metadata": { "intelligence" : 7 },
58+
"enabled": true
5959
}
6060
}
6161
--------------------------------------------------
62+
// CONSOLE
6263
// TESTRESPONSE
63-
<1> If the user is not defined in the `native` realm, the request 404s.
64+
65+
If the user is not defined in the `native` realm, the request 404s.
6466

6567
Omit the username to retrieve all users:
6668

0 commit comments

Comments
 (0)