Skip to content

Commit 4654ad8

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

File tree

2 files changed

+74
-0
lines changed

2 files changed

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

0 commit comments

Comments
 (0)