Skip to content

Commit 0d03b7d

Browse files
authored
Updated subsceriptionTemplate json file with new and latest format. (#88)
1 parent 5868466 commit 0d03b7d

File tree

1 file changed

+26
-38
lines changed

1 file changed

+26
-38
lines changed
Lines changed: 26 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,46 @@
11
[{
2-
"notificationMessage" : "sample@ericsson.com",
3-
"notificationMeta" : "http://127.0.0.1:3000/ei/test_subscription_rest",
4-
"notificationType" : "REST_POST",
2+
"subscriptionName" : "Subscription1",
53
"repeat" : false,
6-
"requirements" : [
4+
"created" : 1523473956269,
5+
"notificationType" : "REST_POST",
6+
"notificationMeta" : "http://eiffel-jenkins1:8080/job/ei-artifact-triggered-job/build",
7+
"restPostBodyMediaType" : "application/x-www-form-urlencoded",
8+
"notificationMessageKeyValues" : [
79
{
8-
"conditions" : [
9-
{
10-
"jmespath" : "gav.groupId=='com.mycompany.myproduct'"
11-
},
12-
{
13-
"jmespath" : "testCaseExecutions[?testCase.conclusion == 'SUCCESSFUL' && testCase.id=='TC5']"
14-
}
15-
]
16-
},
10+
"formkey" : "json",
11+
"formvalue" : "{parameter: [{ name: 'jsonparams', value : to_string(@) }]}"
12+
}
13+
],
14+
"requirements" : [
1715
{
1816
"conditions" : [
1917
{
20-
"jmespath" : "gav.groupId=='com.mycompany.myproduct'"
21-
},
22-
{
23-
"jmespath" : "testCaseExecutions[?testCaseStartedEventId == '13af4a14-f951-4346-a1ba-624c79f10e98']"
18+
"jmespath" : "gav.groupId=='com.othercompany.library'"
2419
}
2520
]
2621
}
27-
],
28-
"subscriptionName" : "Subscription_Test"
22+
]
2923
},
3024
{
31-
"notificationMessage" : "sample2@ericsson.com",
32-
"notificationMeta" : "http://127.0.0.1:3000/ei/test_subscription_rest",
33-
"notificationType" : "REST_POST",
25+
"subscriptionName" : "Subscription2",
3426
"repeat" : false,
35-
"requirements" : [
27+
"created" : 1523473956269,
28+
"notificationType" : "REST_POST",
29+
"notificationMeta" : "http://eiffel-jenkins2:8080/job/ei-artifact-triggered-job/build",
30+
"restPostBodyMediaType" : "application/x-www-form-urlencoded",
31+
"notificationMessageKeyValues" : [
3632
{
37-
"conditions" : [
38-
{
39-
"jmespath" : "gav.groupId=='com.mycompany.myproduct'"
40-
},
41-
{
42-
"jmespath" : "testCaseExecutions[?testCase.conclusion == 'SUCCESSFUL' && testCase.id=='TC5']"
43-
}
44-
]
45-
},
33+
"formkey" : "json",
34+
"formvalue" : "{parameter: [{ name: 'jsonparams', value : to_string(@) }]}"
35+
}
36+
],
37+
"requirements" : [
4638
{
4739
"conditions" : [
4840
{
49-
"jmespath" : "gav.groupId=='com.mycompany.myproduct'"
50-
},
51-
{
52-
"jmespath" : "testCaseExecutions[?testCaseStartedEventId == '13af4a14-f951-4346-a1ba-624c79f10e98']"
41+
"jmespath" : "gav.groupId=='com.othercompany.library'"
5342
}
5443
]
5544
}
56-
],
57-
"subscriptionName" : "Subscription_Test_Modify"
45+
]
5846
}]

0 commit comments

Comments
 (0)