Skip to content

Commit d7b3ef8

Browse files
committed
add putComposition and putCompositionRule CTS
1 parent 2bbfa1d commit d7b3ef8

File tree

2 files changed

+113
-0
lines changed

2 files changed

+113
-0
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
[
2+
{
3+
"parameters": {
4+
"compositionID": "1234",
5+
"composition": {
6+
"objectID": "1234",
7+
"name": "my first composition",
8+
"behavior": {
9+
"injection": {
10+
"main": {
11+
"source": {
12+
"search": {
13+
"index": "foo"
14+
}
15+
}
16+
},
17+
"injectedItems": []
18+
}
19+
}
20+
}
21+
},
22+
"request": {
23+
"path": "/1/compositions/1234",
24+
"method": "PUT",
25+
"body": {
26+
"objectID": "1234",
27+
"name": "my first composition",
28+
"behavior": {
29+
"injection": {
30+
"main": {
31+
"source": {
32+
"search": {
33+
"index": "foo"
34+
}
35+
}
36+
},
37+
"injectedItems": []
38+
}
39+
}
40+
}
41+
},
42+
"response": {
43+
"statusCode": 200,
44+
"body": {
45+
"taskID": 42
46+
}
47+
}
48+
}
49+
]
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
[
2+
{
3+
"parameters": {
4+
"compositionID": "1234",
5+
"objectID": "5678",
6+
"compositionRule": {
7+
"objectID": "5678",
8+
"name": "my first composition rule",
9+
"conditions": [
10+
{
11+
"anchor": "is",
12+
"pattern": "test"
13+
}
14+
],
15+
"consequence": {
16+
"behavior": {
17+
"injection": {
18+
"main": {
19+
"source": {
20+
"search": {
21+
"index": "foo"
22+
}
23+
}
24+
}
25+
}
26+
}
27+
}
28+
}
29+
},
30+
"request": {
31+
"path": "/1/compositions/1234/rules/5678",
32+
"method": "PUT",
33+
"body": {
34+
"objectID": "5678",
35+
"name": "my first composition rule",
36+
"conditions": [
37+
{
38+
"anchor": "is",
39+
"pattern": "test"
40+
}
41+
],
42+
"consequence": {
43+
"behavior": {
44+
"injection": {
45+
"main": {
46+
"source": {
47+
"search": {
48+
"index": "foo"
49+
}
50+
}
51+
}
52+
}
53+
}
54+
}
55+
}
56+
},
57+
"response": {
58+
"statusCode": 200,
59+
"body": {
60+
"taskID": 42
61+
}
62+
}
63+
}
64+
]

0 commit comments

Comments
 (0)