Skip to content

Commit

Permalink
fixed broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wyattfry committed Jan 14, 2025
1 parent 44d808e commit 9530778
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
4 changes: 4 additions & 0 deletions internal/provider/provider_schema_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,10 @@ func TestResourcesHaveEnabledFieldsMarkedAsBooleans(t *testing.T) {
// TODO: 4.0 - work through this list
resourceFieldsWhichNeedToBeAddressed := map[string]map[string]struct{}{
// 1: Fields which require renaming etc
"azurerm_datadog_monitor_sso_configuration": {
// should be fixed in 4.0, presumably ditching `_enabled` and adding Enum validation
"single_sign_on_enabled": {},
},
"azurerm_netapp_volume": {
// should be fixed in 4.0, presumably ditching `_enabled` and making this `protocols_to_use` or something?
"protocols_enabled": {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ func dataSourceServiceBusNamespaceDisasterRecoveryConfig() *pluginsdk.Resource {
Type: pluginsdk.TypeString,
Optional: true,
ValidateFunc: namespaces.ValidateNamespaceID,
AtLeastOneOf: []string{"namespace_id", "resource_group_name", "namespace_name"},
},

"alias_authorization_rule_id": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ func dataSourceServiceBusQueue() *pluginsdk.Resource {
Type: pluginsdk.TypeString,
Optional: true,
ValidateFunc: namespaces.ValidateNamespaceID,
AtLeastOneOf: []string{"namespace_id", "resource_group_name", "namespace_name"},
},

"auto_delete_on_idle": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ func dataSourceServiceBusSubscription() *pluginsdk.Resource {
Type: pluginsdk.TypeString,
Optional: true,
ValidateFunc: topics.ValidateTopicID,
AtLeastOneOf: []string{"topic_id", "resource_group_name", "namespace_name", "topic_name"},
},

"auto_delete_on_idle": {
Expand Down

0 comments on commit 9530778

Please sign in to comment.