Skip to content

Commit

Permalink
[databases]: change Opensearch ism_history_max_docs type to int64 to … (
Browse files Browse the repository at this point in the history
#737)

* [databases]: change Opensearch ism_history_max_docs type to int64 to align with api

* fix tests
  • Loading branch information
loosla authored Oct 4, 2024
1 parent 0ee3c98 commit dfe74ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion databases.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
2 changes: 1 addition & 1 deletion databases_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit dfe74ef

Please sign in to comment.