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
27 url: http://localhost:10000/a1-p/policytypes/20000
30 name: Admission Control
31 description: various parameters to control admission of dual connection
34 "$schema": http://json-schema.org/draft-07/schema#
45 description: Sliding window length (in minutes)
51 description: "% Connections to block"
56 description: Minimum number of events in window to trigger blocking
62 additionalProperties: false
64 - name: type there now
66 url: http://localhost:10000/a1-p/policytypes/20000
71 - name: test the admission control policy get not there yet
73 url: http://localhost:10000/a1-p/policytypes/20000/policies/admission_control_policy
78 - name: test the admission control policy status get not there yet
80 url: http://localhost:10000/a1-p/policytypes/20000/policies/admission_control_policy/status
85 - name: put the admission control policy
87 url: http://localhost:10000/a1-p/policytypes/20000/policies/admission_control_policy
95 content-type: application/json
99 - name: test the admission control policy get
101 url: http://localhost:10000/a1-p/policytypes/20000/policies/admission_control_policy
109 trigger_threshold: 10
111 - name: test the admission control policy status get
112 delay_before: 3 # give it a few seconds for rmr
114 url: http://localhost:10000/a1-p/policytypes/20000/policies/admission_control_policy/status
119 - handler_id: test_receiver
124 test_name: test the delay receiver
128 - name: test the delay policy type not there yet
130 url: http://localhost:10000/a1-p/policytypes/20001
137 url: http://localhost:10000/a1-p/policytypes/20001
141 description: just for testing
142 policy_type_id: 20001
144 "$schema": http://json-schema.org/draft-07/schema#
151 additionalProperties: false
153 - name: type there now
155 url: http://localhost:10000/a1-p/policytypes/20001
161 description: just for testing
162 policy_type_id: 20001
164 "$schema": http://json-schema.org/draft-07/schema#
171 additionalProperties: false
173 - name: test the delay policy instance get not there yet
175 url: http://localhost:10000/a1-p/policytypes/20001/policies/delaytest
180 - name: test the delay policy status get not there yet
182 url: http://localhost:10000/a1-p/policytypes/20001/policies/delaytest/status
187 - name: create delay policy instance
189 url: http://localhost:10000/a1-p/policytypes/20001/policies/delaytest
194 content-type: application/json
198 - name: test the delay policy get
200 url: http://localhost:10000/a1-p/policytypes/20001/policies/delaytest
207 - name: test the admission control policy status get
209 delay_before: 5 # give it a few seconds for rmr ; delay reciever sleeps for 5 seconds by default
211 url: http://localhost:10000/a1-p/policytypes/20001/policies/delaytest/status
216 - handler_id: delay_receiver
221 test_name: test bad routing file endpoint
227 url: http://localhost:10000/a1-p/policytypes/20002
231 description: just for testing
232 policy_type_id: 20002
234 "$schema": http://json-schema.org/draft-07/schema#
241 additionalProperties: false
243 - name: create policy instance that will go to a broken routing endpoint
245 url: http://localhost:10000/a1-p/policytypes/20002/policies/brokentest
250 content-type: application/json
254 - name: should be no status
255 delay_before: 5 # give it a few seconds for rmr ; delay reciever sleeps for 5 seconds by default
257 url: http://localhost:10000/a1-p/policytypes/20002/policies/brokentest/status
266 test_name: bad_requests
272 url: http://localhost:10000/a1-p/policytypes/20666
278 - name: bad instance get
280 url: http://localhost:10000/a1-p/policytypes/20000/policies/darkness
285 - name: bad int range 1
287 url: http://localhost:10000/a1-p/policytypes/19999
291 description: just for testing
292 policy_type_id: 19999
294 "$schema": http://json-schema.org/draft-07/schema#
299 - name: bad int range 2
301 url: http://localhost:10000/a1-p/policytypes/21024
305 description: just for testing
306 policy_type_id: 21024
308 "$schema": http://json-schema.org/draft-07/schema#
316 - name: bad body for admission control policy
318 url: http://localhost:10000/a1-p/policytypes/20000/policies/admission_control_policy
323 content-type: application/json
329 url: http://localhost:10000/a1-p/policytypes/20000/policies/admission_control_policy
335 - name: bad body for delaytest
337 url: http://localhost:10000/a1-p/policytypes/20001/policies/delaytest