Skip to content

Commit

Permalink
Test data updates
Browse files Browse the repository at this point in the history
  • Loading branch information
danischm committed May 22, 2024
1 parent 8b00ac7 commit b453b36
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion docs/data-sources/device.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This data source can read the Device .

```terraform
data "sdwan_device" "example" {
serial_number = "0DFF93B792354B08ABE5E43566347F09"
serial_number = "3FFEFB37892E415FAF34A95D2328EC4C"
name = "Controller01"
}
```
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/dns_security_policy_definition.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ resource "sdwan_dns_security_policy_definition" "example" {
match_all_vpn = true
dnscrypt = true
umbrella_dns_default = true
cisco_sig_credentials_feature_template_id = "22e8bd63-df16-4487-bf49-745064b941ee"
cisco_sig_credentials_feature_template_id = "885c3bce-eab6-4d45-8ff3-488f0df4072a"
}
```

Expand Down
2 changes: 1 addition & 1 deletion examples/data-sources/sdwan_device/data-source.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
data "sdwan_device" "example" {
serial_number = "0DFF93B792354B08ABE5E43566347F09"
serial_number = "3FFEFB37892E415FAF34A95D2328EC4C"
name = "Controller01"
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ resource "sdwan_dns_security_policy_definition" "example" {
match_all_vpn = true
dnscrypt = true
umbrella_dns_default = true
cisco_sig_credentials_feature_template_id = "22e8bd63-df16-4487-bf49-745064b941ee"
cisco_sig_credentials_feature_template_id = "885c3bce-eab6-4d45-8ff3-488f0df4072a"
}
6 changes: 3 additions & 3 deletions gen/definitions/generic/device.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ attributes:
tf_name: serial_number
type: String
description: Serial number for device. Could be board or virtual identifier
example: 0DFF93B792354B08ABE5E43566347F09
example: 3FFEFB37892E415FAF34A95D2328EC4C
query_param: true
- model_name: host-name
tf_name: name
Expand All @@ -32,7 +32,7 @@ attributes:
type: String
description: Unique identifier for device
id: true
example: 103989be-2fa6-4afc-bfa8-179c4ed63f39
example: a59581e3-8afd-4ccb-9730-bc3710ec288e
- model_name: site-id
tf_name: site_id
type: String
Expand All @@ -42,7 +42,7 @@ attributes:
tf_name: serial_number
type: String
description: Serial number for device. Could be board or virtual identifier
example: 0DFF93B792354B08ABE5E43566347F09
example: 3FFEFB37892E415FAF34A95D2328EC4C
- model_name: host-name
tf_name: hostname
type: String
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ attributes:
id: true
mandatory: true
description: Credentials feature template ID
example: "22e8bd63-df16-4487-bf49-745064b941ee"
example: "885c3bce-eab6-4d45-8ff3-488f0df4072a"
- tf_name: cisco_sig_credentials_feature_template_version
tf_only: true
type: Version
Expand Down
2 changes: 1 addition & 1 deletion gen/definitions/generic/vedge_inventory.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ attributes:
tf_name: serial_number
type: String
description: Serial number for device. Could be board or virtual identifier
example: 8420F3EE
example: F57E6428
- model_name: host-name
tf_name: hostname
type: String
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func TestAccDataSourceSdwanDNSSecurityPolicyDefinition(t *testing.T) {
checks = append(checks, resource.TestCheckResourceAttr("data.sdwan_dns_security_policy_definition.test", "match_all_vpn", "true"))
checks = append(checks, resource.TestCheckResourceAttr("data.sdwan_dns_security_policy_definition.test", "dnscrypt", "true"))
checks = append(checks, resource.TestCheckResourceAttr("data.sdwan_dns_security_policy_definition.test", "umbrella_dns_default", "true"))
checks = append(checks, resource.TestCheckResourceAttr("data.sdwan_dns_security_policy_definition.test", "cisco_sig_credentials_feature_template_id", "22e8bd63-df16-4487-bf49-745064b941ee"))
checks = append(checks, resource.TestCheckResourceAttr("data.sdwan_dns_security_policy_definition.test", "cisco_sig_credentials_feature_template_id", "885c3bce-eab6-4d45-8ff3-488f0df4072a"))
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ProtoV6ProviderFactories: testAccProtoV6ProviderFactories,
Expand Down Expand Up @@ -80,7 +80,7 @@ func testAccDataSourceSdwanDNSSecurityPolicyDefinitionConfig() string {
config += ` match_all_vpn = true` + "\n"
config += ` dnscrypt = true` + "\n"
config += ` umbrella_dns_default = true` + "\n"
config += ` cisco_sig_credentials_feature_template_id = "22e8bd63-df16-4487-bf49-745064b941ee"` + "\n"
config += ` cisco_sig_credentials_feature_template_id = "885c3bce-eab6-4d45-8ff3-488f0df4072a"` + "\n"
config += `}` + "\n"

config += `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func TestAccSdwanDNSSecurityPolicyDefinition(t *testing.T) {
checks = append(checks, resource.TestCheckResourceAttr("sdwan_dns_security_policy_definition.test", "match_all_vpn", "true"))
checks = append(checks, resource.TestCheckResourceAttr("sdwan_dns_security_policy_definition.test", "dnscrypt", "true"))
checks = append(checks, resource.TestCheckResourceAttr("sdwan_dns_security_policy_definition.test", "umbrella_dns_default", "true"))
checks = append(checks, resource.TestCheckResourceAttr("sdwan_dns_security_policy_definition.test", "cisco_sig_credentials_feature_template_id", "22e8bd63-df16-4487-bf49-745064b941ee"))
checks = append(checks, resource.TestCheckResourceAttr("sdwan_dns_security_policy_definition.test", "cisco_sig_credentials_feature_template_id", "885c3bce-eab6-4d45-8ff3-488f0df4072a"))
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ProtoV6ProviderFactories: testAccProtoV6ProviderFactories,
Expand Down Expand Up @@ -79,7 +79,7 @@ func testAccSdwanDNSSecurityPolicyDefinitionConfig_all() string {
config += ` match_all_vpn = true` + "\n"
config += ` dnscrypt = true` + "\n"
config += ` umbrella_dns_default = true` + "\n"
config += ` cisco_sig_credentials_feature_template_id = "22e8bd63-df16-4487-bf49-745064b941ee"` + "\n"
config += ` cisco_sig_credentials_feature_template_id = "885c3bce-eab6-4d45-8ff3-488f0df4072a"` + "\n"
config += `}` + "\n"
return config
}
Expand Down

0 comments on commit b453b36

Please sign in to comment.