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: test the delay policy
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
208 delay_before: 8 # give it a few seconds for rmr ; delay reciever sleeps for 5 seconds by default
210 url: http://localhost:10000/a1-p/policytypes/20001/policies/delaytest/status
215 - handler_id: delay_receiver
221 test_name: bad_requests
227 url: http://localhost:10000/a1-p/policytypes/20002
233 - name: bad instance get
235 url: http://localhost:10000/a1-p/policytypes/20000/policies/darkness
240 - name: bad int range 1
242 url: http://localhost:10000/a1-p/policytypes/19999
246 description: just for testing
247 policy_type_id: 19999
249 "$schema": http://json-schema.org/draft-07/schema#
254 - name: bad int range 2
256 url: http://localhost:10000/a1-p/policytypes/21024
260 description: just for testing
261 policy_type_id: 21024
263 "$schema": http://json-schema.org/draft-07/schema#
271 - name: bad body for admission control policy
273 url: http://localhost:10000/a1-p/policytypes/20000/policies/admission_control_policy
278 content-type: application/json
284 url: http://localhost:10000/a1-p/policytypes/20000/policies/admission_control_policy
290 - name: bad body for delaytest
292 url: http://localhost:10000/a1-p/policytypes/20001/policies/delaytest