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
81 - name: type there now
83 url: http://localhost:10000/a1-p/policytypes/20000
88 - name: now in type list
90 url: http://localhost:10000/a1-p/policytypes
96 - name: instance list 200 but empty
98 url: http://localhost:10000/a1-p/policytypes/20000/policies
104 - name: test the admission control policy get not there yet
106 url: http://localhost:10000/a1-p/policytypes/20000/policies/admission_control_policy
111 - name: test the admission control policy status get not there yet
113 url: http://localhost:10000/a1-p/policytypes/20000/policies/admission_control_policy/status
118 - name: bad body for admission control policy
120 url: http://localhost:10000/a1-p/policytypes/20000/policies/admission_control_policy
125 content-type: application/json
131 url: http://localhost:10000/a1-p/policytypes/20000/policies/admission_control_policy
138 - name: put the admission control policy instance
140 url: http://localhost:10000/a1-p/policytypes/20000/policies/admission_control_policy
146 trigger_threshold: 10
148 content-type: application/json
152 - name: cant delete type with instances
153 delay_before: 3 # wait for the type acks to come back first
155 url: http://localhost:10000/a1-p/policytypes/20000
160 - name: test the admission control policy get
162 url: http://localhost:10000/a1-p/policytypes/20000/policies/admission_control_policy
170 trigger_threshold: 10
172 - name: test the admission control policy status get
173 delay_before: 3 # give it a few seconds for rmr
175 url: http://localhost:10000/a1-p/policytypes/20000/policies/admission_control_policy/status
179 # tavern doesn't yet let you check string statuses!!!
181 - name: instance list 200 and contains the instance
183 url: http://localhost:10000/a1-p/policytypes/20000/policies
188 - admission_control_policy
190 # DELETE the instance and make sure subsequent GETs return properly
191 - name: delete the instance
192 delay_after: 3 # give it a few seconds for rmr
194 url: http://localhost:10000/a1-p/policytypes/20000/policies/admission_control_policy
199 - name: instance list 200 but no instance
201 url: http://localhost:10000/a1-p/policytypes/20000/policies
207 - name: cant get instance status
209 url: http://localhost:10000/a1-p/policytypes/20000/policies/admission_control_policy/status
214 - name: cant get instance
216 url: http://localhost:10000/a1-p/policytypes/20000/policies/admission_control_policy
221 - name: delete ac type
223 url: http://localhost:10000/a1-p/policytypes/20000
228 - name: cant delete again
230 url: http://localhost:10000/a1-p/policytypes/20000
237 url: http://localhost:10000/a1-p/policytypes/20000
242 - name: empty type list
244 url: http://localhost:10000/a1-p/policytypes
253 test_name: test the delay receiver
257 - name: test the delay policy type not there yet
259 url: http://localhost:10000/a1-p/policytypes/20001
264 - name: not yet in type list
266 url: http://localhost:10000/a1-p/policytypes
272 - name: instance list 404
274 url: http://localhost:10000/a1-p/policytypes/20001/policies
281 url: http://localhost:10000/a1-p/policytypes/20001
285 description: just for testing
286 policy_type_id: 20001
288 "$schema": http://json-schema.org/draft-07/schema#
295 additionalProperties: false
299 - name: type there now
301 url: http://localhost:10000/a1-p/policytypes/20001
307 description: just for testing
308 policy_type_id: 20001
310 "$schema": http://json-schema.org/draft-07/schema#
317 additionalProperties: false
319 - name: now in type list
321 url: http://localhost:10000/a1-p/policytypes
328 - name: instance list 200 but empty
330 url: http://localhost:10000/a1-p/policytypes/20001/policies
336 - name: test the delay policy instance get not there yet
338 url: http://localhost:10000/a1-p/policytypes/20001/policies/delaytest
343 - name: test the delay policy status get not there yet
345 url: http://localhost:10000/a1-p/policytypes/20001/policies/delaytest/status
350 - name: bad body for delaytest
352 url: http://localhost:10000/a1-p/policytypes/20001/policies/delaytest
359 - name: create delay policy instance
361 url: http://localhost:10000/a1-p/policytypes/20001/policies/delaytest
366 content-type: application/json
370 - name: test the delay policy get
372 url: http://localhost:10000/a1-p/policytypes/20001/policies/delaytest
379 - name: test the delay status get
381 delay_before: 6 # give it a few seconds for rmr ; delay reciever sleeps for 5 seconds by default
383 url: http://localhost:10000/a1-p/policytypes/20001/policies/delaytest/status
387 # tavern doesn't let you check non json yet!
389 - name: instance list 200 and there
391 url: http://localhost:10000/a1-p/policytypes/20001/policies
400 test_name: test bad routing file endpoint
406 url: http://localhost:10000/a1-p/policytypes/20002
410 description: just for testing
411 policy_type_id: 20002
413 "$schema": http://json-schema.org/draft-07/schema#
420 additionalProperties: false
422 - name: create policy instance that will go to a broken routing endpoint
424 url: http://localhost:10000/a1-p/policytypes/20002/policies/brokentest
429 content-type: application/json
433 - name: should be no status
435 url: http://localhost:10000/a1-p/policytypes/20002/policies/brokentest/status
441 # this one cant currently be deleted, see the comment in a1/data.py
445 test_name: bad_requests
451 url: http://localhost:10000/a1-p/policytypes/20666
456 - name: bad instance get bad type
458 url: http://localhost:10000/a1-p/policytypes/20666/policies/nonono
463 - name: bad int range 1
465 url: http://localhost:10000/a1-p/policytypes/19999
469 description: just for testing
470 policy_type_id: 19999
472 "$schema": http://json-schema.org/draft-07/schema#
477 - name: bad int range 2
479 url: http://localhost:10000/a1-p/policytypes/21024
483 description: just for testing
484 policy_type_id: 21024
486 "$schema": http://json-schema.org/draft-07/schema#