From dfe74ef3d8bbbe653cd241f60f3b7e2631857345 Mon Sep 17 00:00:00 2001 From: Anna Lushnikova Date: Fri, 4 Oct 2024 13:55:33 -0400 Subject: [PATCH] =?UTF-8?q?[databases]:=20change=20Opensearch=20ism=5Fhist?= =?UTF-8?q?ory=5Fmax=5Fdocs=20type=20to=20int64=20to=20=E2=80=A6=20(#737)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [databases]: change Opensearch ism_history_max_docs type to int64 to align with api * fix tests --- databases.go | 2 +- databases_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/databases.go b/databases.go index 4295492..276fb4a 100644 --- a/databases.go +++ b/databases.go @@ -712,7 +712,7 @@ type OpensearchConfig struct { IsmEnabled *bool `json:"ism_enabled,omitempty"` IsmHistoryEnabled *bool `json:"ism_history_enabled,omitempty"` IsmHistoryMaxAgeHours *int `json:"ism_history_max_age_hours,omitempty"` - IsmHistoryMaxDocs *uint64 `json:"ism_history_max_docs,omitempty"` + IsmHistoryMaxDocs *int64 `json:"ism_history_max_docs,omitempty"` IsmHistoryRolloverCheckPeriodHours *int `json:"ism_history_rollover_check_period_hours,omitempty"` IsmHistoryRolloverRetentionPeriodDays *int `json:"ism_history_rollover_retention_period_days,omitempty"` SearchMaxBuckets *int `json:"search_max_buckets,omitempty"` diff --git a/databases_test.go b/databases_test.go index 1b2e7f0..96d16ea 100644 --- a/databases_test.go +++ b/databases_test.go @@ -3240,7 +3240,7 @@ func TestDatabases_GetConfigOpensearch(t *testing.T) { IsmEnabled: PtrTo(true), IsmHistoryEnabled: PtrTo(true), IsmHistoryMaxAgeHours: PtrTo(24), - IsmHistoryMaxDocs: PtrTo(uint64(2500000)), + IsmHistoryMaxDocs: PtrTo(int64(2500000)), IsmHistoryRolloverCheckPeriodHours: PtrTo(8), IsmHistoryRolloverRetentionPeriodDays: PtrTo(30), SearchMaxBuckets: PtrTo(10000),