File tree 3 files changed +103
-0
lines changed
3 files changed +103
-0
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,10 @@ teardown:
66
66
- match : { columns.4.name: "duration_ms" }
67
67
- match : { columns.4.type: "double" }
68
68
69
+ - do :
70
+ esql.async_query_stop : { id: $id }
71
+ - match : { id: $id }
72
+
69
73
- do :
70
74
esql.async_query_delete :
71
75
id : $id
Original file line number Diff line number Diff line change
1
+ ---
2
+ requires :
3
+ stack : true
4
+ serverless : false
5
+ ---
6
+ setup :
7
+ - do :
8
+ security.put_user :
9
+ username : " juan"
10
+ body : >
11
+ {
12
+ "password": "s3krit-password",
13
+ "roles" : [ "superuser" ]
14
+ }
15
+
16
+ ---
17
+ teardown :
18
+ - do :
19
+ security.delete_user :
20
+ username : " juan"
21
+ ignore : 404
22
+ ---
23
+ " security.user " :
24
+ - do :
25
+ security.get_user :
26
+ username : " juan"
27
+ - match : { juan.username: "juan" }
28
+ - do :
29
+ headers :
30
+ Authorization : " Basic anVhbjpzM2tyaXQtcGFzc3dvcmQ="
31
+ cluster.health : {}
32
+ - match : { timed_out: false }
33
+
34
+ # disable the user
35
+ - do :
36
+ security.disable_user :
37
+ username : " juan"
38
+
39
+ # validate user cannot login
40
+ - do :
41
+ catch : unauthorized
42
+ headers :
43
+ Authorization : " Basic anVhbjpzM2tyaXQtcGFzc3dvcmQ="
44
+ cluster.health : {}
45
+
46
+ # enable the user
47
+ - do :
48
+ security.enable_user :
49
+ username : " juan"
50
+
51
+ # validate that the user can login again
52
+ - do :
53
+ headers :
54
+ Authorization : " Basic anVhbjpzM2tyaXQtcGFzc3dvcmQ="
55
+ cluster.health : {}
56
+ - match : { timed_out: false }
57
+
58
+ - do :
59
+ headers :
60
+ Authorization : " Basic anVhbjpzM2tyaXQtcGFzc3dvcmQ="
61
+ security.query_user :
62
+ body : { }
63
+ - match : { total: 1 }
Original file line number Diff line number Diff line change
1
+ ---
2
+ requires :
3
+ stack : true
4
+ serverless : false
5
+ ---
6
+ " simulate.ingest " :
7
+ - do :
8
+ headers :
9
+ Content-Type : application/json
10
+ simulate.ingest :
11
+ body : >
12
+ {
13
+ "docs": [
14
+ {
15
+ "_index": "index-1",
16
+ "_id": "id",
17
+ "_source": {
18
+ "foo": "bar"
19
+ }
20
+ },
21
+ {
22
+ "_index": "index-2",
23
+ "_id": "id",
24
+ "_source": {
25
+ "foo": "rab"
26
+ }
27
+ }
28
+ ]
29
+ }
30
+ - length : { docs: 2 }
31
+ - match : { docs.0.doc._index: "index-1" }
32
+ - match : { docs.0.doc._source.foo: "bar" }
33
+ - match : { docs.0.doc.executed_pipelines: [] }
34
+ - match : { docs.1.doc._index: "index-2" }
35
+ - match : { docs.1.doc._source.foo: "rab" }
36
+ - match : { docs.1.doc.executed_pipelines: [] }
You can’t perform that action at this time.
0 commit comments