executor: cumulus_dot1x_int_show
# TODO: Make better assertion, it is too large
input:
  connexion_type: "" # PEAP TLS MAB
  id: "{{.switch01.dot1x_interface.id}}"
  password: "{{.switch01.api.password}}"
  status: "" # AUTHORIZED
  url: '{{.switch01.api.url}}/nclu/v1/rpc'
  user: "{{.switch01.api.user}}"
  vlan_id: ""
steps:
- type: cumulus_api_command_line
  user: "{{.input.user}}"
  password: "{{.input.password}}"
  url: '{{.input.url}}'
  cmd: "show dot1x interface {{.input.id}} json"
  assertions:
    - result.cumulus_api_command_line_body ShouldContainSubstring "{{.input.vlan_id}}"
    - result.cumulus_api_command_line_body ShouldContainSubstring "{{.input.connexion_type}}"
    - result.cumulus_api_command_line_body ShouldContainSubstring "{{.input.status}}"
