Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
danischm committed Jun 10, 2024
1 parent f74721f commit 5831d91
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 25 deletions.
1 change: 0 additions & 1 deletion docs/resources/bgp_peer.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ resource "nxos_bgp_peer" "example" {
- `password` (String) Password.
- `password_type` (String) Password Encryption Type.
- Choices: `0`, `3`, `LINE`, `7`
- Default value: `LINE`
- `peer_control` (String) Peer Controls.
- Choices: `bfd`, `dis-conn-check`, `cap-neg-off`, `no-dyn-cap`
- `peer_template` (String) Peer template name.
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/bgp_peer_local_asn.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ This resource can manage the BGP peer local asn configuration.

```terraform
resource "nxos_bgp_peer_local_asn" "example" {
asn_propagation = "prepend"
asn_propagation = "no-prepend"
local_asn = "65001"
vrf = "default"
address = "192.168.0.1"
Expand Down
2 changes: 1 addition & 1 deletion examples/resources/nxos_bgp_peer_local_asn/resource.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
resource "nxos_bgp_peer_local_asn" "example" {
asn_propagation = "prepend"
asn_propagation = "no-prepend"
local_asn = "65001"
vrf = "default"
address = "192.168.0.1"
Expand Down
3 changes: 2 additions & 1 deletion gen/definitions/bgp_peer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ attributes:
- LINE
- "7"
example: LINE
default_value: LINE
exclude_test: true
omit_empty_value: true
- nxos_name: password
tf_name: password
description: "Password."
Expand Down
6 changes: 1 addition & 5 deletions gen/definitions/bgp_peer_local_asn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ attributes:
- no-prepend
- replace-as
- dual-as
example: prepend
example: no-prepend
- nxos_name: localAsn
tf_name: local_asn
type: String
Expand Down Expand Up @@ -67,10 +67,6 @@ test_prerequisites:
- dn: sys/bgp/inst/dom-[default]/peer-[192.168.0.1]
class_name: bgpPeer
attributes:
- name: bgp_asn
value: "65001"
- name: vrf_name
value: default
- name: addr
value: "192.168.0.1"
- name: asn
Expand Down
6 changes: 2 additions & 4 deletions internal/provider/data_source_nxos_bgp_peer_local_asn_test.go

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

2 changes: 0 additions & 2 deletions internal/provider/data_source_nxos_bgp_peer_test.go

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

2 changes: 1 addition & 1 deletion internal/provider/model_nxos_bgp_peer.go

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

4 changes: 1 addition & 3 deletions internal/provider/resource_nxos_bgp_peer.go

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

6 changes: 2 additions & 4 deletions internal/provider/resource_nxos_bgp_peer_local_asn_test.go

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

2 changes: 0 additions & 2 deletions internal/provider/resource_nxos_bgp_peer_test.go

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

0 comments on commit 5831d91

Please sign in to comment.