@@ -33,28 +33,28 @@ func TestFromAutomationConfig(t *testing.T) {
3333 {
3434 RSConfig : RSConfig {
3535 Name : name ,
36- ProcessConfigs : []* ProcessConfig {
36+ Processes : []* ProcessConfig {
3737 {
38- ArbiterOnly : pointy .Bool (false ),
39- BuildIndexes : pointy .Bool (true ),
40- DBPath : "/data/db/" ,
41- Disabled : false ,
42- Hidden : pointy .Bool (false ),
43- Hostname : "host0" ,
44- LogPath : "/data/db/mongodb.log" ,
45- LogDestination : file ,
46- AuditLogDestination : file ,
47- AuditLogPath : "/data/db/audit.log" ,
48- Port : 27017 ,
49- Priority : pointy .Float64 (1 ),
50- ProcessType : mongod ,
51- SlaveDelay : pointy .Float64 (1 ),
52- SecondaryDelaySecs : pointy .Float64 (1 ),
53- Votes : pointy .Float64 (1 ),
54- FCVersion : "4.2" ,
55- Version : "4.2.2" ,
56- Name : name + "_0" ,
57- OplogSizeMB : pointy .Int (10 ),
38+ ArbiterOnly : pointy .Bool (false ),
39+ BuildIndexes : pointy .Bool (true ),
40+ DBPath : "/data/db/" ,
41+ Disabled : false ,
42+ Hidden : pointy .Bool (false ),
43+ Hostname : "host0" ,
44+ LogPath : "/data/db/mongodb.log" ,
45+ LogDestination : file ,
46+ AuditLogDestination : file ,
47+ AuditLogPath : "/data/db/audit.log" ,
48+ Port : 27017 ,
49+ Priority : pointy .Float64 (1 ),
50+ ProcessType : mongod ,
51+ SlaveDelay : pointy .Float64 (1 ),
52+ SecondaryDelaySecs : pointy .Float64 (1 ),
53+ Votes : pointy .Float64 (1 ),
54+ FeatureCompatibilityVersion : "4.2" ,
55+ Version : "4.2.2" ,
56+ Name : name + "_0" ,
57+ OplogSizeMB : pointy .Int (10 ),
5858 TLS : & TLS {
5959 CAFile : "CAFile" ,
6060 CertificateKeyFile : "CertificateKeyFile" ,
@@ -96,64 +96,64 @@ func TestFromAutomationConfig(t *testing.T) {
9696 Shards : []* RSConfig {
9797 {
9898 Name : "myShard_0" ,
99- ProcessConfigs : []* ProcessConfig {
99+ Processes : []* ProcessConfig {
100100 {
101- ArbiterOnly : pointy .Bool (false ),
102- BuildIndexes : pointy .Bool (true ),
103- DBPath : "/data/myShard_0" ,
104- Disabled : false ,
105- Hidden : pointy .Bool (false ),
106- Hostname : "example" ,
107- LogPath : "/log/myShard_0" ,
108- LogDestination : file ,
109- Port : 1 ,
110- Priority : pointy .Float64 (1 ),
111- ProcessType : mongod ,
112- SlaveDelay : pointy .Float64 (1 ),
113- SecondaryDelaySecs : pointy .Float64 (1 ),
114- Votes : pointy .Float64 (1 ),
115- FCVersion : "4.2" ,
116- Version : "4.2.2" ,
117- Name : name + "_myShard_0_0" ,
101+ ArbiterOnly : pointy .Bool (false ),
102+ BuildIndexes : pointy .Bool (true ),
103+ DBPath : "/data/myShard_0" ,
104+ Disabled : false ,
105+ Hidden : pointy .Bool (false ),
106+ Hostname : "example" ,
107+ LogPath : "/log/myShard_0" ,
108+ LogDestination : file ,
109+ Port : 1 ,
110+ Priority : pointy .Float64 (1 ),
111+ ProcessType : mongod ,
112+ SlaveDelay : pointy .Float64 (1 ),
113+ SecondaryDelaySecs : pointy .Float64 (1 ),
114+ Votes : pointy .Float64 (1 ),
115+ FeatureCompatibilityVersion : "4.2" ,
116+ Version : "4.2.2" ,
117+ Name : name + "_myShard_0_0" ,
118118 },
119119 },
120120 },
121121 },
122122 Config : & RSConfig {
123123 Name : "configRS" ,
124- ProcessConfigs : []* ProcessConfig {
124+ Processes : []* ProcessConfig {
125125 {
126- ArbiterOnly : pointy .Bool (false ),
127- BuildIndexes : pointy .Bool (true ),
128- DBPath : "/data/configRS" ,
129- Disabled : false ,
130- Hidden : pointy .Bool (false ),
131- Hostname : "example" ,
132- LogPath : "/log/configRS" ,
133- LogDestination : file ,
134- Port : 2 ,
135- Priority : pointy .Float64 (1 ),
136- ProcessType : mongod ,
137- SlaveDelay : pointy .Float64 (1 ),
138- SecondaryDelaySecs : pointy .Float64 (1 ),
139- Votes : pointy .Float64 (1 ),
140- FCVersion : "4.2" ,
141- Version : "4.2.2" ,
142- Name : name + "_configRS_1" ,
126+ ArbiterOnly : pointy .Bool (false ),
127+ BuildIndexes : pointy .Bool (true ),
128+ DBPath : "/data/configRS" ,
129+ Disabled : false ,
130+ Hidden : pointy .Bool (false ),
131+ Hostname : "example" ,
132+ LogPath : "/log/configRS" ,
133+ LogDestination : file ,
134+ Port : 2 ,
135+ Priority : pointy .Float64 (1 ),
136+ ProcessType : mongod ,
137+ SlaveDelay : pointy .Float64 (1 ),
138+ SecondaryDelaySecs : pointy .Float64 (1 ),
139+ Votes : pointy .Float64 (1 ),
140+ FeatureCompatibilityVersion : "4.2" ,
141+ Version : "4.2.2" ,
142+ Name : name + "_configRS_1" ,
143143 },
144144 },
145145 },
146146 Mongos : []* ProcessConfig {
147147 {
148- Disabled : false ,
149- Hostname : "example" ,
150- LogPath : "/log/mongos" ,
151- LogDestination : file ,
152- Port : 3 ,
153- ProcessType : "mongos" ,
154- FCVersion : "4.2" ,
155- Version : "4.2.2" ,
156- Name : name + "_mongos_2" ,
148+ Disabled : false ,
149+ Hostname : "example" ,
150+ LogPath : "/log/mongos" ,
151+ LogDestination : file ,
152+ Port : 3 ,
153+ ProcessType : "mongos" ,
154+ FeatureCompatibilityVersion : "4.2" ,
155+ Version : "4.2.2" ,
156+ Name : name + "_mongos_2" ,
157157 },
158158 },
159159 },
0 commit comments