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
180 instance_status: "IN EFFECT"
181 has_been_deleted: False
183 - name: instance list 200 and contains the instance
185 url: http://localhost:10000/a1-p/policytypes/20000/policies
190 - admission_control_policy
192 # DELETE the instance and make sure subsequent GETs return properly
193 - name: delete the instance
196 url: http://localhost:10000/a1-p/policytypes/20000/policies/admission_control_policy
201 - name: status should now be not in effect but still there
202 delay_before: 3 # give it a few seconds for rmr
203 delay_after: 8 # 3 + 11 > 10; that is, wait until t2 expires
205 url: http://localhost:10000/a1-p/policytypes/20000/policies/admission_control_policy/status
210 instance_status: "NOT IN EFFECT"
211 has_been_deleted: True
213 - name: instance list 200 but no instance
215 url: http://localhost:10000/a1-p/policytypes/20000/policies
221 - name: cant get instance status
223 url: http://localhost:10000/a1-p/policytypes/20000/policies/admission_control_policy/status
228 - name: cant get instance
230 url: http://localhost:10000/a1-p/policytypes/20000/policies/admission_control_policy
235 - name: delete ac type
237 url: http://localhost:10000/a1-p/policytypes/20000
242 - name: cant delete again
244 url: http://localhost:10000/a1-p/policytypes/20000
251 url: http://localhost:10000/a1-p/policytypes/20000
256 - name: empty type list
258 url: http://localhost:10000/a1-p/policytypes
267 test_name: test the delay receiver
271 - name: test the delay policy type not there yet
273 url: http://localhost:10000/a1-p/policytypes/20001
278 - name: not yet in type list
280 url: http://localhost:10000/a1-p/policytypes
286 - name: instance list 404
288 url: http://localhost:10000/a1-p/policytypes/20001/policies
295 url: http://localhost:10000/a1-p/policytypes/20001
299 description: just for testing
300 policy_type_id: 20001
302 "$schema": http://json-schema.org/draft-07/schema#
309 additionalProperties: false
313 - name: type there now
315 url: http://localhost:10000/a1-p/policytypes/20001
321 description: just for testing
322 policy_type_id: 20001
324 "$schema": http://json-schema.org/draft-07/schema#
331 additionalProperties: false
333 - name: now in type list
335 url: http://localhost:10000/a1-p/policytypes
342 - name: instance list 200 but empty
344 url: http://localhost:10000/a1-p/policytypes/20001/policies
350 - name: test the delay policy instance get not there yet
352 url: http://localhost:10000/a1-p/policytypes/20001/policies/delaytest
357 - name: test the delay policy status get not there yet
359 url: http://localhost:10000/a1-p/policytypes/20001/policies/delaytest/status
364 - name: bad body for delaytest
366 url: http://localhost:10000/a1-p/policytypes/20001/policies/delaytest
373 - name: create delay policy instance
375 url: http://localhost:10000/a1-p/policytypes/20001/policies/delaytest
380 content-type: application/json
384 - name: test the delay status get, not in effect yet
386 url: http://localhost:10000/a1-p/policytypes/20001/policies/delaytest/status
391 instance_status: "NOT IN EFFECT"
392 has_been_deleted: False
394 - name: test the delay policy get
396 url: http://localhost:10000/a1-p/policytypes/20001/policies/delaytest
403 - name: instance list 200 and there
405 url: http://localhost:10000/a1-p/policytypes/20001/policies
412 - name: test the delay status get
414 delay_before: 6 # give it a few seconds for rmr ; delay reciever sleeps for 5 seconds by default
416 url: http://localhost:10000/a1-p/policytypes/20001/policies/delaytest/status
421 instance_status: "IN EFFECT"
422 has_been_deleted: False
424 # DELETE the instance and make sure subsequent GETs return properly
425 - name: delete the instance
427 url: http://localhost:10000/a1-p/policytypes/20001/policies/delaytest
432 - name: test the delay status get immediately
434 url: http://localhost:10000/a1-p/policytypes/20001/policies/delaytest/status
439 instance_status: "IN EFFECT"
440 has_been_deleted: True
442 - name: test the delay status get after delay but before timers
445 url: http://localhost:10000/a1-p/policytypes/20001/policies/delaytest/status
450 instance_status: "NOT IN EFFECT"
451 has_been_deleted: True
453 - name: test the delay status get after delay and after the timers
456 url: http://localhost:10000/a1-p/policytypes/20001/policies/delaytest/status
463 test_name: test bad routing file endpoint
469 url: http://localhost:10000/a1-p/policytypes/20002
473 description: just for testing
474 policy_type_id: 20002
476 "$schema": http://json-schema.org/draft-07/schema#
483 additionalProperties: false
485 - name: create policy instance that will go to a broken routing endpoint
487 url: http://localhost:10000/a1-p/policytypes/20002/policies/brokentest
492 content-type: application/json
496 - name: should be no status
498 url: http://localhost:10000/a1-p/policytypes/20002/policies/brokentest/status
504 # this one cant currently be deleted, see the comment in a1/data.py
508 test_name: bad_requests
514 url: http://localhost:10000/a1-p/policytypes/20666
519 - name: bad instance get bad type
521 url: http://localhost:10000/a1-p/policytypes/20666/policies/nonono
526 - name: bad int range 1
528 url: http://localhost:10000/a1-p/policytypes/19999
532 description: just for testing
533 policy_type_id: 19999
535 "$schema": http://json-schema.org/draft-07/schema#
540 - name: bad int range 2
542 url: http://localhost:10000/a1-p/policytypes/21024
546 description: just for testing
547 policy_type_id: 21024
549 "$schema": http://json-schema.org/draft-07/schema#