@@ -784,6 +784,7 @@ func TestClusters_UpdateProcessArgs(t *testing.T) {
784
784
SampleSizeBIConnector : pointer (int64 (5000 )),
785
785
SampleRefreshIntervalBIConnector : pointer (int64 (300 )),
786
786
TransactionLifetimeLimitSeconds : pointer (int64 (30 )),
787
+ ChangeStreamOptionsPreAndPostImagesExpireAfterSeconds : pointer (int64 (- 1 )),
787
788
}
788
789
789
790
mux .HandleFunc (fmt .Sprintf ("/api/atlas/v1.0/groups/%s/clusters/%s/processArgs" , groupID , clusterName ), func (w http.ResponseWriter , r * http.Request ) {
@@ -799,6 +800,7 @@ func TestClusters_UpdateProcessArgs(t *testing.T) {
799
800
"sampleSizeBIConnector" : float64 (5000 ),
800
801
"sampleRefreshIntervalBIConnector" : float64 (300 ),
801
802
"transactionLifetimeLimitSeconds" : float64 (30 ),
803
+ "changeStreamOptionsPreAndPostImagesExpireAfterSeconds" : float64 (- 1 ),
802
804
}
803
805
804
806
jsonBlob := `
@@ -813,7 +815,8 @@ func TestClusters_UpdateProcessArgs(t *testing.T) {
813
815
"oplogMinRetentionHours": 100,
814
816
"sampleSizeBIConnector": 5000,
815
817
"sampleRefreshIntervalBIConnector": 300,
816
- "transactionLifetimeLimitSeconds": 30
818
+ "transactionLifetimeLimitSeconds": 30,
819
+ "changeStreamOptionsPreAndPostImagesExpireAfterSeconds": -1
817
820
}
818
821
`
819
822
@@ -862,7 +865,8 @@ func TestClusters_GetProcessArgs(t *testing.T) {
862
865
"oplogSizeMB": 2000,
863
866
"sampleSizeBIConnector": 5000,
864
867
"sampleRefreshIntervalBIConnector": 300,
865
- "transactionLifetimeLimitSeconds": 30
868
+ "transactionLifetimeLimitSeconds": 30,
869
+ "ChangeStreamOptionsPreAndPostImagesExpireAfterSeconds": 113
866
870
}` )
867
871
})
868
872
@@ -882,6 +886,7 @@ func TestClusters_GetProcessArgs(t *testing.T) {
882
886
SampleSizeBIConnector : pointer (int64 (5000 )),
883
887
SampleRefreshIntervalBIConnector : pointer (int64 (300 )),
884
888
TransactionLifetimeLimitSeconds : pointer (int64 (30 )),
889
+ ChangeStreamOptionsPreAndPostImagesExpireAfterSeconds : pointer (int64 (113 )),
885
890
}
886
891
887
892
if diff := deep .Equal (processArgs , expected ); diff != nil {
0 commit comments