@@ -784,6 +784,7 @@ func TestClusters_UpdateProcessArgs(t *testing.T) {
784784 SampleSizeBIConnector : pointer (int64 (5000 )),
785785 SampleRefreshIntervalBIConnector : pointer (int64 (300 )),
786786 TransactionLifetimeLimitSeconds : pointer (int64 (30 )),
787+ ChangeStreamOptionsPreAndPostImagesExpireAfterSeconds : pointer (int64 (- 1 )),
787788 }
788789
789790 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) {
799800 "sampleSizeBIConnector" : float64 (5000 ),
800801 "sampleRefreshIntervalBIConnector" : float64 (300 ),
801802 "transactionLifetimeLimitSeconds" : float64 (30 ),
803+ "changeStreamOptionsPreAndPostImagesExpireAfterSeconds" : float64 (- 1 ),
802804 }
803805
804806 jsonBlob := `
@@ -813,7 +815,8 @@ func TestClusters_UpdateProcessArgs(t *testing.T) {
813815 "oplogMinRetentionHours": 100,
814816 "sampleSizeBIConnector": 5000,
815817 "sampleRefreshIntervalBIConnector": 300,
816- "transactionLifetimeLimitSeconds": 30
818+ "transactionLifetimeLimitSeconds": 30,
819+ "changeStreamOptionsPreAndPostImagesExpireAfterSeconds": -1
817820 }
818821 `
819822
@@ -862,7 +865,8 @@ func TestClusters_GetProcessArgs(t *testing.T) {
862865 "oplogSizeMB": 2000,
863866 "sampleSizeBIConnector": 5000,
864867 "sampleRefreshIntervalBIConnector": 300,
865- "transactionLifetimeLimitSeconds": 30
868+ "transactionLifetimeLimitSeconds": 30,
869+ "ChangeStreamOptionsPreAndPostImagesExpireAfterSeconds": 113
866870 }` )
867871 })
868872
@@ -882,6 +886,7 @@ func TestClusters_GetProcessArgs(t *testing.T) {
882886 SampleSizeBIConnector : pointer (int64 (5000 )),
883887 SampleRefreshIntervalBIConnector : pointer (int64 (300 )),
884888 TransactionLifetimeLimitSeconds : pointer (int64 (30 )),
889+ ChangeStreamOptionsPreAndPostImagesExpireAfterSeconds : pointer (int64 (113 )),
885890 }
886891
887892 if diff := deep .Equal (processArgs , expected ); diff != nil {
0 commit comments