@@ -366,6 +366,11 @@ func TestClusters_Create(t *testing.T) {
366
366
367
367
createRequest := & Cluster {
368
368
ID : "1" ,
369
+ AdvancedConfiguration : & AdvancedConfiguration {
370
+ MinimumEnabledTLSProtocol : pointer ("TLS1_2" ),
371
+ TLSCipherConfigMode : pointer ("CUSTOM" ),
372
+ CustomOpensslCipherConfigTLS12 : & []string {"TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384" },
373
+ },
369
374
AcceptDataRisksAndForceReplicaSetReconfig : "2017-10-23T21:26:17Z" ,
370
375
AutoScaling : & AutoScaling {DiskGBEnabled : pointer (true ),
371
376
Compute : & Compute {Enabled : pointer (true ), ScaleDownEnabled : pointer (true )}},
@@ -415,6 +420,11 @@ func TestClusters_Create(t *testing.T) {
415
420
expected := map [string ]interface {}{
416
421
"id" : "1" ,
417
422
"acceptDataRisksAndForceReplicaSetReconfig" : "2017-10-23T21:26:17Z" ,
423
+ "advancedConfiguration" : map [string ]interface {}{
424
+ "customOpensslCipherConfigTls12" : []interface {}{"TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384" },
425
+ "minimumEnabledTlsProtocol" : "TLS1_2" ,
426
+ "tlsCipherConfigMode" : "CUSTOM" ,
427
+ },
418
428
"autoScaling" : map [string ]interface {}{
419
429
"diskGBEnabled" : true ,
420
430
"compute" : map [string ]interface {}{
@@ -475,6 +485,13 @@ func TestClusters_Create(t *testing.T) {
475
485
{
476
486
"id":"1",
477
487
"acceptDataRisksAndForceReplicaSetReconfig": "2017-10-23T21:26:17Z",
488
+ "advancedConfiguration": {
489
+ "customOpensslCipherConfigTls12": [
490
+ "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384"
491
+ ],
492
+ "minimumEnabledTlsProtocol": "TLS1_2",
493
+ "tlsCipherConfigMode": "CUSTOM"
494
+ },
478
495
"autoScaling": {
479
496
"diskGBEnabled": true,
480
497
"compute": {
@@ -909,6 +926,10 @@ func TestClusters_Get(t *testing.T) {
909
926
fmt .Fprint (w , `{
910
927
"id":"1",
911
928
"acceptDataRisksAndForceReplicaSetReconfig": "2017-10-23T21:26:17Z",
929
+ "advancedConfiguration": {
930
+ "minimumEnabledTlsProtocol": "TLS1_2",
931
+ "tlsCipherConfigMode": "DEFAULT"
932
+ },
912
933
"autoScaling": {
913
934
"diskGBEnabled": true
914
935
},
@@ -986,6 +1007,10 @@ func TestClusters_Get(t *testing.T) {
986
1007
expected := & Cluster {
987
1008
ID : "1" ,
988
1009
AcceptDataRisksAndForceReplicaSetReconfig : "2017-10-23T21:26:17Z" ,
1010
+ AdvancedConfiguration : & AdvancedConfiguration {
1011
+ MinimumEnabledTLSProtocol : pointer ("TLS1_2" ),
1012
+ TLSCipherConfigMode : pointer ("DEFAULT" ),
1013
+ },
989
1014
AutoScaling : & AutoScaling {DiskGBEnabled : pointer (true )},
990
1015
BackupEnabled : pointer (true ),
991
1016
BiConnector : & BiConnector {Enabled : pointer (false ), ReadPreference : "secondary" },
0 commit comments