Skip to content

Commit a509387

Browse files
committed
Fix Rolling Upgrade tests
Adds a number of api calls that use the deprecated endpoints so that these can be used in the `old_cluster` tests
1 parent fff0ea2 commit a509387

12 files changed

+305
-12
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"security.deprecated_authenticate": {
3+
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-authenticate.html",
4+
"methods": [
5+
"GET"
6+
],
7+
"url": {
8+
"path": "/_xpack/security/_authenticate",
9+
"paths": [
10+
"/_xpack/security/_authenticate"
11+
],
12+
"parts": {},
13+
"params": {}
14+
},
15+
"body": null
16+
}
17+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"security.deprecated_change_password": {
3+
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-change-password.html",
4+
"methods": [
5+
"PUT",
6+
"POST"
7+
],
8+
"url": {
9+
"path": "/_xpack/security/user/{username}/_password",
10+
"paths": [
11+
"/_xpack/security/user/{username}/_password",
12+
"/_xpack/security/user/_password"
13+
],
14+
"parts": {
15+
"username": {
16+
"type": "string",
17+
"description": "The username of the user to change the password for",
18+
"required": false
19+
}
20+
},
21+
"params": {
22+
"refresh": {
23+
"type": "enum",
24+
"options": [
25+
"true",
26+
"false",
27+
"wait_for"
28+
],
29+
"description": "If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes."
30+
}
31+
}
32+
},
33+
"body": {
34+
"description": "the new password for the user",
35+
"required": true
36+
}
37+
}
38+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"security.deprecated_clear_cached_realms": {
3+
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-cache.html",
4+
"methods": [
5+
"POST"
6+
],
7+
"url": {
8+
"path": "/_xpack/security/realm/{realms}/_clear_cache",
9+
"paths": [
10+
"/_xpack/security/realm/{realms}/_clear_cache"
11+
],
12+
"parts": {
13+
"realms": {
14+
"type": "list",
15+
"description": "Comma-separated list of realms to clear",
16+
"required": true
17+
}
18+
},
19+
"params": {
20+
"usernames": {
21+
"type": "list",
22+
"description": "Comma-separated list of usernames to clear from the cache",
23+
"required": false
24+
}
25+
}
26+
},
27+
"body": null
28+
}
29+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"security.deprecated_clear_cached_roles": {
3+
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-role-cache.html",
4+
"methods": [
5+
"POST"
6+
],
7+
"url": {
8+
"path": "/_xpack/security/role/{name}/_clear_cache",
9+
"paths": [
10+
"/_xpack/security/role/{name}/_clear_cache"
11+
],
12+
"parts": {
13+
"name": {
14+
"type": "list",
15+
"description": "Role name",
16+
"required": true
17+
}
18+
},
19+
"params": {}
20+
},
21+
"body": null
22+
}
23+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"security.deprecated_disable_user": {
3+
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-disable-user.html",
4+
"methods": [
5+
"PUT",
6+
"POST"
7+
],
8+
"url": {
9+
"path": "/_xpack/security/user/{username}/_disable",
10+
"paths": [
11+
"/_xpack/security/user/{username}/_disable"
12+
],
13+
"parts": {
14+
"username": {
15+
"type": "string",
16+
"description": "The username of the user to disable",
17+
"required": false
18+
}
19+
},
20+
"params": {
21+
"refresh": {
22+
"type": "enum",
23+
"options": [
24+
"true",
25+
"false",
26+
"wait_for"
27+
],
28+
"description": "If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes."
29+
}
30+
}
31+
},
32+
"body": null
33+
}
34+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"security.deprecated_enable_user": {
3+
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-enable-user.html",
4+
"methods": [
5+
"PUT",
6+
"POST"
7+
],
8+
"url": {
9+
"path": "/_xpack/security/user/{username}/_enable",
10+
"paths": [
11+
"/_xpack/security/user/{username}/_enable"
12+
],
13+
"parts": {
14+
"username": {
15+
"type": "string",
16+
"description": "The username of the user to enable",
17+
"required": false
18+
}
19+
},
20+
"params": {
21+
"refresh": {
22+
"type": "enum",
23+
"options": [
24+
"true",
25+
"false",
26+
"wait_for"
27+
],
28+
"description": "If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes."
29+
}
30+
}
31+
},
32+
"body": null
33+
}
34+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"security.deprecated_get_token": {
3+
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-token.html",
4+
"methods": [
5+
"POST"
6+
],
7+
"url": {
8+
"path": "/_xpack/security/oauth2/token",
9+
"paths": [
10+
"/_xpack/security/oauth2/token"
11+
],
12+
"parts": {},
13+
"params": {}
14+
},
15+
"body": {
16+
"description": "The token request to get",
17+
"required": true
18+
}
19+
}
20+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"security.deprecated_get_user": {
3+
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-user.html",
4+
"methods": [
5+
"GET"
6+
],
7+
"url": {
8+
"path": "/_xpack/security/user/{username}",
9+
"paths": [
10+
"/_xpack/security/user/{username}",
11+
"/_xpack/security/user"
12+
],
13+
"parts": {
14+
"username": {
15+
"type": "list",
16+
"description": "A comma-separated list of usernames",
17+
"required": false
18+
}
19+
},
20+
"params": {}
21+
},
22+
"body": null
23+
}
24+
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"security.deprecated_put_role": {
3+
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role.html",
4+
"methods": [
5+
"PUT",
6+
"POST"
7+
],
8+
"url": {
9+
"path": "/_xpack/security/role/{name}",
10+
"paths": [
11+
"/_xpack/security/role/{name}"
12+
],
13+
"parts": {
14+
"name": {
15+
"type": "string",
16+
"description": "Role name",
17+
"required": true
18+
}
19+
},
20+
"params": {
21+
"refresh": {
22+
"type": "enum",
23+
"options": [
24+
"true",
25+
"false",
26+
"wait_for"
27+
],
28+
"description": "If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes."
29+
}
30+
}
31+
},
32+
"body": {
33+
"description": "The role to add",
34+
"required": true
35+
}
36+
}
37+
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"security.deprecated_put_user": {
3+
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-user.html",
4+
"methods": [
5+
"PUT",
6+
"POST"
7+
],
8+
"url": {
9+
"path": "/_xpack/security/user/{username}",
10+
"paths": [
11+
"/_xpack/security/user/{username}"
12+
],
13+
"parts": {
14+
"username": {
15+
"type": "string",
16+
"description": "The username of the User",
17+
"required": true
18+
}
19+
},
20+
"params": {
21+
"refresh": {
22+
"type": "enum",
23+
"options": [
24+
"true",
25+
"false",
26+
"wait_for"
27+
],
28+
"description": "If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes."
29+
}
30+
}
31+
},
32+
"body": {
33+
"description": "The user to add",
34+
"required": true
35+
}
36+
}
37+
}

0 commit comments

Comments
 (0)