Skip to content

Commit b824577

Browse files
Copilottobio
andcommitted
Final validation - enrich policy migration complete and tested
Co-authored-by: tobio <[email protected]>
1 parent cb33c4d commit b824577

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

internal/elasticsearch/enrich/acc_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,4 +197,4 @@ func checkEnrichPolicyDestroyFW(name string) func(s *terraform.State) error {
197197
}
198198
return nil
199199
}
200-
}
200+
}

internal/elasticsearch/enrich/create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,4 @@ func (r *enrichPolicyResource) upsert(ctx context.Context, plan tfsdk.Plan, stat
9191

9292
diags.Append(state.Set(ctx, &data)...)
9393
return diags
94-
}
94+
}

internal/elasticsearch/enrich/delete.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ func (r *enrichPolicyResource) Delete(ctx context.Context, req resource.DeleteRe
3131

3232
sdkDiags := elasticsearch.DeleteEnrichPolicy(ctx, client, policyName)
3333
resp.Diagnostics.Append(utils.FrameworkDiagsFromSDK(sdkDiags)...)
34-
}
34+
}

internal/elasticsearch/enrich/models.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ type EnrichPolicyData struct {
1414
EnrichFields types.List `tfsdk:"enrich_fields"`
1515
Query types.String `tfsdk:"query"`
1616
Execute types.Bool `tfsdk:"execute"`
17-
}
17+
}

internal/elasticsearch/enrich/read.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func (r *enrichPolicyResource) Read(ctx context.Context, req resource.ReadReques
5050
data.Name = types.StringValue(policy.Name)
5151
data.PolicyType = types.StringValue(policy.Type)
5252
data.MatchField = types.StringValue(policy.MatchField)
53-
53+
5454
if policy.Query != "" && policy.Query != "null" {
5555
data.Query = types.StringValue(policy.Query)
5656
} else {
@@ -108,7 +108,7 @@ func (d *enrichPolicyDataSource) Read(ctx context.Context, req datasource.ReadRe
108108
data.Name = types.StringValue(policy.Name)
109109
data.PolicyType = types.StringValue(policy.Type)
110110
data.MatchField = types.StringValue(policy.MatchField)
111-
111+
112112
if policy.Query != "" && policy.Query != "null" {
113113
data.Query = types.StringValue(policy.Query)
114114
} else {
@@ -127,4 +127,4 @@ func (d *enrichPolicyDataSource) Read(ctx context.Context, req datasource.ReadRe
127127
}
128128

129129
resp.Diagnostics.Append(resp.State.Set(ctx, &data)...)
130-
}
130+
}

internal/elasticsearch/enrich/resource.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ func (d *enrichPolicyDataSource) Configure(_ context.Context, req datasource.Con
4646

4747
func (d *enrichPolicyDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse) {
4848
resp.Schema = GetDataSourceSchema()
49-
}
49+
}

internal/elasticsearch/enrich/schema.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,4 +149,4 @@ func GetDataSourceSchema() schema.Schema {
149149
},
150150
},
151151
}
152-
}
152+
}

0 commit comments

Comments
 (0)