name: Unregister and reevaluate access of node01
testcases:
- name: get_login_token
  steps:
  - type: get_login_token

- name: unreg_node01
  steps:
  - type: http
    method: PATCH
    url: '{{.pfserver_webadmin_url}}/api/v1/node/{{.node01_ens7_mac_address_url_encoded}}'
    ignore_verify_ssl: true
    body: >-
      {
        "status": "unreg"
      }
    headers:
      "Authorization": "{{.get_login_token.result.token}}"
      "Content-Type": "application/json"
    assertions:
      - result.statuscode ShouldEqual 200
