File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -249,7 +249,7 @@ type TLS struct {
249
249
ClusterPassword string `json:"clusterPassword,omitempty"`
250
250
CRLFile string `json:"CRLFile,omitempty"` //nolint:tagliatelle // correct from API
251
251
DisabledProtocols string `json:"disabledProtocols,omitempty"`
252
- FIPSMode string `json:"FIPSMode,omitempty"` //nolint:tagliatelle // correct from API
252
+ FIPSMode * bool `json:"FIPSMode,omitempty"` //nolint:tagliatelle // correct from API
253
253
Mode string `json:"mode,omitempty"`
254
254
PEMKeyFile string `json:"PEMKeyFile,omitempty"` //nolint:tagliatelle // correct from API
255
255
}
Original file line number Diff line number Diff line change @@ -70,7 +70,10 @@ const jsonBlob = `{
70
70
}, {
71
71
"args2_6" : {
72
72
"net" : {
73
- "port" : 27010
73
+ "port" : 27010,
74
+ "tls" : {
75
+ "FIPSMode": true
76
+ }
74
77
},
75
78
"replication" : {
76
79
"replSetName" : "myReplicaSet"
@@ -190,6 +193,7 @@ func TestAutomation_GetConfig(t *testing.T) {
190
193
}
191
194
192
195
slaveDelay := float64 (0 )
196
+ fipsMode := true
193
197
expected := & AutomationConfig {
194
198
Auth : Auth {
195
199
AutoAuthMechanism : "MONGODB-CR" ,
@@ -251,6 +255,7 @@ func TestAutomation_GetConfig(t *testing.T) {
251
255
Args26 : Args26 {
252
256
NET : Net {
253
257
Port : 27010 ,
258
+ TLS : & TLS {FIPSMode : & fipsMode },
254
259
},
255
260
Storage : & Storage {
256
261
DBPath : "/data/rs2" ,
You can’t perform that action at this time.
0 commit comments