-
Notifications
You must be signed in to change notification settings - Fork 65
/
Copy pathnodesdn.yaml
65 lines (63 loc) · 1.66 KB
/
nodesdn.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
$schema: ../../../../json_schemas/test_story.schema.yaml
description: Test nodesdn endpoints.
distributions:
excluded:
- amazon-managed
- amazon-serverless
# ADMIN-CERT only. These tests require explicit rest api admin privileges.
# The setting `plugins. security. nodes_dn_dynamic_config_enabled` must be enabled.
chapters:
- synopsis: Get distinguished names.
path: /_plugins/_security/api/nodesdn
method: GET
parameters:
show_all: true
response:
status: 400
- synopsis: Patch distinguished names.
path: /_plugins/_security/api/nodesdn
method: PATCH
request:
payload:
- op: replace
path: /cluster1/nodes_dn/0
value: ['']
response:
status: 400
- synopsis: Create distinguished name.
path: /_plugins/_security/api/nodesdn/{cluster_name}
method: PUT
parameters:
cluster_name: test
request:
payload:
nodes_dn:
- CN=cluster3.example.com
response:
status: 400
- synopsis: Get distinguished name.
path: /_plugins/_security/api/nodesdn/{cluster_name}
method: GET
parameters:
cluster_name: test
response:
status: 400
- synopsis: Patch distinguished name.
path: /_plugins/_security/api/nodesdn/{cluster_name}
method: PATCH
parameters:
cluster_name: test
request:
payload:
op: replace
path: /test/nodes_dn/0
value: [CN=cluster2.example.com]
response:
status: 400
- synopsis: Delete distinguished name.
path: /_plugins/_security/api/nodesdn/{cluster_name}
method: DELETE
parameters:
cluster_name: test
response:
status: 400