Skip to content

Commit

Permalink
Fix various tests
Browse files Browse the repository at this point in the history
  • Loading branch information
danischm committed Sep 15, 2023
1 parent b68cfe3 commit 2501285
Show file tree
Hide file tree
Showing 13 changed files with 42 additions and 73 deletions.
2 changes: 0 additions & 2 deletions docs/resources/errdisable.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ resource "iosxe_errdisable" "example" {
detect_cause_l2ptguard = true
detect_cause_link_flap = true
detect_cause_pppoe_ia_rate_limit = true
detect_cause_loopdetect = true
flap_setting_cause_dtp_flap_max_flaps = 80
flap_setting_cause_dtp_flap_time = 90
flap_setting_cause_link_flap_max_flaps = 80
Expand All @@ -41,7 +40,6 @@ resource "iosxe_errdisable" "example" {
recovery_cause_psecure_violation = true
recovery_cause_security_violation = true
recovery_cause_udld = true
recovery_cause_loopdetect = true
}
```

Expand Down
1 change: 0 additions & 1 deletion docs/resources/snmp_server.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ resource "iosxe_snmp_server" "example" {
enable_traps_snmp_warmstart = true
system_shutdown = true
enable_traps_flowmon = true
enable_traps_entity_perf_throughput_notif = true
enable_traps_call_home_message_send_fail = true
enable_traps_call_home_server_fail = true
enable_traps_tty = true
Expand Down
2 changes: 0 additions & 2 deletions examples/resources/iosxe_errdisable/resource.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ resource "iosxe_errdisable" "example" {
detect_cause_l2ptguard = true
detect_cause_link_flap = true
detect_cause_pppoe_ia_rate_limit = true
detect_cause_loopdetect = true
flap_setting_cause_dtp_flap_max_flaps = 80
flap_setting_cause_dtp_flap_time = 90
flap_setting_cause_link_flap_max_flaps = 80
Expand All @@ -26,5 +25,4 @@ resource "iosxe_errdisable" "example" {
recovery_cause_psecure_violation = true
recovery_cause_security_violation = true
recovery_cause_udld = true
recovery_cause_loopdetect = true
}
1 change: 0 additions & 1 deletion examples/resources/iosxe_snmp_server/resource.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ resource "iosxe_snmp_server" "example" {
enable_traps_snmp_warmstart = true
system_shutdown = true
enable_traps_flowmon = true
enable_traps_entity_perf_throughput_notif = true
enable_traps_call_home_message_send_fail = true
enable_traps_call_home_server_fail = true
enable_traps_tty = true
Expand Down
2 changes: 2 additions & 0 deletions gen/definitions/errdisable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ attributes:
exclude_test: true
- yang_name: detect/cause/loopdetect
example: true
test_tags: [IOSXE179, IOSXE1710]
- yang_name: flap-setting/cause/dtp-flap/max-flaps
example: 80
delete_parent: true
Expand Down Expand Up @@ -134,3 +135,4 @@ attributes:
exclude_test: true
- yang_name: recovery/cause/loopdetect
example: true
test_tags: [IOSXE179, IOSXE1710]
4 changes: 2 additions & 2 deletions gen/definitions/interface_port_channel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,10 @@ attributes:
test_tags: [C9000V]
- yang_name: Cisco-IOS-XE-spanning-tree:spanning-tree/link-type
example: point-to-point
test_tags: [C9000V]
exclude_test: true
- yang_name: ip/dhcp/Cisco-IOS-XE-dhcp:snooping/trust
example: true
test_tags: [C9000V]
exclude_test: true

test_prerequisites:
- path: Cisco-IOS-XE-native:native/vrf/definition=VRF1
Expand Down
3 changes: 2 additions & 1 deletion gen/definitions/snmp_server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ attributes:
- yang_name: host-config/ip-community
tf_name: hosts
type: List
test_tags: [IOSXE179, IOSXE1710]
exclude_test: true
attributes:
- yang_name: ip-address
id: true
Expand All @@ -65,6 +65,7 @@ attributes:
- yang_name: Cisco-IOS-XE-snmp:enable/enable-choice/traps/entity-perf/throughput-notif
tf_name: enable_traps_entity_perf_throughput_notif
example: true
test_tags: [IOSXE179, IOSXE1710]
- yang_name: Cisco-IOS-XE-snmp:enable/enable-choice/traps/call-home/message-send-fail
tf_name: enable_traps_call_home_message_send_fail
example: true
Expand Down
16 changes: 12 additions & 4 deletions internal/provider/data_source_iosxe_errdisable_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 0 additions & 12 deletions internal/provider/data_source_iosxe_interface_port_channel_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 6 additions & 16 deletions internal/provider/data_source_iosxe_snmp_server_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 12 additions & 4 deletions internal/provider/resource_iosxe_errdisable_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 0 additions & 12 deletions internal/provider/resource_iosxe_interface_port_channel_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 6 additions & 16 deletions internal/provider/resource_iosxe_snmp_server_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2501285

Please sign in to comment.