3 test_name: test healthcheck
6 - name: test the a1 healthcheck
8 url: http://localhost:10000/a1-p/healthcheck
15 test_name: test admission control
18 - name: type not there yet
20 url: http://localhost:10000/a1-p/policytypes/20000
25 - name: type list empty
27 url: http://localhost:10000/a1-p/policytypes
33 - name: instance list 404
35 url: http://localhost:10000/a1-p/policytypes/20000/policies
42 url: http://localhost:10000/a1-p/policytypes/20000
45 name: Admission Control
46 description: various parameters to control admission of dual connection
49 "$schema": http://json-schema.org/draft-07/schema#
60 description: Sliding window length (in minutes)
66 description: "% Connections to block"
71 description: Minimum number of events in window to trigger blocking
77 additionalProperties: false
79 - name: type there now
81 url: http://localhost:10000/a1-p/policytypes/20000
86 - name: now in type list
88 url: http://localhost:10000/a1-p/policytypes
94 - name: instance list 200 but empty
96 url: http://localhost:10000/a1-p/policytypes/20000/policies
102 - name: test the admission control policy get not there yet
104 url: http://localhost:10000/a1-p/policytypes/20000/policies/admission_control_policy
109 - name: test the admission control policy status get not there yet
111 url: http://localhost:10000/a1-p/policytypes/20000/policies/admission_control_policy/status
116 - name: put the admission control policy
118 url: http://localhost:10000/a1-p/policytypes/20000/policies/admission_control_policy
124 trigger_threshold: 10
126 content-type: application/json
130 - name: test the admission control policy get
132 url: http://localhost:10000/a1-p/policytypes/20000/policies/admission_control_policy
140 trigger_threshold: 10
142 - name: test the admission control policy status get
143 delay_before: 3 # give it a few seconds for rmr
145 url: http://localhost:10000/a1-p/policytypes/20000/policies/admission_control_policy/status
150 - handler_id: test_receiver
153 - name: instance list 200 and contains the instance
155 url: http://localhost:10000/a1-p/policytypes/20000/policies
160 - admission_control_policy
166 test_name: test the delay receiver
170 - name: test the delay policy type not there yet
172 url: http://localhost:10000/a1-p/policytypes/20001
177 - name: not yet in type list
179 url: http://localhost:10000/a1-p/policytypes
185 - name: instance list 404
187 url: http://localhost:10000/a1-p/policytypes/20001/policies
194 url: http://localhost:10000/a1-p/policytypes/20001
198 description: just for testing
199 policy_type_id: 20001
201 "$schema": http://json-schema.org/draft-07/schema#
208 additionalProperties: false
210 - name: type there now
212 url: http://localhost:10000/a1-p/policytypes/20001
218 description: just for testing
219 policy_type_id: 20001
221 "$schema": http://json-schema.org/draft-07/schema#
228 additionalProperties: false
230 - name: now in type list
232 url: http://localhost:10000/a1-p/policytypes
240 - name: instance list 200 but empty
242 url: http://localhost:10000/a1-p/policytypes/20001/policies
248 - name: test the delay policy instance get not there yet
250 url: http://localhost:10000/a1-p/policytypes/20001/policies/delaytest
255 - name: test the delay policy status get not there yet
257 url: http://localhost:10000/a1-p/policytypes/20001/policies/delaytest/status
262 - name: create delay policy instance
264 url: http://localhost:10000/a1-p/policytypes/20001/policies/delaytest
269 content-type: application/json
273 - name: test the delay policy get
275 url: http://localhost:10000/a1-p/policytypes/20001/policies/delaytest
282 - name: test the admission control policy status get
284 delay_before: 5 # give it a few seconds for rmr ; delay reciever sleeps for 5 seconds by default
286 url: http://localhost:10000/a1-p/policytypes/20001/policies/delaytest/status
291 - handler_id: delay_receiver
294 - name: instance list 200 and there
296 url: http://localhost:10000/a1-p/policytypes/20001/policies
305 test_name: test bad routing file endpoint
311 url: http://localhost:10000/a1-p/policytypes/20002
315 description: just for testing
316 policy_type_id: 20002
318 "$schema": http://json-schema.org/draft-07/schema#
325 additionalProperties: false
327 - name: create policy instance that will go to a broken routing endpoint
329 url: http://localhost:10000/a1-p/policytypes/20002/policies/brokentest
334 content-type: application/json
338 - name: should be no status
339 delay_before: 5 # give it a few seconds for rmr ; delay reciever sleeps for 5 seconds by default
341 url: http://localhost:10000/a1-p/policytypes/20002/policies/brokentest/status
350 test_name: bad_requests
356 url: http://localhost:10000/a1-p/policytypes/20666
362 - name: bad instance get
364 url: http://localhost:10000/a1-p/policytypes/20000/policies/darkness
369 - name: bad int range 1
371 url: http://localhost:10000/a1-p/policytypes/19999
375 description: just for testing
376 policy_type_id: 19999
378 "$schema": http://json-schema.org/draft-07/schema#
383 - name: bad int range 2
385 url: http://localhost:10000/a1-p/policytypes/21024
389 description: just for testing
390 policy_type_id: 21024
392 "$schema": http://json-schema.org/draft-07/schema#
400 - name: bad body for admission control policy
402 url: http://localhost:10000/a1-p/policytypes/20000/policies/admission_control_policy
407 content-type: application/json
413 url: http://localhost:10000/a1-p/policytypes/20000/policies/admission_control_policy
419 - name: bad body for delaytest
421 url: http://localhost:10000/a1-p/policytypes/20001/policies/delaytest