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 # PUT the instance and make sure subsequent GETs return properly
119 - name: put the admission control policy instance
121 url: http://localhost:10000/a1-p/policytypes/20000/policies/admission_control_policy
127 trigger_threshold: 10
129 content-type: application/json
133 - name: test the admission control policy get
135 url: http://localhost:10000/a1-p/policytypes/20000/policies/admission_control_policy
143 trigger_threshold: 10
145 - name: test the admission control policy status get
146 delay_before: 3 # give it a few seconds for rmr
148 url: http://localhost:10000/a1-p/policytypes/20000/policies/admission_control_policy/status
152 # tavern doesn't yet let you check string statuses!!!
154 - name: instance list 200 and contains the instance
156 url: http://localhost:10000/a1-p/policytypes/20000/policies
161 - admission_control_policy
163 # DELETE the instance and make sure subsequent GETs return properly
164 - name: delete the instance
166 url: http://localhost:10000/a1-p/policytypes/20000/policies/admission_control_policy
171 - name: instance list 200 but no instance
173 url: http://localhost:10000/a1-p/policytypes/20000/policies
179 - name: cant get instance status
180 delay_before: 3 # give it a few seconds for rmr
182 url: http://localhost:10000/a1-p/policytypes/20000/policies/admission_control_policy/status
187 - name: cant get instance
189 url: http://localhost:10000/a1-p/policytypes/20000/policies/admission_control_policy
196 test_name: test the delay receiver
200 - name: test the delay policy type not there yet
202 url: http://localhost:10000/a1-p/policytypes/20001
207 - name: not yet in type list
209 url: http://localhost:10000/a1-p/policytypes
215 - name: instance list 404
217 url: http://localhost:10000/a1-p/policytypes/20001/policies
224 url: http://localhost:10000/a1-p/policytypes/20001
228 description: just for testing
229 policy_type_id: 20001
231 "$schema": http://json-schema.org/draft-07/schema#
238 additionalProperties: false
242 - name: type there now
244 url: http://localhost:10000/a1-p/policytypes/20001
250 description: just for testing
251 policy_type_id: 20001
253 "$schema": http://json-schema.org/draft-07/schema#
260 additionalProperties: false
262 - name: now in type list
264 url: http://localhost:10000/a1-p/policytypes
272 - name: instance list 200 but empty
274 url: http://localhost:10000/a1-p/policytypes/20001/policies
280 - name: test the delay policy instance get not there yet
282 url: http://localhost:10000/a1-p/policytypes/20001/policies/delaytest
287 - name: test the delay policy status get not there yet
289 url: http://localhost:10000/a1-p/policytypes/20001/policies/delaytest/status
294 - name: create delay policy instance
296 url: http://localhost:10000/a1-p/policytypes/20001/policies/delaytest
301 content-type: application/json
305 - name: test the delay policy get
307 url: http://localhost:10000/a1-p/policytypes/20001/policies/delaytest
314 - name: test the admission control policy status get
316 delay_before: 5 # give it a few seconds for rmr ; delay reciever sleeps for 5 seconds by default
318 url: http://localhost:10000/a1-p/policytypes/20001/policies/delaytest/status
322 # tavern doesn't let you check non json yet!
324 - name: instance list 200 and there
326 url: http://localhost:10000/a1-p/policytypes/20001/policies
335 test_name: test bad routing file endpoint
341 url: http://localhost:10000/a1-p/policytypes/20002
345 description: just for testing
346 policy_type_id: 20002
348 "$schema": http://json-schema.org/draft-07/schema#
355 additionalProperties: false
357 - name: create policy instance that will go to a broken routing endpoint
359 url: http://localhost:10000/a1-p/policytypes/20002/policies/brokentest
364 content-type: application/json
368 - name: should be no status
369 delay_before: 5 # give it a few seconds for rmr ; delay reciever sleeps for 5 seconds by default
371 url: http://localhost:10000/a1-p/policytypes/20002/policies/brokentest/status
380 test_name: bad_requests
386 url: http://localhost:10000/a1-p/policytypes/20666
392 - name: bad instance get
394 url: http://localhost:10000/a1-p/policytypes/20000/policies/darkness
399 - name: bad int range 1
401 url: http://localhost:10000/a1-p/policytypes/19999
405 description: just for testing
406 policy_type_id: 19999
408 "$schema": http://json-schema.org/draft-07/schema#
413 - name: bad int range 2
415 url: http://localhost:10000/a1-p/policytypes/21024
419 description: just for testing
420 policy_type_id: 21024
422 "$schema": http://json-schema.org/draft-07/schema#
430 - name: bad body for admission control policy
432 url: http://localhost:10000/a1-p/policytypes/20000/policies/admission_control_policy
437 content-type: application/json
443 url: http://localhost:10000/a1-p/policytypes/20000/policies/admission_control_policy
449 - name: bad body for delaytest
451 url: http://localhost:10000/a1-p/policytypes/20001/policies/delaytest