-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathepaFdvZion.yaml
160 lines (152 loc) · 6.49 KB
/
epaFdvZion.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
servers:
epaFdvZion:
type: zion
active: "!{not ${tiger.servers.epaFdVUrl.active}}"
hostname: ${infrastructure.epafdv.hostname}
zionConfiguration:
# define the server port.
# In a real setup you would leave this empty (then a random port will be used)
serverPort: ${tiger.ports.epaFdV}
mockResponses:
# a map with all the responses
login:
# the name is arbitrary. It can be used to alter the response later on
requestCriterions:
# This is a list of JEXL expressions. Only when all expressions are met is this response considered
- message.method == 'GET'
- message.path == '/epa/testdriver/api/v1/login'
response:
statusCode: 200
body: '
{
"success": true,
"statusMessage": "string",
"insurantId": "?{$.path.insurantId.value}",
"fqdn": "string"
}'
headers:
Content-Type: "application/json; charset=utf-8"
Access-Control-Allow-Origin: "*"
Origin: "http://localhost:${tiger.ports.epaFdV}"
logout:
# the name is arbitrary. It can be used to alter the response later on
requestCriterions:
# This is a list of JEXL expressions. Only when all expressions are met is this response considered
- message.method == 'GET'
- message.path == '/epa/testdriver/api/v1/logout'
response:
statusCode: 200
body: '
{
"success": true,
"statusMessage": "string"
}'
headers:
Content-Type: "application/json; charset=utf-8"
Access-Control-Allow-Origin: "*"
Origin: "http://localhost:${tiger.ports.epaFdV}"
# a map with all the responses
ncpehGetEntitlement:
# the name is arbitrary. It can be used to alter the response later on
requestCriterions:
# This is a list of JEXL expressions. Only when all expressions are met is this response considered
- message.method == 'GET'
- message.path == '/epa/testdriver/api/v1/ncpeh/entitlement'
- "'${fdVMockResponse|}' == ''"
response:
statusCode: 200
body: '
{
"success": true,
"statusMessage": "string",
"entitlement": {
"countryName": "Netherlands",
"validTo": "${currentTimestampPlusOneHour|}",
"kvnr": "?{$.path.recordId.value}"
},
"accesscode": "ABC123"
}'
headers:
Content-Type: "application/json; charset=utf-8"
Access-Control-Allow-Origin: "*"
Origin: "http://localhost:${tiger.ports.epaFdV}"
ncpehGetEntitlementFailure:
# the name is arbitrary. It can be used to alter the response later on
requestCriterions:
# This is a list of JEXL expressions. Only when all expressions are met is this response considered
- message.method == 'GET'
- message.path == '/epa/testdriver/api/v1/ncpeh/entitlement'
- "'${fdVMockResponse|}' == 'FAILURE-RESPONSE'"
response:
statusCode: 200
body: '
{
"success": false,
"statusMessage": "string"
}'
headers:
Content-Type: "application/json; charset=utf-8"
Access-Control-Allow-Origin: "*"
Origin: "http://localhost:${tiger.ports.epaFdV}"
ncpehPutEntitlement:
# the name is arbitrary. It can be used to alter the response later on
requestCriterions:
# This is a list of JEXL expressions. Only when all expressions are met is this response considered
- message.method == 'PUT'
- message.path == '/epa/testdriver/api/v1/ncpeh/entitlement'
response:
statusCode: 200
body: '
{
"success": true,
"statusMessage": "string",
"entitlement": {
"countryName": "?{$.body.countryName}",
"validTo": "${currentTimestampPlusOneHour|}",
"kvnr": "?{$.body.recordId}"
},
"accesscode": "ABC123",
"tid": "9-883110000035981"
}'
headers:
Content-Type: "application/json; charset=utf-8"
Access-Control-Allow-Origin: "*"
Access-Control-Allow-Methods: "GET, POST, PUT, DELETE, OPTIONS"
Access-Control-Allow-Headers: "Content-Type, Origin"
Vary: "Accept-Encoding, Origin"
Origin: "http://localhost:${tiger.ports.epaFdV}"
ncpehDeleteEntitlement:
# the name is arbitrary. It can be used to alter the response later on
requestCriterions:
# This is a list of JEXL expressions. Only when all expressions are met is this response considered
- message.method == 'DELETE'
- message.path == '/epa/testdriver/api/v1/ncpeh/entitlement'
response:
statusCode: 200
body: '
{
"success": true,
"statusMessage": "string"
}'
headers:
Content-Type: "application/json; charset=utf-8"
Access-Control-Allow-Origin: "*"
Access-Control-Allow-Methods: "GET, POST, PUT, DELETE, OPTIONS"
Access-Control-Allow-Headers: "Content-Type, Origin"
Vary: "Accept-Encoding, Origin"
Origin: "http://localhost:${tiger.ports.epaFdV}"
ncpehOptionsEntitlement:
# the name is arbitrary. It can be used to alter the response later on
requestCriterions:
# This is a list of JEXL expressions. Only when all expressions are met is this response considered
- message.method == 'OPTIONS'
- message.path == '/epa/testdriver/api/v1/ncpeh/entitlement'
response:
statusCode: 200
headers:
Content-Type: "application/json; charset=utf-8"
Access-Control-Allow-Origin: "*"
Access-Control-Allow-Methods: "GET, POST, PUT, DELETE, OPTIONS"
Access-Control-Allow-Headers: "Content-Type, Origin"
Vary: "Accept-Encoding, Origin"
Origin: "http://localhost:${tiger.ports.epaFdV}"