Skip to content

Commit

Permalink
[ignore] add test for no action provided
Browse files Browse the repository at this point in the history
  • Loading branch information
akinross committed Oct 25, 2023
1 parent 08999f6 commit 89394c4
Showing 1 changed file with 75 additions and 27 deletions.
102 changes: 75 additions & 27 deletions tests/integration/targets/aci_system_endpoint_controls/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,23 @@
when: query_cloud.current == [] # This condition will skip execution for cloud sites
block:

# CONFIGURE SYSTEM ENDPOINT CONTROLS SETTINGS TO DEFAULT
- name: Set system endpoint controls settings to default prior to test
cisco.aci.aci_system_endpoint_controls:
<<: *aci_info
ip_aging:
admin_state: false
roque_ep_control:
admin_state: false
interval: 60
multiplication_factor: 4
hold_interval: 1800
ep_loop_protection:
admin_state: false
interval: 60
multiplication_factor: 4
action: [ port ]

# CONFIGURE SYSTEM ENDPOINT CONTROLS SETTINGS
- name: Set system endpoint controls settings (check_mode)
cisco.aci.aci_system_endpoint_controls: &endpoint_controls
Expand Down Expand Up @@ -127,15 +144,21 @@
hold_interval: 1800
register: nm_roque_ep_control

- name: Set ep loop protection system endpoint controls settings to default
- name: Set ep loop protection system endpoint controls settings without action to default
cisco.aci.aci_system_endpoint_controls:
<<: *aci_info
ep_loop_protection:
admin_state: false
interval: 60
multiplication_factor: 4
register: nm_ep_loop_protection_no_action

- name: Set ep loop protection system endpoint controls settings action to default
cisco.aci.aci_system_endpoint_controls:
<<: *aci_info
ep_loop_protection:
action: port
register: nm_ep_loop_protection
register: nm_ep_loop_protection_action

- name: Set system endpoint controls settings without config in config containers
cisco.aci.aci_system_endpoint_controls:
Expand Down Expand Up @@ -204,31 +227,56 @@
- nm_roque_ep_control.current.0.infraInfra.children.2.epLoopProtectP.attributes.action == "bd-learn-disable,port-disable"
- nm_roque_ep_control.current.0.infraInfra.children.2.epLoopProtectP.attributes.loopDetectIntvl == "70"
- nm_roque_ep_control.current.0.infraInfra.children.2.epLoopProtectP.attributes.loopDetectMult == "15"
- nm_ep_loop_protection is changed
- nm_ep_loop_protection.previous.0.infraInfra.children.0.epIpAgingP.attributes.adminSt == "disabled"
- nm_ep_loop_protection.previous.0.infraInfra.children.0.epIpAgingP.attributes.name == "default"
- nm_ep_loop_protection.previous.0.infraInfra.children.1.epControlP.attributes.adminSt == "disabled"
- nm_ep_loop_protection.previous.0.infraInfra.children.1.epControlP.attributes.name == "default"
- nm_ep_loop_protection.previous.0.infraInfra.children.1.epControlP.attributes.holdIntvl == "1800"
- nm_ep_loop_protection.previous.0.infraInfra.children.1.epControlP.attributes.rogueEpDetectIntvl == "60"
- nm_ep_loop_protection.previous.0.infraInfra.children.1.epControlP.attributes.rogueEpDetectMult == "4"
- nm_ep_loop_protection.previous.0.infraInfra.children.2.epLoopProtectP.attributes.adminSt == "enabled"
- nm_ep_loop_protection.previous.0.infraInfra.children.2.epLoopProtectP.attributes.name == "default"
- nm_ep_loop_protection.previous.0.infraInfra.children.2.epLoopProtectP.attributes.action == "bd-learn-disable,port-disable"
- nm_ep_loop_protection.previous.0.infraInfra.children.2.epLoopProtectP.attributes.loopDetectIntvl == "70"
- nm_ep_loop_protection.previous.0.infraInfra.children.2.epLoopProtectP.attributes.loopDetectMult == "15"
- nm_ep_loop_protection.current.0.infraInfra.children.0.epIpAgingP.attributes.adminSt == "disabled"
- nm_ep_loop_protection.current.0.infraInfra.children.0.epIpAgingP.attributes.name == "default"
- nm_ep_loop_protection.current.0.infraInfra.children.1.epControlP.attributes.adminSt == "disabled"
- nm_ep_loop_protection.current.0.infraInfra.children.1.epControlP.attributes.name == "default"
- nm_ep_loop_protection.current.0.infraInfra.children.1.epControlP.attributes.holdIntvl == "1800"
- nm_ep_loop_protection.current.0.infraInfra.children.1.epControlP.attributes.rogueEpDetectIntvl == "60"
- nm_ep_loop_protection.current.0.infraInfra.children.1.epControlP.attributes.rogueEpDetectMult == "4"
- nm_ep_loop_protection.current.0.infraInfra.children.2.epLoopProtectP.attributes.adminSt == "disabled"
- nm_ep_loop_protection.current.0.infraInfra.children.2.epLoopProtectP.attributes.name == "default"
- nm_ep_loop_protection.current.0.infraInfra.children.2.epLoopProtectP.attributes.action == "port-disable"
- nm_ep_loop_protection.current.0.infraInfra.children.2.epLoopProtectP.attributes.loopDetectIntvl == "60"
- nm_ep_loop_protection.current.0.infraInfra.children.2.epLoopProtectP.attributes.loopDetectMult == "4"
- nm_ep_loop_protection_no_action is changed
- nm_ep_loop_protection_no_action.previous.0.infraInfra.children.0.epIpAgingP.attributes.adminSt == "disabled"
- nm_ep_loop_protection_no_action.previous.0.infraInfra.children.0.epIpAgingP.attributes.name == "default"
- nm_ep_loop_protection_no_action.previous.0.infraInfra.children.1.epControlP.attributes.adminSt == "disabled"
- nm_ep_loop_protection_no_action.previous.0.infraInfra.children.1.epControlP.attributes.name == "default"
- nm_ep_loop_protection_no_action.previous.0.infraInfra.children.1.epControlP.attributes.holdIntvl == "1800"
- nm_ep_loop_protection_no_action.previous.0.infraInfra.children.1.epControlP.attributes.rogueEpDetectIntvl == "60"
- nm_ep_loop_protection_no_action.previous.0.infraInfra.children.1.epControlP.attributes.rogueEpDetectMult == "4"
- nm_ep_loop_protection_no_action.previous.0.infraInfra.children.2.epLoopProtectP.attributes.adminSt == "enabled"
- nm_ep_loop_protection_no_action.previous.0.infraInfra.children.2.epLoopProtectP.attributes.name == "default"
- nm_ep_loop_protection_no_action.previous.0.infraInfra.children.2.epLoopProtectP.attributes.action == "bd-learn-disable,port-disable"
- nm_ep_loop_protection_no_action.previous.0.infraInfra.children.2.epLoopProtectP.attributes.loopDetectIntvl == "70"
- nm_ep_loop_protection_no_action.previous.0.infraInfra.children.2.epLoopProtectP.attributes.loopDetectMult == "15"
- nm_ep_loop_protection_no_action.current.0.infraInfra.children.0.epIpAgingP.attributes.adminSt == "disabled"
- nm_ep_loop_protection_no_action.current.0.infraInfra.children.0.epIpAgingP.attributes.name == "default"
- nm_ep_loop_protection_no_action.current.0.infraInfra.children.1.epControlP.attributes.adminSt == "disabled"
- nm_ep_loop_protection_no_action.current.0.infraInfra.children.1.epControlP.attributes.name == "default"
- nm_ep_loop_protection_no_action.current.0.infraInfra.children.1.epControlP.attributes.holdIntvl == "1800"
- nm_ep_loop_protection_no_action.current.0.infraInfra.children.1.epControlP.attributes.rogueEpDetectIntvl == "60"
- nm_ep_loop_protection_no_action.current.0.infraInfra.children.1.epControlP.attributes.rogueEpDetectMult == "4"
- nm_ep_loop_protection_no_action.current.0.infraInfra.children.2.epLoopProtectP.attributes.adminSt == "disabled"
- nm_ep_loop_protection_no_action.current.0.infraInfra.children.2.epLoopProtectP.attributes.name == "default"
- nm_ep_loop_protection_no_action.current.0.infraInfra.children.2.epLoopProtectP.attributes.action == "bd-learn-disable,port-disable"
- nm_ep_loop_protection_no_action.current.0.infraInfra.children.2.epLoopProtectP.attributes.loopDetectIntvl == "60"
- nm_ep_loop_protection_no_action.current.0.infraInfra.children.2.epLoopProtectP.attributes.loopDetectMult == "4"
- nm_ep_loop_protection_action is changed
- nm_ep_loop_protection_action.previous.0.infraInfra.children.0.epIpAgingP.attributes.adminSt == "disabled"
- nm_ep_loop_protection_action.previous.0.infraInfra.children.0.epIpAgingP.attributes.name == "default"
- nm_ep_loop_protection_action.previous.0.infraInfra.children.1.epControlP.attributes.adminSt == "disabled"
- nm_ep_loop_protection_action.previous.0.infraInfra.children.1.epControlP.attributes.name == "default"
- nm_ep_loop_protection_action.previous.0.infraInfra.children.1.epControlP.attributes.holdIntvl == "1800"
- nm_ep_loop_protection_action.previous.0.infraInfra.children.1.epControlP.attributes.rogueEpDetectIntvl == "60"
- nm_ep_loop_protection_action.previous.0.infraInfra.children.1.epControlP.attributes.rogueEpDetectMult == "4"
- nm_ep_loop_protection_action.previous.0.infraInfra.children.2.epLoopProtectP.attributes.adminSt == "disabled"
- nm_ep_loop_protection_action.previous.0.infraInfra.children.2.epLoopProtectP.attributes.name == "default"
- nm_ep_loop_protection_action.previous.0.infraInfra.children.2.epLoopProtectP.attributes.action == "bd-learn-disable,port-disable"
- nm_ep_loop_protection_action.previous.0.infraInfra.children.2.epLoopProtectP.attributes.loopDetectIntvl == "60"
- nm_ep_loop_protection_action.previous.0.infraInfra.children.2.epLoopProtectP.attributes.loopDetectMult == "4"
- nm_ep_loop_protection_action.current.0.infraInfra.children.0.epIpAgingP.attributes.adminSt == "disabled"
- nm_ep_loop_protection_action.current.0.infraInfra.children.0.epIpAgingP.attributes.name == "default"
- nm_ep_loop_protection_action.current.0.infraInfra.children.1.epControlP.attributes.adminSt == "disabled"
- nm_ep_loop_protection_action.current.0.infraInfra.children.1.epControlP.attributes.name == "default"
- nm_ep_loop_protection_action.current.0.infraInfra.children.1.epControlP.attributes.holdIntvl == "1800"
- nm_ep_loop_protection_action.current.0.infraInfra.children.1.epControlP.attributes.rogueEpDetectIntvl == "60"
- nm_ep_loop_protection_action.current.0.infraInfra.children.1.epControlP.attributes.rogueEpDetectMult == "4"
- nm_ep_loop_protection_action.current.0.infraInfra.children.2.epLoopProtectP.attributes.adminSt == "disabled"
- nm_ep_loop_protection_action.current.0.infraInfra.children.2.epLoopProtectP.attributes.name == "default"
- nm_ep_loop_protection_action.current.0.infraInfra.children.2.epLoopProtectP.attributes.action == "port-disable"
- nm_ep_loop_protection_action.current.0.infraInfra.children.2.epLoopProtectP.attributes.loopDetectIntvl == "60"
- nm_ep_loop_protection_action.current.0.infraInfra.children.2.epLoopProtectP.attributes.loopDetectMult == "4"
- nm_no_config_in_config_containers is not changed
- err_no_config is not changed
- err_no_config is failed
Expand Down

0 comments on commit 89394c4

Please sign in to comment.