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/6660666
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/6660666/policies
42 url: http://localhost:10000/a1-p/policytypes/6660666
45 name: Admission Control
46 description: various parameters to control admission of dual connection
47 policy_type_id: 6660666
49 "$schema": http://json-schema.org/draft-07/schema#
51 additionalProperties: false
57 description: integer id representing class to which we are applying policy
60 description: Whether to enable or disable enforcement of policy on this class
65 description: Sliding window length in seconds
79 additionalProperties: false
83 - name: type there now
85 url: http://localhost:10000/a1-p/policytypes/6660666
90 - name: now in type list
92 url: http://localhost:10000/a1-p/policytypes
98 - name: instance list 200 but empty
100 url: http://localhost:10000/a1-p/policytypes/6660666/policies
106 - name: test the admission control policy get not there yet
108 url: http://localhost:10000/a1-p/policytypes/6660666/policies/admission_control_policy
113 - name: test the admission control policy status get not there yet
115 url: http://localhost:10000/a1-p/policytypes/6660666/policies/admission_control_policy/status
120 - name: bad body for admission control policy
122 url: http://localhost:10000/a1-p/policytypes/6660666/policies/admission_control_policy
127 content-type: application/json
133 url: http://localhost:10000/a1-p/policytypes/6660666/policies/admission_control_policy
140 - name: put the admission control policy instance
142 url: http://localhost:10000/a1-p/policytypes/6660666/policies/admission_control_policy
149 trigger_threshold: 10
151 content-type: application/json
155 - name: cant delete type with instances
156 delay_before: 3 # wait for the type acks to come back first
158 url: http://localhost:10000/a1-p/policytypes/6660666
163 - name: test the admission control policy get
165 url: http://localhost:10000/a1-p/policytypes/6660666/policies/admission_control_policy
174 trigger_threshold: 10
177 - name: test the admission control policy status get
178 delay_before: 3 # give it a few seconds for rmr
180 url: http://localhost:10000/a1-p/policytypes/6660666/policies/admission_control_policy/status
185 instance_status: "IN EFFECT"
186 has_been_deleted: False
188 - name: instance list 200 and contains the instance
190 url: http://localhost:10000/a1-p/policytypes/6660666/policies
195 - admission_control_policy
197 # DELETE the instance and make sure subsequent GETs return properly
198 - name: delete the instance
201 url: http://localhost:10000/a1-p/policytypes/6660666/policies/admission_control_policy
206 - name: status should now be not in effect but still there
207 delay_before: 3 # give it a few seconds for rmr
208 delay_after: 8 # 3 + 11 > 10; that is, wait until t2 expires
210 url: http://localhost:10000/a1-p/policytypes/6660666/policies/admission_control_policy/status
215 instance_status: "NOT IN EFFECT"
216 has_been_deleted: True
218 - name: instance list 200 but no instance
220 url: http://localhost:10000/a1-p/policytypes/6660666/policies
226 - name: cant get instance status
228 url: http://localhost:10000/a1-p/policytypes/6660666/policies/admission_control_policy/status
233 - name: cant get instance
235 url: http://localhost:10000/a1-p/policytypes/6660666/policies/admission_control_policy
240 - name: delete ac type
242 url: http://localhost:10000/a1-p/policytypes/6660666
247 - name: cant delete again
249 url: http://localhost:10000/a1-p/policytypes/6660666
256 url: http://localhost:10000/a1-p/policytypes/6660666
261 - name: empty type list
263 url: http://localhost:10000/a1-p/policytypes
272 test_name: test the delay receiver
276 - name: test the delay policy type not there yet
278 url: http://localhost:10000/a1-p/policytypes/20001
283 - name: not yet in type list
285 url: http://localhost:10000/a1-p/policytypes
291 - name: instance list 404
293 url: http://localhost:10000/a1-p/policytypes/20001/policies
300 url: http://localhost:10000/a1-p/policytypes/20001
304 description: just for testing
305 policy_type_id: 20001
307 "$schema": http://json-schema.org/draft-07/schema#
314 additionalProperties: false
318 - name: type there now
320 url: http://localhost:10000/a1-p/policytypes/20001
326 description: just for testing
327 policy_type_id: 20001
329 "$schema": http://json-schema.org/draft-07/schema#
336 additionalProperties: false
338 - name: now in type list
340 url: http://localhost:10000/a1-p/policytypes
347 - name: instance list 200 but empty
349 url: http://localhost:10000/a1-p/policytypes/20001/policies
355 - name: test the delay policy instance get not there yet
357 url: http://localhost:10000/a1-p/policytypes/20001/policies/delaytest
362 - name: test the delay policy status get not there yet
364 url: http://localhost:10000/a1-p/policytypes/20001/policies/delaytest/status
369 - name: bad body for delaytest
371 url: http://localhost:10000/a1-p/policytypes/20001/policies/delaytest
378 - name: create delay policy instance
380 url: http://localhost:10000/a1-p/policytypes/20001/policies/delaytest
385 content-type: application/json
389 - name: test the delay status get, not in effect yet
391 url: http://localhost:10000/a1-p/policytypes/20001/policies/delaytest/status
396 instance_status: "NOT IN EFFECT"
397 has_been_deleted: False
399 - name: test the delay policy get
401 url: http://localhost:10000/a1-p/policytypes/20001/policies/delaytest
408 - name: instance list 200 and there
410 url: http://localhost:10000/a1-p/policytypes/20001/policies
417 - name: test the delay status get
419 delay_before: 6 # give it a few seconds for rmr ; delay reciever sleeps for 5 seconds by default
421 url: http://localhost:10000/a1-p/policytypes/20001/policies/delaytest/status
426 instance_status: "IN EFFECT"
427 has_been_deleted: False
429 # DELETE the instance and make sure subsequent GETs return properly
430 - name: delete the instance
432 url: http://localhost:10000/a1-p/policytypes/20001/policies/delaytest
437 - name: test the delay status get immediately
439 url: http://localhost:10000/a1-p/policytypes/20001/policies/delaytest/status
444 instance_status: "IN EFFECT"
445 has_been_deleted: True
447 - name: test the delay status get after delay but before timers
450 url: http://localhost:10000/a1-p/policytypes/20001/policies/delaytest/status
455 instance_status: "NOT IN EFFECT"
456 has_been_deleted: True
458 - name: test the delay status get after delay and after the timers
461 url: http://localhost:10000/a1-p/policytypes/20001/policies/delaytest/status
468 test_name: test bad routing file endpoint
474 url: http://localhost:10000/a1-p/policytypes/20002
478 description: just for testing
479 policy_type_id: 20002
481 "$schema": http://json-schema.org/draft-07/schema#
488 additionalProperties: false
490 - name: create policy instance that will go to a broken routing endpoint
492 url: http://localhost:10000/a1-p/policytypes/20002/policies/brokentest
497 content-type: application/json
501 - name: should be no status
503 url: http://localhost:10000/a1-p/policytypes/20002/policies/brokentest/status
509 # this one cant currently be deleted, see the comment in a1/data.py
513 test_name: bad_requests
519 url: http://localhost:10000/a1-p/policytypes/20666
524 - name: bad instance get bad type
526 url: http://localhost:10000/a1-p/policytypes/20666/policies/nonono
531 - name: bad int range 1
533 url: http://localhost:10000/a1-p/policytypes/0
537 description: just for testing
540 "$schema": http://json-schema.org/draft-07/schema#
545 - name: bad int range 2
547 url: http://localhost:10000/a1-p/policytypes/2147483648
551 description: just for testing
552 policy_type_id: 2147483648
554 "$schema": http://json-schema.org/draft-07/schema#