File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed
internal/fleet/agent_policy Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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 })
Original file line number Diff line number Diff 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 },
You can’t perform that action at this time.
0 commit comments