name: SecurityEventAutoreg
testcases:
- name: get_login_token
  steps:
  - type: get_login_token

- name: delete_security_event
  steps:
  - type: http
    method: DELETE
    url: '{{.pfserver_webadmin_url}}/api/v1/config/security_event/{{.security_event_autoreg.event.id}}'
    ignore_verify_ssl: true
    headers:
      "Content-Type": "application/json"
      "Authorization": "{{.get_login_token.json.result.token}}"
    assertions:
      - result.statuscode ShouldEqual 200

