Skip to content

Commit da8b107

Browse files
committed
prep sync
1 parent 85d0793 commit da8b107

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
- Add missing entries to `data_view.field_formats.params` ([#1001](https://github.com/elastic/terraform-provider-elasticstack/pull/1001))
66
- Fix namespaces inconsistency when creating elasticstack_kibana_data_view resources ([#1011](https://github.com/elastic/terraform-provider-elasticstack/pull/1011))
77
- Update rule ID documentation. ([#1047](https://github.com/elastic/terraform-provider-elasticstack/pull/1047))
8-
- Add `global_data_tags` to fleet agent policies. ([#1044](https://github.com/elastic/terraform-provider-elasticstack/pull/1044))
98

109
## [0.11.13] - 2025-01-09
1110

internal/fleet/agent_policy/resource_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ func TestAccResourceAgentPolicy(t *testing.T) {
164164
},
165165
{
166166
SkipFunc: versionutils.CheckIfVersionIsUnsupported(minVersionGlobalDataTags),
167-
Config: testAccResourceAgentPolicyUpdateWithBadGlobalDataTags(policyNameGlobalDataTags, false),
168-
ExpectError: regexp.MustCompile("conflicts with"),
167+
Config: testAccResourceAgentPolicyUpdateWithBadGlobalDataTags(policyNameGlobalDataTags, true),
168+
ExpectError: regexp.MustCompile(".*Error: Invalid Attribute Combination.*"),
169169
},
170170
},
171171
})

internal/fleet/agent_policy/schema.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,14 @@ func getSchema() schema.Schema {
100100
Description: "String value for the field. If this is set, number_value must not be defined.",
101101
Optional: true,
102102
Validators: []validator.String{
103-
stringvalidator.ConflictsWith(path.MatchRelative().AtName("number_value")),
103+
stringvalidator.ConflictsWith(path.MatchRelative().AtParent().AtName("number_value")),
104104
},
105105
},
106106
"number_value": schema.Float32Attribute{
107107
Description: "Number value for the field. If this is set, string_value must not be defined.",
108108
Optional: true,
109109
Validators: []validator.Float32{
110-
float32validator.ConflictsWith(path.MatchRelative().AtName("string_value")),
110+
float32validator.ConflictsWith(path.MatchRelative().AtParent().AtName("string_value")),
111111
},
112112
},
113113
},

0 commit comments

Comments
 (0)