Merge ~sylvain-pineau/checkbox-provider-edgex:hanoi-add-config-test into ~checkbox-dev/checkbox-provider-edgex:master
- Git
- lp:~sylvain-pineau/checkbox-provider-edgex
- hanoi-add-config-test
- Merge into master
Proposed by
Sylvain Pineau
Status: | Merged |
---|---|
Approved by: | Sylvain Pineau |
Approved revision: | 370a803f4b5d357b0451800d109b8dadf58d3b74 |
Merged at revision: | 525824a987b9be469123fe520cfacad18298aef0 |
Proposed branch: | ~sylvain-pineau/checkbox-provider-edgex:hanoi-add-config-test |
Merge into: | ~checkbox-dev/checkbox-provider-edgex:master |
Diff against target: |
420 lines (+372/-0) 8 files modified
data/hanoi/test-config-hook.sh (+253/-0) data/hanoi/test-files/core-command.env (+16/-0) data/hanoi/test-files/core-data.env (+17/-0) data/hanoi/test-files/core-metadata.env (+16/-0) data/hanoi/test-files/device-virtual.env (+16/-0) data/hanoi/test-files/support-notifications.env (+22/-0) data/hanoi/test-files/support-scheduler.env (+16/-0) data/hanoi/test-files/sys-mgmt-agent.env (+16/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Sylvain Pineau (community) | Approve | ||
Review via email: mp+402348@code.launchpad.net |
Commit message
Description of the change
To post a comment you must log in.
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | diff --git a/data/hanoi/test-config-hook.sh b/data/hanoi/test-config-hook.sh | |||
2 | 0 | new file mode 100755 | 0 | new file mode 100755 |
3 | index 0000000..38807eb | |||
4 | --- /dev/null | |||
5 | +++ b/data/hanoi/test-config-hook.sh | |||
6 | @@ -0,0 +1,253 @@ | |||
7 | 1 | #!/bin/bash -e | ||
8 | 2 | # | ||
9 | 3 | # This test validates the snap configure hook settings that are supported by | ||
10 | 4 | # the edgexfoundry snap. | ||
11 | 5 | # | ||
12 | 6 | # TODO: | ||
13 | 7 | # | ||
14 | 8 | # - add negative test (i.e. bad key(s)) -- should be ignored | ||
15 | 9 | # - add support for service restart | ||
16 | 10 | # - ensure service has restarted! | ||
17 | 11 | # - when services are restarted, overrides all work! | ||
18 | 12 | # - add support for redis options | ||
19 | 13 | |||
20 | 14 | # get the directory of this script | ||
21 | 15 | # snippet from https://stackoverflow.com/a/246128/10102404 | ||
22 | 16 | SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" | ||
23 | 17 | |||
24 | 18 | declare services | ||
25 | 19 | services[0]=core-data | ||
26 | 20 | services[1]=core-metadata | ||
27 | 21 | services[2]=core-command | ||
28 | 22 | services[3]=support-notifications | ||
29 | 23 | services[4]=support-scheduler | ||
30 | 24 | services[5]=device-virtual | ||
31 | 25 | services[6]=sys-mgmt-agent | ||
32 | 26 | |||
33 | 27 | # define config to EdgeX environment variable mappings | ||
34 | 28 | # | ||
35 | 29 | # TODO: add scoping support (i.e. add a csv prefix to the keys | ||
36 | 30 | # which scopes the setting to one or more services. No prefix | ||
37 | 31 | # means "applies to all". | ||
38 | 32 | # | ||
39 | 33 | declare -A conf_to_env | ||
40 | 34 | conf_to_env[service_boot-timeout]="SERVICE_BOOTTIMEOUT/60000" | ||
41 | 35 | conf_to_env[service_check-interval]="SERVICE_CHECKINTERVAL/'20s'" | ||
42 | 36 | conf_to_env[service_host]="SERVICE_HOST/127.0.0.1" | ||
43 | 37 | conf_to_env[service_server-bind-addr]="SERVICE_SERVERBINDADDR/'localhost'" | ||
44 | 38 | conf_to_env[service_port]="SERVICE_PORT/2112" | ||
45 | 39 | conf_to_env[service_protocol]="SERVICE_PROTOCOL/'http'" | ||
46 | 40 | conf_to_env[service_max-result-count]="SERVICE_MAXRESULTCOUNT/25000" | ||
47 | 41 | conf_to_env[service_read-max-limit]="SERVICE_READMAXLIMIT/200" | ||
48 | 42 | conf_to_env[service_startup-msg]="SERVICE_STARTUPMSG/'hello,world!'" | ||
49 | 43 | conf_to_env[service_timeout]="SERVICE_TIMEOUT/10000" | ||
50 | 44 | |||
51 | 45 | # [Clients.Command] | ||
52 | 46 | conf_to_env[clients_command_port]="CLIENTS_COMMAND_PORT/12" | ||
53 | 47 | |||
54 | 48 | # [Clients.Coredata] | ||
55 | 49 | conf_to_env[clients_coredata_port]="CLIENTS_COREDATA_PORT/12" | ||
56 | 50 | |||
57 | 51 | # [Clients.Data] | ||
58 | 52 | # | ||
59 | 53 | # NOTE - this key is present because device-sdk-go used a different | ||
60 | 54 | # key for CoreData than the core services, which use the previous key. | ||
61 | 55 | # | ||
62 | 56 | conf_to_env[clients_data_port]="CLIENTS_DATA_PORT/12" | ||
63 | 57 | |||
64 | 58 | # [Clients.Metadata] | ||
65 | 59 | conf_to_env[clients_metadata_port]="CLIENTS_METADATA_PORT/13" | ||
66 | 60 | |||
67 | 61 | # [Clients.Notifications] | ||
68 | 62 | conf_to_env[clients_notifications_port]="CLIENTS_NOTIFICATIONS_PORT/14" | ||
69 | 63 | |||
70 | 64 | # [Clients.Scheduler] - sys-mgmt-only | ||
71 | 65 | conf_to_env[clients_scheduler_port]="CLIENTS_SCHEDULER_PORT/14" | ||
72 | 66 | |||
73 | 67 | # [MessageQueue] -- core-data ONLY! | ||
74 | 68 | conf_to_env[messagequeue_topic]="MESSAGEQUEUE_TOPIC/'fubar'" | ||
75 | 69 | |||
76 | 70 | # [SecretStore] -- !app-service-configurable | ||
77 | 71 | conf_to_env[secretstore_additional-retry-attempts]="SECRETSTORE_ADDITIONALRETRYATTEMPTS/20" | ||
78 | 72 | conf_to_env[secretstore_retry-wait-period]="SECRETSTORE_RETRYWAITPERIOD/'10s'" | ||
79 | 73 | |||
80 | 74 | # load the utils | ||
81 | 75 | # shellcheck source=/dev/null | ||
82 | 76 | source "$SCRIPT_DIR/utils.sh" | ||
83 | 77 | |||
84 | 78 | DEFAULT_TEST_CHANNEL=${DEFAULT_TEST_CHANNEL:-beta} | ||
85 | 79 | |||
86 | 80 | snap_remove | ||
87 | 81 | |||
88 | 82 | # install the snap to make sure it installs | ||
89 | 83 | if [ -n "$REVISION_TO_TEST" ]; then | ||
90 | 84 | snap_install "$REVISION_TO_TEST" "$REVISION_TO_TEST_CHANNEL" "$REVISION_TO_TEST_CONFINEMENT" | ||
91 | 85 | else | ||
92 | 86 | snap_install edgexfoundry "$DEFAULT_TEST_CHANNEL" | ||
93 | 87 | fi | ||
94 | 88 | |||
95 | 89 | # wait for services to come online | ||
96 | 90 | # NOTE: this may have to be significantly increased on arm64 or low RAM platforms | ||
97 | 91 | # to accomodate time for everything to come online | ||
98 | 92 | sleep 120 | ||
99 | 93 | |||
100 | 94 | test_smtp() { | ||
101 | 95 | # [Smtp] support-notifications options | ||
102 | 96 | declare -A smtp_to_env | ||
103 | 97 | smtp_to_env[smtp_host]="SMTP_HOST/127.0.0.1" | ||
104 | 98 | smtp_to_env[smtp_username]="SMTP_USERNAME/'joe'" | ||
105 | 99 | smtp_to_env[smtp_password]="SMTP_PASSWORD/'password!'" | ||
106 | 100 | smtp_to_env[smtp_port]="SMTP_PORT/2112" | ||
107 | 101 | smtp_to_env[smtp_sender]="SMTP_SENDER/'henry'" | ||
108 | 102 | smtp_to_env[smtp_enable-self-signed-cert]="SMTP_ENABLE_SELF_SIGNED_CERT/true" | ||
109 | 103 | |||
110 | 104 | for key in "${!smtp_to_env[@]}"; do | ||
111 | 105 | echo "$key" --- ${smtp_to_env[$key]}; | ||
112 | 106 | |||
113 | 107 | option=${key/_/.} | ||
114 | 108 | echo "$option" | ||
115 | 109 | env=$(echo ${smtp_to_env[$key]} | cut -d / -f 1) | ||
116 | 110 | val=$(echo ${smtp_to_env[$key]} | cut -d / -f 2) | ||
117 | 111 | service_key="env.support-notifications.$option" | ||
118 | 112 | snap set edgexfoundry "$service_key=$val" | ||
119 | 113 | done | ||
120 | 114 | } | ||
121 | 115 | |||
122 | 116 | # test config hook service-specific config options | ||
123 | 117 | # | ||
124 | 118 | # Note, this test iterates through all of the possible configuration options. | ||
125 | 119 | # It currently only validates that the service.env for each service is created. | ||
126 | 120 | # | ||
127 | 121 | test_options() | ||
128 | 122 | { | ||
129 | 123 | service="$1" | ||
130 | 124 | for key in "${!conf_to_env[@]}"; do | ||
131 | 125 | echo "$key" --- ${conf_to_env[$key]}; | ||
132 | 126 | |||
133 | 127 | if [ "$key" == "service_read-max-limit" ] && | ||
134 | 128 | [ "$service" != "app-service-configurable" ]; then | ||
135 | 129 | continue | ||
136 | 130 | fi | ||
137 | 131 | |||
138 | 132 | if [ "$key" == "messagequeue_topic" ] && | ||
139 | 133 | [ "$service" != "core-data" ]; then | ||
140 | 134 | continue | ||
141 | 135 | fi | ||
142 | 136 | |||
143 | 137 | # handle mismatched client keys due device-sdk-go bug | ||
144 | 138 | if [ "$key" == "clients_coredata_port" ] && | ||
145 | 139 | [ "$service" == "device-virtual" ]; then | ||
146 | 140 | continue | ||
147 | 141 | fi | ||
148 | 142 | |||
149 | 143 | if [ "$key" == "clients_data_port" ] && | ||
150 | 144 | [ "$service" != "device-virtual" ]; then | ||
151 | 145 | continue | ||
152 | 146 | fi | ||
153 | 147 | |||
154 | 148 | option=${key//_/.} | ||
155 | 149 | echo "$option" | ||
156 | 150 | env=$(echo ${conf_to_env[$key]} | cut -d / -f 1) | ||
157 | 151 | val=$(echo ${conf_to_env[$key]} | cut -d / -f 2) | ||
158 | 152 | service_key="env.$service.$option" | ||
159 | 153 | snap set edgexfoundry "$service_key=$val" | ||
160 | 154 | echo "$env=$val" | ||
161 | 155 | done | ||
162 | 156 | |||
163 | 157 | if [ "$service" == "support-notifications" ]; then | ||
164 | 158 | test_smtp | ||
165 | 159 | fi | ||
166 | 160 | } | ||
167 | 161 | |||
168 | 162 | validate_service_env() | ||
169 | 163 | { | ||
170 | 164 | service="$1" | ||
171 | 165 | snapFile=$(cat "/var/snap/edgexfoundry/current/config/$service/res/$service.env" | sort) | ||
172 | 166 | testFile=$(cat "./test-files/$service.env" | sort) | ||
173 | 167 | |||
174 | 168 | if [ "$snapFile" != "$testFile" ]; then | ||
175 | 169 | snap_remove | ||
176 | 170 | echo "$service.env file doesn't match test file." | ||
177 | 171 | exit 1 | ||
178 | 172 | fi | ||
179 | 173 | } | ||
180 | 174 | |||
181 | 175 | test_base_services() | ||
182 | 176 | { | ||
183 | 177 | for key in "${!services[@]}"; do | ||
184 | 178 | service=${services[key]} | ||
185 | 179 | echo "*****${service}*******" | ||
186 | 180 | test_options "$service" | ||
187 | 181 | validate_service_env "$service" | ||
188 | 182 | done | ||
189 | 183 | } | ||
190 | 184 | |||
191 | 185 | # test-proxy | ||
192 | 186 | # | ||
193 | 187 | # ADD_PROXY_ROUTE is a csv list of URLs to be added to the | ||
194 | 188 | # API Gateway (aka Kong). For references: | ||
195 | 189 | # | ||
196 | 190 | # https://docs.edgexfoundry.org/1.3/microservices/security/Ch-APIGateway/ | ||
197 | 191 | # | ||
198 | 192 | # NOTE - this setting is not a configuration override, it's a top-level | ||
199 | 193 | # environment variable used by the security-proxy-setup. | ||
200 | 194 | # | ||
201 | 195 | # KONGAUTH_NAME can be "jwt" (default) or "oauth2" | ||
202 | 196 | test_proxy() | ||
203 | 197 | { | ||
204 | 198 | snap set edgexfoundry "env.security-proxy.add-proxy-route=myservice.http://localhost:2112" | ||
205 | 199 | set +e | ||
206 | 200 | match=$(grep "export ADD_PROXY_ROUTE=myservice.http://localhost:2112" \ | ||
207 | 201 | /var/snap/edgexfoundry/current/config/security-proxy-setup/res/security-proxy-setup.env) | ||
208 | 202 | set -e | ||
209 | 203 | |||
210 | 204 | if [ -z "$match" ]; then | ||
211 | 205 | snap_remove | ||
212 | 206 | echo "security-proxy-setup.env file missing correct ADD_PROXY_ROUTE env export." | ||
213 | 207 | exit 1 | ||
214 | 208 | fi | ||
215 | 209 | |||
216 | 210 | snap set edgexfoundry "env.security-proxy.kongauth.name=oauth2" | ||
217 | 211 | set +e | ||
218 | 212 | match=$(grep "export KONGAUTH_NAME=oauth2" \ | ||
219 | 213 | /var/snap/edgexfoundry/current/config/security-proxy-setup/res/security-proxy-setup.env) | ||
220 | 214 | set -e | ||
221 | 215 | |||
222 | 216 | if [ -z "$match" ]; then | ||
223 | 217 | snap_remove | ||
224 | 218 | echo "security-proxy-setup.env file missing correct KONGAUTH_NAME env export." | ||
225 | 219 | exit 1 | ||
226 | 220 | fi | ||
227 | 221 | } | ||
228 | 222 | |||
229 | 223 | # security-secret-store | ||
230 | 224 | # | ||
231 | 225 | # ADD_SECRETSTORE_TOKENS is a csv list of service keys to be added to the | ||
232 | 226 | # list of Vault tokens that security-file-token-provider (launched by | ||
233 | 227 | # security-secretstore-setup) creates. | ||
234 | 228 | # | ||
235 | 229 | # NOTE - this setting is not a configuration override, it's a top-level | ||
236 | 230 | # environment variable used by the security-secretstore-setup. | ||
237 | 231 | # | ||
238 | 232 | test_secret-store() | ||
239 | 233 | { | ||
240 | 234 | snap set edgexfoundry "env.security-secret-store.add-secretstore-tokens=myservice,yourservice" | ||
241 | 235 | |||
242 | 236 | set +e | ||
243 | 237 | match=$(grep "export ADD_SECRETSTORE_TOKENS=myservice,yourservice" \ | ||
244 | 238 | /var/snap/edgexfoundry/current/config/security-secretstore-setup/res/security-secretstore-setup.env) | ||
245 | 239 | set -e | ||
246 | 240 | |||
247 | 241 | if [ -z "$match" ]; then | ||
248 | 242 | snap_remove | ||
249 | 243 | echo "security-secretstore-setup.env file missing correct env export." | ||
250 | 244 | exit 1 | ||
251 | 245 | fi | ||
252 | 246 | } | ||
253 | 247 | |||
254 | 248 | test_base_services | ||
255 | 249 | test_proxy | ||
256 | 250 | test_secret-store | ||
257 | 251 | |||
258 | 252 | # remove the snap to run the next test | ||
259 | 253 | snap_remove | ||
260 | diff --git a/data/hanoi/test-files/core-command.env b/data/hanoi/test-files/core-command.env | |||
261 | 0 | new file mode 100644 | 254 | new file mode 100644 |
262 | index 0000000..48e95cc | |||
263 | --- /dev/null | |||
264 | +++ b/data/hanoi/test-files/core-command.env | |||
265 | @@ -0,0 +1,16 @@ | |||
266 | 1 | export CLIENTS_METADATA_PORT=13 | ||
267 | 2 | export CLIENTS_COMMAND_PORT=12 | ||
268 | 3 | export SECRETSTORE_ADDITIONALRETRYATTEMPTS=20 | ||
269 | 4 | export SERVICE_BOOTTIMEOUT=60000 | ||
270 | 5 | export SERVICE_PORT=2112 | ||
271 | 6 | export SERVICE_SERVERBINDADDR='localhost' | ||
272 | 7 | export CLIENTS_SCHEDULER_PORT=14 | ||
273 | 8 | export CLIENTS_COREDATA_PORT=12 | ||
274 | 9 | export SERVICE_CHECKINTERVAL='20s' | ||
275 | 10 | export SERVICE_TIMEOUT=10000 | ||
276 | 11 | export SERVICE_MAXRESULTCOUNT=25000 | ||
277 | 12 | export SERVICE_STARTUPMSG='hello,world!' | ||
278 | 13 | export CLIENTS_NOTIFICATIONS_PORT=14 | ||
279 | 14 | export SECRETSTORE_RETRYWAITPERIOD='10s' | ||
280 | 15 | export SERVICE_HOST=127.0.0.1 | ||
281 | 16 | export SERVICE_PROTOCOL='http' | ||
282 | diff --git a/data/hanoi/test-files/core-data.env b/data/hanoi/test-files/core-data.env | |||
283 | 0 | new file mode 100644 | 17 | new file mode 100644 |
284 | index 0000000..7f2e3f3 | |||
285 | --- /dev/null | |||
286 | +++ b/data/hanoi/test-files/core-data.env | |||
287 | @@ -0,0 +1,17 @@ | |||
288 | 1 | export SECRETSTORE_ADDITIONALRETRYATTEMPTS=20 | ||
289 | 2 | export SECRETSTORE_RETRYWAITPERIOD='10s' | ||
290 | 3 | export SERVICE_STARTUPMSG='hello,world!' | ||
291 | 4 | export SERVICE_CHECKINTERVAL='20s' | ||
292 | 5 | export CLIENTS_SCHEDULER_PORT=14 | ||
293 | 6 | export SERVICE_BOOTTIMEOUT=60000 | ||
294 | 7 | export SERVICE_MAXRESULTCOUNT=25000 | ||
295 | 8 | export SERVICE_PROTOCOL='http' | ||
296 | 9 | export CLIENTS_COREDATA_PORT=12 | ||
297 | 10 | export SERVICE_HOST=127.0.0.1 | ||
298 | 11 | export SERVICE_PORT=2112 | ||
299 | 12 | export CLIENTS_COMMAND_PORT=12 | ||
300 | 13 | export CLIENTS_METADATA_PORT=13 | ||
301 | 14 | export MESSAGEQUEUE_TOPIC='fubar' | ||
302 | 15 | export SERVICE_SERVERBINDADDR='localhost' | ||
303 | 16 | export SERVICE_TIMEOUT=10000 | ||
304 | 17 | export CLIENTS_NOTIFICATIONS_PORT=14 | ||
305 | diff --git a/data/hanoi/test-files/core-metadata.env b/data/hanoi/test-files/core-metadata.env | |||
306 | 0 | new file mode 100644 | 18 | new file mode 100644 |
307 | index 0000000..1aa2ef6 | |||
308 | --- /dev/null | |||
309 | +++ b/data/hanoi/test-files/core-metadata.env | |||
310 | @@ -0,0 +1,16 @@ | |||
311 | 1 | export CLIENTS_COREDATA_PORT=12 | ||
312 | 2 | export CLIENTS_SCHEDULER_PORT=14 | ||
313 | 3 | export SECRETSTORE_ADDITIONALRETRYATTEMPTS=20 | ||
314 | 4 | export SERVICE_HOST=127.0.0.1 | ||
315 | 5 | export SERVICE_CHECKINTERVAL='20s' | ||
316 | 6 | export CLIENTS_METADATA_PORT=13 | ||
317 | 7 | export CLIENTS_NOTIFICATIONS_PORT=14 | ||
318 | 8 | export SERVICE_BOOTTIMEOUT=60000 | ||
319 | 9 | export SERVICE_TIMEOUT=10000 | ||
320 | 10 | export CLIENTS_COMMAND_PORT=12 | ||
321 | 11 | export SECRETSTORE_RETRYWAITPERIOD='10s' | ||
322 | 12 | export SERVICE_PORT=2112 | ||
323 | 13 | export SERVICE_PROTOCOL='http' | ||
324 | 14 | export SERVICE_MAXRESULTCOUNT=25000 | ||
325 | 15 | export SERVICE_SERVERBINDADDR='localhost' | ||
326 | 16 | export SERVICE_STARTUPMSG='hello,world!' | ||
327 | diff --git a/data/hanoi/test-files/device-virtual.env b/data/hanoi/test-files/device-virtual.env | |||
328 | 0 | new file mode 100644 | 17 | new file mode 100644 |
329 | index 0000000..e028b84 | |||
330 | --- /dev/null | |||
331 | +++ b/data/hanoi/test-files/device-virtual.env | |||
332 | @@ -0,0 +1,16 @@ | |||
333 | 1 | export CLIENTS_SCHEDULER_PORT=14 | ||
334 | 2 | export SERVICE_PROTOCOL='http' | ||
335 | 3 | export SERVICE_BOOTTIMEOUT=60000 | ||
336 | 4 | export SERVICE_MAXRESULTCOUNT=25000 | ||
337 | 5 | export CLIENTS_METADATA_PORT=13 | ||
338 | 6 | export SERVICE_STARTUPMSG='hello,world!' | ||
339 | 7 | export SERVICE_TIMEOUT=10000 | ||
340 | 8 | export SERVICE_PORT=2112 | ||
341 | 9 | export CLIENTS_COMMAND_PORT=12 | ||
342 | 10 | export SECRETSTORE_ADDITIONALRETRYATTEMPTS=20 | ||
343 | 11 | export SECRETSTORE_RETRYWAITPERIOD='10s' | ||
344 | 12 | export SERVICE_CHECKINTERVAL='20s' | ||
345 | 13 | export SERVICE_SERVERBINDADDR='localhost' | ||
346 | 14 | export SERVICE_HOST=127.0.0.1 | ||
347 | 15 | export CLIENTS_DATA_PORT=12 | ||
348 | 16 | export CLIENTS_NOTIFICATIONS_PORT=14 | ||
349 | diff --git a/data/hanoi/test-files/support-notifications.env b/data/hanoi/test-files/support-notifications.env | |||
350 | 0 | new file mode 100644 | 17 | new file mode 100644 |
351 | index 0000000..77faad9 | |||
352 | --- /dev/null | |||
353 | +++ b/data/hanoi/test-files/support-notifications.env | |||
354 | @@ -0,0 +1,22 @@ | |||
355 | 1 | export SERVICE_STARTUPMSG='hello,world!' | ||
356 | 2 | export SERVICE_TIMEOUT=10000 | ||
357 | 3 | export SERVICE_CHECKINTERVAL='20s' | ||
358 | 4 | export SERVICE_HOST=127.0.0.1 | ||
359 | 5 | export SMTP_ENABLE_SELF_SIGNED_CERT=true | ||
360 | 6 | export CLIENTS_COMMAND_PORT=12 | ||
361 | 7 | export CLIENTS_COREDATA_PORT=12 | ||
362 | 8 | export SECRETSTORE_ADDITIONALRETRYATTEMPTS=20 | ||
363 | 9 | export CLIENTS_METADATA_PORT=13 | ||
364 | 10 | export SMTP_PORT=2112 | ||
365 | 11 | export CLIENTS_SCHEDULER_PORT=14 | ||
366 | 12 | export SERVICE_BOOTTIMEOUT=60000 | ||
367 | 13 | export SERVICE_PROTOCOL='http' | ||
368 | 14 | export SMTP_PASSWORD='password!' | ||
369 | 15 | export CLIENTS_NOTIFICATIONS_PORT=14 | ||
370 | 16 | export SERVICE_MAXRESULTCOUNT=25000 | ||
371 | 17 | export SERVICE_SERVERBINDADDR='localhost' | ||
372 | 18 | export SERVICE_PORT=2112 | ||
373 | 19 | export SMTP_SENDER='henry' | ||
374 | 20 | export SMTP_USERNAME='joe' | ||
375 | 21 | export SMTP_HOST=127.0.0.1 | ||
376 | 22 | export SECRETSTORE_RETRYWAITPERIOD='10s' | ||
377 | diff --git a/data/hanoi/test-files/support-scheduler.env b/data/hanoi/test-files/support-scheduler.env | |||
378 | 0 | new file mode 100644 | 23 | new file mode 100644 |
379 | index 0000000..de028d9 | |||
380 | --- /dev/null | |||
381 | +++ b/data/hanoi/test-files/support-scheduler.env | |||
382 | @@ -0,0 +1,16 @@ | |||
383 | 1 | export SERVICE_BOOTTIMEOUT=60000 | ||
384 | 2 | export SERVICE_CHECKINTERVAL='20s' | ||
385 | 3 | export SERVICE_STARTUPMSG='hello,world!' | ||
386 | 4 | export CLIENTS_SCHEDULER_PORT=14 | ||
387 | 5 | export SECRETSTORE_ADDITIONALRETRYATTEMPTS=20 | ||
388 | 6 | export SERVICE_PROTOCOL='http' | ||
389 | 7 | export SERVICE_SERVERBINDADDR='localhost' | ||
390 | 8 | export CLIENTS_METADATA_PORT=13 | ||
391 | 9 | export CLIENTS_NOTIFICATIONS_PORT=14 | ||
392 | 10 | export CLIENTS_COREDATA_PORT=12 | ||
393 | 11 | export SECRETSTORE_RETRYWAITPERIOD='10s' | ||
394 | 12 | export SERVICE_HOST=127.0.0.1 | ||
395 | 13 | export SERVICE_TIMEOUT=10000 | ||
396 | 14 | export SERVICE_PORT=2112 | ||
397 | 15 | export CLIENTS_COMMAND_PORT=12 | ||
398 | 16 | export SERVICE_MAXRESULTCOUNT=25000 | ||
399 | diff --git a/data/hanoi/test-files/sys-mgmt-agent.env b/data/hanoi/test-files/sys-mgmt-agent.env | |||
400 | 0 | new file mode 100644 | 17 | new file mode 100644 |
401 | index 0000000..956d8f7 | |||
402 | --- /dev/null | |||
403 | +++ b/data/hanoi/test-files/sys-mgmt-agent.env | |||
404 | @@ -0,0 +1,16 @@ | |||
405 | 1 | export SERVICE_PORT=2112 | ||
406 | 2 | export SERVICE_SERVERBINDADDR='localhost' | ||
407 | 3 | export SERVICE_CHECKINTERVAL='20s' | ||
408 | 4 | export CLIENTS_COREDATA_PORT=12 | ||
409 | 5 | export CLIENTS_METADATA_PORT=13 | ||
410 | 6 | export SECRETSTORE_ADDITIONALRETRYATTEMPTS=20 | ||
411 | 7 | export SERVICE_PROTOCOL='http' | ||
412 | 8 | export SERVICE_STARTUPMSG='hello,world!' | ||
413 | 9 | export SERVICE_MAXRESULTCOUNT=25000 | ||
414 | 10 | export CLIENTS_NOTIFICATIONS_PORT=14 | ||
415 | 11 | export CLIENTS_SCHEDULER_PORT=14 | ||
416 | 12 | export SECRETSTORE_RETRYWAITPERIOD='10s' | ||
417 | 13 | export SERVICE_HOST=127.0.0.1 | ||
418 | 14 | export CLIENTS_COMMAND_PORT=12 | ||
419 | 15 | export SERVICE_TIMEOUT=10000 | ||
420 | 16 | export SERVICE_BOOTTIMEOUT=60000 |
Based on Siggi's review