insxsync 1.0.1 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,10 +13,10 @@
13
13
  <content url="file://$MODULE_DIR$" />
14
14
  <orderEntry type="inheritedJdk" />
15
15
  <orderEntry type="sourceFolder" forTests="false" />
16
- <orderEntry type="library" scope="PROVIDED" name="aws-sdk (v1.35.0, ruby-1.9.3-p484) [gem]" level="application" />
16
+ <orderEntry type="library" scope="PROVIDED" name="aws-sdk (v1.40.0, ruby-1.9.3-p484) [gem]" level="application" />
17
17
  <orderEntry type="library" scope="PROVIDED" name="builder (v3.2.2, ruby-1.9.3-p484) [gem]" level="application" />
18
- <orderEntry type="library" scope="PROVIDED" name="bundler (v1.6.1, ruby-1.9.3-p484) [gem]" level="application" />
19
- <orderEntry type="library" scope="PROVIDED" name="cucumber (v1.3.10, ruby-1.9.3-p484) [gem]" level="application" />
18
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v1.6.2, ruby-1.9.3-p484) [gem]" level="application" />
19
+ <orderEntry type="library" scope="PROVIDED" name="cucumber (v1.3.14, ruby-1.9.3-p484) [gem]" level="application" />
20
20
  <orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.2.5, ruby-1.9.3-p484) [gem]" level="application" />
21
21
  <orderEntry type="library" scope="PROVIDED" name="gherkin (v2.12.2, ruby-1.9.3-p484) [gem]" level="application" />
22
22
  <orderEntry type="library" scope="PROVIDED" name="highline (v1.6.21, ruby-1.9.3-p484) [gem]" level="application" />
@@ -26,7 +26,7 @@
26
26
  <orderEntry type="library" scope="PROVIDED" name="multi_test (v0.0.3, ruby-1.9.3-p484) [gem]" level="application" />
27
27
  <orderEntry type="library" scope="PROVIDED" name="mysql (v2.9.1, ruby-1.9.3-p484) [gem]" level="application" />
28
28
  <orderEntry type="library" scope="PROVIDED" name="nokogiri (v1.6.1, ruby-1.9.3-p484) [gem]" level="application" />
29
- <orderEntry type="library" scope="PROVIDED" name="rake (v0.9.2.2, ruby-1.9.3-p484) [gem]" level="application" />
29
+ <orderEntry type="library" scope="PROVIDED" name="rake (v10.3.1, ruby-1.9.3-p484) [gem]" level="application" />
30
30
  <orderEntry type="library" scope="PROVIDED" name="uuidtools (v2.1.4, ruby-1.9.3-p484) [gem]" level="application" />
31
31
  </component>
32
32
  </module>
@@ -2,7 +2,7 @@
2
2
  #in debug mode, the lib directory must be added to the library path
3
3
  ARGV.each do |param|
4
4
  if param =~ /.*DEBUG.*/
5
- $: << '/cygdrive/c/Users/Jaremy/Documents/RubymineProjects/insxsync/lib'
5
+ $: << '/cygdrive/c/Users/jaremy.h/Documents/RubymineProjects/insxsync/lib'
6
6
  end
7
7
  end
8
8
  require 'tmpdir'
@@ -22,6 +22,7 @@ include InsxSync
22
22
  @options[:date_id] = nil
23
23
  @options[:sync_dir] = nil
24
24
  @options[:DEBUG] = false
25
+ @options[:databases] = nil
25
26
  $db_host = nil
26
27
  $db_port = nil
27
28
  $db_user = nil
@@ -139,7 +140,7 @@ opt_parser = OptionParser.new do |opt|
139
140
  opt.separator ""
140
141
  opt.separator "Export Options:"
141
142
 
142
- opt.on('--no-export-configs', "Tells the application not to export subdomain configurations.") do |o|
143
+ opt.on('--no-export-configs', "Tells the application not to export subdomain configurations.") do
143
144
  require_condition exporting?, "Argument Error: '--no-export-configs' is an export option. Please verify your command."
144
145
  @options[:export_confs] = false
145
146
  end
@@ -150,7 +151,7 @@ opt_parser = OptionParser.new do |opt|
150
151
  @options[:config_dir] = d
151
152
  end
152
153
 
153
- opt.on('--no-export-data', "Tells the application not to export data.") do |o|
154
+ opt.on('--no-export-data', "Tells the application not to export data.") do
154
155
  require_condition exporting?, "Argument Error: '--no-export-data' is an export option. Please verify your command."
155
156
  @options[:export_data] = false
156
157
  end
@@ -181,7 +182,7 @@ opt_parser = OptionParser.new do |opt|
181
182
  @options[:date_id] = id
182
183
  end
183
184
 
184
- opt.on('--no-sync-configs', "Tells the application not to sync subdomain configurations.") do |o|
185
+ opt.on('--no-sync-configs', "Tells the application not to sync subdomain configurations.") do
185
186
  require_condition syncing?, "Argument Error: '--no-sync-configs' is a sync option. Please verify your command."
186
187
  @options[:sync_confs] = false
187
188
  end
@@ -193,11 +194,18 @@ opt_parser = OptionParser.new do |opt|
193
194
  @options[:sync_dir].chop! if d.end_with?('/')
194
195
  end
195
196
 
196
- opt.on('--sync-data', "Tells the application to sync data.") do |o|
197
+ opt.on('--sync-data', "Tells the application to sync data.") do
197
198
  require_condition syncing?, "Argument Error: '--sync-data' is a sync option. Please verify your command."
198
199
  @options[:sync_data] = true
199
200
  end
200
201
 
202
+ opt.on('--databases db1,db2,db3', "Select which databases to restore. Enter as a single DB or as a comma-sepperated list.") do |l|
203
+ require_condition syncing?, "Argument Error: '--sync-data' is a sync option. Please verify your command."
204
+ list = []
205
+ l.chomp(',').split(',').each { |item| list.push(item.strip) }
206
+ @options[:databases] = list
207
+ end
208
+
201
209
  opt.separator ""
202
210
  opt.separator "Miscellaneous Options:"
203
211
 
@@ -223,20 +231,9 @@ if ARGV.count == 0 or (ARGV.count == 1 and ARGV[0] == "--DEBUG") or ARGV.include
223
231
  exit -1
224
232
  end
225
233
 
226
- case ARGV[0]
227
- when 'configure', 'test', 'list', 'list-cge', 'list-db', 'list-conf', 'list-complete', 'export', 'sync', 'sync-uat'
228
- $command = ARGV[0]
229
- temp = ARGV.drop(1)
230
-
231
- self.class.send(:remove_const, "ARGV")
232
- self.class.const_set("ARGV", temp)
233
- else
234
- $stderr.puts "Unknown command specified. Exiting..."
235
- exit -1
236
- end
237
-
238
234
  begin
239
- opt_parser.parse!
235
+ $OLD_ARGV0 = ARGV[0]
236
+ leftovers = opt_parser.parse!
240
237
  rescue OptionParser::MissingArgument => e
241
238
  flag = e.message.scan(/missing argument: (.*)/).flatten[0]
242
239
  $stderr.puts case flag
@@ -258,6 +255,26 @@ rescue OptionParser::AmbiguousOption => e
258
255
  $stderr.puts "Argument Error: unknown option '#{e.message}'"
259
256
  end
260
257
 
258
+ if leftovers.count != 1
259
+ leftovers.reverse!.pop
260
+ msg = ""
261
+ leftovers.each do |item|
262
+ msg += "Argument Error: unknown option \"#{item}\".\n"
263
+ end
264
+ msg.chomp!
265
+ msg += " Exiting..."
266
+ $stderr.puts msg
267
+ exit -1
268
+ end
269
+
270
+ case leftovers[0]
271
+ when 'configure', 'test', 'list', 'list-cge', 'list-db', 'list-conf', 'list-complete', 'export', 'sync', 'sync-uat'
272
+ $command = leftovers[0]
273
+ else
274
+ $stderr.puts "Unknown command specified. Exiting..."
275
+ exit -1
276
+ end
277
+
261
278
  if @options[:DEBUG]
262
279
  # Change buckets to test variants
263
280
  $CGE_BUCKET = 'insxsync-test-backup'
@@ -388,7 +405,7 @@ case $command
388
405
 
389
406
  if @options[:sync_data]
390
407
  print "Synchronizing databases...\t\t"
391
- SyncPointRestore.restore_data(dir, sync_points.epoch_time(@options[:date_id]))
408
+ SyncPointRestore.restore_data(dir, sync_points.epoch_time(@options[:date_id]), @options[:databases])
392
409
  puts "Done."
393
410
  if not @options[:sync_confs] and yesno("Database synchronization successful. Would you like to update the current config files to use new databases?", true)
394
411
  @options[:sync_dir] = '/usr/share/exchange_app/data/subdomain' if @options[:sync_dir].nil?
@@ -4,62 +4,62 @@ Feature: Synchronization
4
4
  #################################################
5
5
  # Configuration Directory, Sync Point, and Database connection irrelevant
6
6
  #################################################
7
- # Scenario: User wants to sync (No Configs) (No Database)
8
- # Given I am going to run the program
9
- # And The database is running
10
- # And Configurations exist at the default location
11
- # And I am going to run a sync
12
- # And I specify "--no-sync-configs"
13
- # And I specify "--user root"
14
- # When I run the application
15
- # Then The application should fail
16
- # And I should see an error message containing "Configuration and database synchronizations both disabled. Nothing to do! Exiting..."
17
- # Scenario: User wants to sync (No Configs) (Database and no credentials)
18
- # Given I am going to run the program
19
- # And The database is running
20
- # And Configurations exist at the default location
21
- # And I am going to run a sync
22
- # And I specify "--no-sync-configs"
23
- # And I specify "--sync-data"
24
- # When I run the application
25
- # Then The application should fail
26
- # And I should see an error message containing "Database username not specified and is required for all synchronization operations"
27
- # Scenario: User wants to sync (Configs) (Database) (Doesn't Specify Username)
28
- # Given I am going to run the program
29
- # And The database is running
30
- # And Configurations exist at the default location
31
- # And I am going to run a sync
32
- # And I specify "--sync-data"
33
- # When I run the application
34
- # Then The application should fail
35
- # And I should see an error message containing "Database username not specified and is required for all synchronization operations"
36
- # Scenario: User wants to sync (No Configs) (Database) (Specifies Sync Dir)
37
- # Given I am going to run the program
38
- # And The database is running
39
- # And Configurations exist at the default location
40
- # And I am going to run a sync
41
- # And I specify "--no-sync-configs"
42
- # And I specify "--sync-data"
43
- # And I specify "--sync-dir /tmp/insxsync"
44
- # And I specify valid database credentials
45
- # When I run the application
46
- # Then The application should fail
47
- # And I should see an error message containing "Synchronization directory specified but configuration sync disabled. Please check your command. Exiting..."
48
- # Scenario: User wants to sync (No Configs) (Database) (Doesn't Specify Username)
49
- # Given I am going to run the program
50
- # And The database is running
51
- # And Configurations exist at the default location
52
- # And I am going to run a sync
53
- # And I specify "--sync-data"
54
- # And I specify "--no-sync-configs"
55
- # When I run the application
56
- # Then The application should fail
57
- # And I should see an error message containing "Database username not specified and is required for all synchronization operations"
58
- # #################################################
59
- # # Configuration Directory Exists
60
- # # Sync Point Exists
61
- # # Database connection works
62
- # #################################################
7
+ Scenario: User wants to sync (No Configs) (No Database)
8
+ Given I am going to run the program
9
+ And The database is running
10
+ And Configurations exist at the default location
11
+ And I am going to run a sync
12
+ And I specify "--no-sync-configs"
13
+ And I specify "--user root"
14
+ When I run the application
15
+ Then The application should fail
16
+ And I should see an error message containing "Configuration and database synchronizations both disabled. Nothing to do! Exiting..."
17
+ Scenario: User wants to sync (No Configs) (Database and no credentials)
18
+ Given I am going to run the program
19
+ And The database is running
20
+ And Configurations exist at the default location
21
+ And I am going to run a sync
22
+ And I specify "--no-sync-configs"
23
+ And I specify "--sync-data"
24
+ When I run the application
25
+ Then The application should fail
26
+ And I should see an error message containing "Database username not specified and is required for all synchronization operations"
27
+ Scenario: User wants to sync (Configs) (Database) (Doesn't Specify Username)
28
+ Given I am going to run the program
29
+ And The database is running
30
+ And Configurations exist at the default location
31
+ And I am going to run a sync
32
+ And I specify "--sync-data"
33
+ When I run the application
34
+ Then The application should fail
35
+ And I should see an error message containing "Database username not specified and is required for all synchronization operations"
36
+ Scenario: User wants to sync (No Configs) (Database) (Specifies Sync Dir)
37
+ Given I am going to run the program
38
+ And The database is running
39
+ And Configurations exist at the default location
40
+ And I am going to run a sync
41
+ And I specify "--no-sync-configs"
42
+ And I specify "--sync-data"
43
+ And I specify "--sync-dir /tmp/insxsync"
44
+ And I specify valid database credentials
45
+ When I run the application
46
+ Then The application should fail
47
+ And I should see an error message containing "Synchronization directory specified but configuration sync disabled. Please check your command. Exiting..."
48
+ Scenario: User wants to sync (No Configs) (Database) (Doesn't Specify Username)
49
+ Given I am going to run the program
50
+ And The database is running
51
+ And Configurations exist at the default location
52
+ And I am going to run a sync
53
+ And I specify "--sync-data"
54
+ And I specify "--no-sync-configs"
55
+ When I run the application
56
+ Then The application should fail
57
+ And I should see an error message containing "Database username not specified and is required for all synchronization operations"
58
+ #################################################
59
+ # Configuration Directory Exists
60
+ # Sync Point Exists
61
+ # Database connection works
62
+ #################################################
63
63
  Scenario: User wants to sync (Configs) (No Database) (Default Sync Dir) (Default Date ID)
64
64
  Given I am going to run the program
65
65
  And The database is running
@@ -112,1167 +112,1167 @@ Feature: Synchronization
112
112
  Then The synchronization should be successful
113
113
  And The databases should be unchanged
114
114
  And The config files should be updated
115
- #
116
- # Scenario: User wants to sync (No Configs) (Database) (Default Parameters) (Specifies Credentials) (Default Date ID)
117
- # Given I am going to run the program
118
- # And The database is running
119
- # And Synchronization points exist
120
- # And I am going to run a sync
121
- # And Configurations exist at the default location
122
- # And I specify "--no-sync-configs"
123
- # And I specify "--sync-data"
124
- # And I specify valid database credentials
125
- # And I input the following "Password001"
126
- # And I select the option "n"
127
- # When I run the application
128
- # Then The synchronization should be successful
129
- # And The databases should be updated
130
- # And The config files should be unchanged
131
- # Scenario: User wants to sync (No Configs) (Database) (Default Parameters) (Specifies Credentials) (Specifies Date ID)
132
- # Given I am going to run the program
133
- # And The database is running
134
- # And Synchronization points exist
135
- # And I am going to run a sync
136
- # And Configurations exist at the default location
137
- # And I specify "--no-sync-configs"
138
- # And I specify "--sync-data"
139
- # And I specify "--date-id 1"
140
- # And I specify valid database credentials
141
- # And I input the following "Password001"
142
- # And I select the option "n"
143
- # When I run the application
144
- # Then The synchronization should be successful
145
- # And The databases should be updated
146
- # And The config files should be unchanged
147
- # Scenario: User wants to sync (No Configs) (Database) (Specifies Host only) (Specifies Credentials) (Default Date ID)
148
- # Given I am going to run the program
149
- # And The database is running
150
- # And Synchronization points exist
151
- # And I am going to run a sync
152
- # And Configurations exist at the default location
153
- # And I specify "--no-sync-configs"
154
- # And I specify "--sync-data"
155
- # And I specify "--host 127.0.0.1"
156
- # And I specify valid database credentials
157
- # And I input the following "Password001"
158
- # And I select the option "n"
159
- # When I run the application
160
- # Then The synchronization should be successful
161
- # And The databases should be updated
162
- # And The config files should be unchanged
163
- # Scenario: User wants to sync (No Configs) (Database) (Specifies Host only) (Specifies Credentials) (Specifies Date ID)
164
- # Given I am going to run the program
165
- # And The database is running
166
- # And Synchronization points exist
167
- # And I am going to run a sync
168
- # And Configurations exist at the default location
169
- # And I specify "--no-sync-configs"
170
- # And I specify "--sync-data"
171
- # And I specify "--host 127.0.0.1"
172
- # And I specify "--date-id 1"
173
- # And I specify valid database credentials
174
- # And I input the following "Password001"
175
- # And I select the option "n"
176
- # When I run the application
177
- # Then The synchronization should be successful
178
- # And The databases should be updated
179
- # And The config files should be unchanged
180
- # Scenario: User wants to sync (No Configs) (Database) (Specifies Port only) (Specifies Credentials) (Default Date ID)
181
- # Given I am going to run the program
182
- # And The database is running
183
- # And Synchronization points exist
184
- # And I am going to run a sync
185
- # And Configurations exist at the default location
186
- # And I specify "--no-sync-configs"
187
- # And I specify "--sync-data"
188
- # And I specify "--port 3306"
189
- # And I specify valid database credentials
190
- # And I input the following "Password001"
191
- # And I select the option "n"
192
- # When I run the application
193
- # Then The synchronization should be successful
194
- # And The databases should be updated
195
- # And The config files should be unchanged
196
- # Scenario: User wants to sync (No Configs) (Database) (Specifies Port only) (Specifies Credentials) (Specifies Date ID)
197
- # Given I am going to run the program
198
- # And The database is running
199
- # And Synchronization points exist
200
- # And I am going to run a sync
201
- # And Configurations exist at the default location
202
- # And I specify "--no-sync-configs"
203
- # And I specify "--sync-data"
204
- # And I specify "--port 3306"
205
- # And I specify "--date-id 1"
206
- # And I specify valid database credentials
207
- # And I input the following "Password001"
208
- # And I select the option "n"
209
- # When I run the application
210
- # Then The synchronization should be successful
211
- # And The databases should be updated
212
- # And The config files should be unchanged
213
- # Scenario: User wants to sync (No Configs) (Database) (Specifies Parameters) (Specifies Credentials) (Default Date ID)
214
- # Given I am going to run the program
215
- # And The database is running
216
- # And Synchronization points exist
217
- # And I am going to run a sync
218
- # And Configurations exist at the default location
219
- # And I specify "--no-sync-configs"
220
- # And I specify "--sync-data"
221
- # And I specify "--host 127.0.0.1"
222
- # And I specify "--port 3306"
223
- # And I specify valid database credentials
224
- # And I input the following "Password001"
225
- # And I select the option "n"
226
- # When I run the application
227
- # Then The synchronization should be successful
228
- # And The databases should be updated
229
- # And The config files should be unchanged
230
- # Scenario: User wants to sync (No Configs) (Database) (Specifies Parameters) (Specifies Credentials) (Specifies Date ID)
231
- # Given I am going to run the program
232
- # And The database is running
233
- # And Synchronization points exist
234
- # And I am going to run a sync
235
- # And Configurations exist at the default location
236
- # And I specify "--no-sync-configs"
237
- # And I specify "--sync-data"
238
- # And I specify "--date-id 1"
239
- # And I specify "--host 127.0.0.1"
240
- # And I specify "--port 3306"
241
- # And I specify valid database credentials
242
- # And I input the following "Password001"
243
- # And I select the option "n"
244
- # When I run the application
245
- # Then The synchronization should be successful
246
- # And The databases should be updated
247
- # And The config files should be unchanged
248
- #
249
- # Scenario: User wants to sync (Configs) (Database) (Default Sync Dir) (Default Parameters) (Specifies Credentials) (Default Date ID)
250
- # Given I am going to run the program
251
- # And The database is running
252
- # And Synchronization points exist
253
- # And Configurations exist at the default location
254
- # And I am going to run a sync
255
- # And I specify "--sync-data"
256
- # And I specify valid database credentials
257
- # And I input the following "Password001"
258
- # When I run the application
259
- # Then The synchronization should be successful
260
- # And The databases should be updated
261
- # And The config files should be updated
262
- # Scenario: User wants to sync (Configs) (Database) (Default Sync Dir) (Default Parameters) (Specifies Credentials) (Specifies Date ID)
263
- # Given I am going to run the program
264
- # And The database is running
265
- # And Synchronization points exist
266
- # And Configurations exist at the default location
267
- # And I am going to run a sync
268
- # And I specify "--sync-data"
269
- # And I specify "--date-id 1"
270
- # And I specify valid database credentials
271
- # And I input the following "Password001"
272
- # When I run the application
273
- # Then The synchronization should be successful
274
- # And The databases should be updated
275
- # And The config files should be updated
276
- # Scenario: User wants to sync (Configs) (Database) (Default Sync Dir) (Specifies Host only) (Specifies Credentials) (Default Date ID)
277
- # Given I am going to run the program
278
- # And The database is running
279
- # And Synchronization points exist
280
- # And Configurations exist at the default location
281
- # And I am going to run a sync
282
- # And I specify "--sync-data"
283
- # And I specify "--host 127.0.0.1"
284
- # And I specify valid database credentials
285
- # And I input the following "Password001"
286
- # When I run the application
287
- # Then The synchronization should be successful
288
- # And The databases should be updated
289
- # And The config files should be updated
290
- # Scenario: User wants to sync (Configs) (Database) (Default Sync Dir) (Specifies Host only) (Specifies Credentials) (Specifies Date ID)
291
- # Given I am going to run the program
292
- # And The database is running
293
- # And Synchronization points exist
294
- # And Configurations exist at the default location
295
- # And I am going to run a sync
296
- # And I specify "--sync-data"
297
- # And I specify "--host 127.0.0.1"
298
- # And I specify "--date-id 1"
299
- # And I specify valid database credentials
300
- # And I input the following "Password001"
301
- # When I run the application
302
- # Then The synchronization should be successful
303
- # And The databases should be updated
304
- # And The config files should be updated
305
- # Scenario: User wants to sync (Configs) (Database) (Default Sync Dir) (Specifies Port only) (Specifies Credentials) (Default Date ID)
306
- # Given I am going to run the program
307
- # And The database is running
308
- # And Synchronization points exist
309
- # And Configurations exist at the default location
310
- # And I am going to run a sync
311
- # And I specify "--sync-data"
312
- # And I specify "--port 3306"
313
- # And I specify valid database credentials
314
- # And I input the following "Password001"
315
- # When I run the application
316
- # Then The synchronization should be successful
317
- # And The databases should be updated
318
- # And The config files should be updated
319
- # Scenario: User wants to sync (Configs) (Database) (Default Sync Dir) (Specifies Port only) (Specifies Credentials) (Specifies Date ID)
320
- # Given I am going to run the program
321
- # And The database is running
322
- # And Synchronization points exist
323
- # And Configurations exist at the default location
324
- # And I am going to run a sync
325
- # And I specify "--sync-data"
326
- # And I specify "--port 3306"
327
- # And I specify "--date-id 1"
328
- # And I specify valid database credentials
329
- # And I input the following "Password001"
330
- # When I run the application
331
- # Then The synchronization should be successful
332
- # And The databases should be updated
333
- # And The config files should be updated
334
- # Scenario: User wants to sync (Configs) (Database) (Default Sync Dir) (Specifies Parameters) (Specifies Credentials) (Default Date ID)
335
- # Given I am going to run the program
336
- # And The database is running
337
- # And Synchronization points exist
338
- # And Configurations exist at the default location
339
- # And I am going to run a sync
340
- # And I specify "--sync-data"
341
- # And I specify "--host 127.0.0.1"
342
- # And I specify "--port 3306"
343
- # And I specify valid database credentials
344
- # And I input the following "Password001"
345
- # When I run the application
346
- # Then The synchronization should be successful
347
- # And The databases should be updated
348
- # And The config files should be updated
349
- # Scenario: User wants to sync (Configs) (Database) (Default Sync Dir) (Specifies Parameters) (Specifies Credentials) (Specifies Date ID)
350
- # Given I am going to run the program
351
- # And The database is running
352
- # And Synchronization points exist
353
- # And Configurations exist at the default location
354
- # And I am going to run a sync
355
- # And I specify "--sync-data"
356
- # And I specify "--date-id 1"
357
- # And I specify "--host 127.0.0.1"
358
- # And I specify "--port 3306"
359
- # And I specify valid database credentials
360
- # And I input the following "Password001"
361
- # When I run the application
362
- # Then The synchronization should be successful
363
- # And The databases should be updated
364
- # And The config files should be updated
365
- #
366
- # Scenario: User wants to sync (Configs) (Database) (Specifies Sync Dir) (Default Parameters) (Specifies Credentials) (Default Date ID)
367
- # Given I am going to run the program
368
- # And The database is running
369
- # And Synchronization points exist
370
- # And Configurations exist at "/tmp/insxsync"
371
- # And I am going to run a sync
372
- # And I specify "--sync-data"
373
- # And I specify "--sync-dir /tmp/insxsync"
374
- # And I specify valid database credentials
375
- # And I input the following "Password001"
376
- # When I run the application
377
- # Then The synchronization should be successful
378
- # And The databases should be updated
379
- # And The config files should be updated
380
- # Scenario: User wants to sync (Configs) (Database) (Specifies Sync Dir) (Default Parameters) (Specifies Credentials) (Specifies Date ID)
381
- # Given I am going to run the program
382
- # And The database is running
383
- # And Synchronization points exist
384
- # And Configurations exist at "/tmp/insxsync"
385
- # And I am going to run a sync
386
- # And I specify "--sync-data"
387
- # And I specify "--sync-dir /tmp/insxsync"
388
- # And I specify "--date-id 1"
389
- # And I specify valid database credentials
390
- # And I input the following "Password001"
391
- # When I run the application
392
- # Then The synchronization should be successful
393
- # And The databases should be updated
394
- # And The config files should be updated
395
- # Scenario: User wants to sync (Configs) (Database) (Specifies Sync Dir) (Specifies Host only) (Specifies Credentials) (Default Date ID)
396
- # Given I am going to run the program
397
- # And The database is running
398
- # And Synchronization points exist
399
- # And Configurations exist at "/tmp/insxsync"
400
- # And I am going to run a sync
401
- # And I specify "--sync-data"
402
- # And I specify "--sync-dir /tmp/insxsync"
403
- # And I specify "--host 127.0.0.1"
404
- # And I specify valid database credentials
405
- # And I input the following "Password001"
406
- # When I run the application
407
- # Then The synchronization should be successful
408
- # And The databases should be updated
409
- # And The config files should be updated
410
- # Scenario: User wants to sync (Configs) (Database) (Specifies Sync Dir) (Specifies Host only) (Specifies Credentials) (Specifies Date ID)
411
- # Given I am going to run the program
412
- # And The database is running
413
- # And Synchronization points exist
414
- # And Configurations exist at "/tmp/insxsync"
415
- # And I am going to run a sync
416
- # And I specify "--sync-data"
417
- # And I specify "--sync-dir /tmp/insxsync"
418
- # And I specify "--host 127.0.0.1"
419
- # And I specify "--date-id 1"
420
- # And I specify valid database credentials
421
- # And I input the following "Password001"
422
- # When I run the application
423
- # Then The synchronization should be successful
424
- # And The databases should be updated
425
- # And The config files should be updated
426
- # Scenario: User wants to sync (Configs) (Database) (Specifies Sync Dir) (Specifies Port only) (Specifies Credentials) (Default Date ID)
427
- # Given I am going to run the program
428
- # And The database is running
429
- # And Synchronization points exist
430
- # And Configurations exist at "/tmp/insxsync"
431
- # And I am going to run a sync
432
- # And I specify "--sync-data"
433
- # And I specify "--sync-dir /tmp/insxsync"
434
- # And I specify "--port 3306"
435
- # And I specify valid database credentials
436
- # And I input the following "Password001"
437
- # When I run the application
438
- # Then The synchronization should be successful
439
- # And The databases should be updated
440
- # And The config files should be updated
441
- # Scenario: User wants to sync (Configs) (Database) (Specifies Sync Dir) (Specifies Port only) (Specifies Credentials) (Specifies Date ID)
442
- # Given I am going to run the program
443
- # And The database is running
444
- # And Synchronization points exist
445
- # And Configurations exist at "/tmp/insxsync"
446
- # And I am going to run a sync
447
- # And I specify "--sync-data"
448
- # And I specify "--sync-dir /tmp/insxsync"
449
- # And I specify "--port 3306"
450
- # And I specify "--date-id 1"
451
- # And I specify valid database credentials
452
- # And I input the following "Password001"
453
- # When I run the application
454
- # Then The synchronization should be successful
455
- # And The databases should be updated
456
- # And The config files should be updated
457
- # Scenario: User wants to sync (Configs) (Database) (Specifies Sync Dir) (Specifies Parameters) (Specifies Credentials) (Default Date ID)
458
- # Given I am going to run the program
459
- # And The database is running
460
- # And Synchronization points exist
461
- # And Configurations exist at "/tmp/insxsync"
462
- # And I am going to run a sync
463
- # And I specify "--sync-data"
464
- # And I specify "--sync-dir /tmp/insxsync"
465
- # And I specify "--host 127.0.0.1"
466
- # And I specify "--port 3306"
467
- # And I specify valid database credentials
468
- # And I input the following "Password001"
469
- # When I run the application
470
- # Then The synchronization should be successful
471
- # And The databases should be updated
472
- # And The config files should be updated
473
- # Scenario: User wants to sync (Configs) (Database) (Specifies Sync Dir) (Specifies Parameters) (Specifies Credentials) (Specifies Date ID)
474
- # Given I am going to run the program
475
- # And The database is running
476
- # And Synchronization points exist
477
- # And Configurations exist at "/tmp/insxsync"
478
- # And I am going to run a sync
479
- # And I specify "--sync-data"
480
- # And I specify "--sync-dir /tmp/insxsync"
481
- # And I specify "--date-id 1"
482
- # And I specify "--host 127.0.0.1"
483
- # And I specify "--port 3306"
484
- # And I specify valid database credentials
485
- # And I input the following "Password001"
486
- # When I run the application
487
- # Then The synchronization should be successful
488
- # And The databases should be updated
489
- # And The config files should be updated
490
- #
491
- # ################################################
492
- # Configuration Directory Does not Exist
493
- # Sync Point Exists
494
- # Database connection works
495
- # ################################################
496
- # Scenario: User wants to sync (Configs) (No Database) (Default Sync Dir) (Default Date ID)
497
- # Given I am going to run the program
498
- # And The database is running
499
- # And Synchronization points exist
500
- # And Configurations do not exist at the default location
501
- # And I am going to run a sync
502
- # And I specify valid database credentials
503
- # And I input the following "Password001"
504
- # When I run the application
505
- # Then The application should fail
506
- # And I should see an error message containing "Synchronization directory '/var/www/exchange_app/data/subdomain' does not exist. Exiting..."
507
- # Scenario: User wants to sync (Configs) (No Database) (Default Sync Dir) (Specifies Date ID)
508
- # Given I am going to run the program
509
- # And The database is running
510
- # And Synchronization points exist
511
- # And Configurations do not exist at the default location
512
- # And I am going to run a sync
513
- # And I specify valid database credentials
514
- # And I specify "--date-id 1"
515
- # And I input the following "Password001"
516
- # When I run the application
517
- # Then The application should fail
518
- # And I should see an error message containing "Synchronization directory '/var/www/exchange_app/data/subdomain' does not exist. Exiting..."
519
- # Scenario: User wants to sync (Configs) (No Database) (Specifies Sync Dir) (Default Date ID)
520
- # Given I am going to run the program
521
- # And The database is running
522
- # And Synchronization points exist
523
- # And Configurations do not exist at "/tmp/insxsync"
524
- # And I am going to run a sync
525
- # And I specify valid database credentials
526
- # And I specify "--sync-dir /tmp/insxsync"
527
- # And I input the following "Password001"
528
- # When I run the application
529
- # Then The application should fail
530
- # And I should see an error message containing "Argument Error: Synchronization directory does not exist. Exiting..."
531
- # Scenario: User wants to sync (Configs) (No Database) (Specifies Sync Dir) (Specifies Date ID)
532
- # Given I am going to run the program
533
- # And The database is running
534
- # And Synchronization points exist
535
- # And Configurations do not exist at "/tmp/insxsync"
536
- # And I am going to run a sync
537
- # And I specify valid database credentials
538
- # And I specify "--date-id 1"
539
- # And I specify "--sync-dir /tmp/insxsync"
540
- # And I input the following "Password001"
541
- # When I run the application
542
- # Then The application should fail
543
- # And I should see an error message containing "Argument Error: Synchronization directory does not exist. Exiting..."
544
- #
545
- # Scenario: User wants to sync (Configs) (Database) (Default Sync Dir) (Default Parameters) (Specifies Credentials) (Default Date ID)
546
- # Given I am going to run the program
547
- # And The database is running
548
- # And Synchronization points exist
549
- # And Configurations do not exist at the default location
550
- # And I am going to run a sync
551
- # And I specify "--sync-data"
552
- # And I specify valid database credentials
553
- # And I input the following "Password001"
554
- # When I run the application
555
- # Then The application should fail
556
- # And I should see an error message containing "Synchronization directory '/var/www/exchange_app/data/subdomain' does not exist. Exiting..."
557
- # Scenario: User wants to sync (Configs) (Database) (Default Sync Dir) (Default Parameters) (Specifies Credentials) (Specifies Date ID)
558
- # Given I am going to run the program
559
- # And The database is running
560
- # And Synchronization points exist
561
- # And Configurations do not exist at the default location
562
- # And I am going to run a sync
563
- # And I specify "--sync-data"
564
- # And I specify "--date-id 1"
565
- # And I specify valid database credentials
566
- # And I input the following "Password001"
567
- # When I run the application
568
- # Then The application should fail
569
- # And I should see an error message containing "Synchronization directory '/var/www/exchange_app/data/subdomain' does not exist. Exiting..."
570
- # Scenario: User wants to sync (Configs) (Database) (Default Sync Dir) (Specifies Host only) (Specifies Credentials) (Default Date ID)
571
- # Given I am going to run the program
572
- # And The database is running
573
- # And Synchronization points exist
574
- # And Configurations do not exist at the default location
575
- # And I am going to run a sync
576
- # And I specify "--sync-data"
577
- # And I specify "--host 127.0.0.1"
578
- # And I specify valid database credentials
579
- # And I input the following "Password001"
580
- # When I run the application
581
- # Then The application should fail
582
- # And I should see an error message containing "Synchronization directory '/var/www/exchange_app/data/subdomain' does not exist. Exiting..."
583
- # Scenario: User wants to sync (Configs) (Database) (Default Sync Dir) (Specifies Host only) (Specifies Credentials) (Specifies Date ID)
584
- # Given I am going to run the program
585
- # And The database is running
586
- # And Synchronization points exist
587
- # And Configurations do not exist at the default location
588
- # And I am going to run a sync
589
- # And I specify "--sync-data"
590
- # And I specify "--host 127.0.0.1"
591
- # And I specify "--date-id 1"
592
- # And I specify valid database credentials
593
- # And I input the following "Password001"
594
- # When I run the application
595
- # Then The application should fail
596
- # And I should see an error message containing "Synchronization directory '/var/www/exchange_app/data/subdomain' does not exist. Exiting..."
597
- # Scenario: User wants to sync (Configs) (Database) (Default Sync Dir) (Specifies Port only) (Specifies Credentials) (Default Date ID)
598
- # Given I am going to run the program
599
- # And The database is running
600
- # And Synchronization points exist
601
- # And Configurations do not exist at the default location
602
- # And I am going to run a sync
603
- # And I specify "--sync-data"
604
- # And I specify "--port 3306"
605
- # And I specify valid database credentials
606
- # And I input the following "Password001"
607
- # When I run the application
608
- # Then The application should fail
609
- # And I should see an error message containing "Synchronization directory '/var/www/exchange_app/data/subdomain' does not exist. Exiting..."
610
- # Scenario: User wants to sync (Configs) (Database) (Default Sync Dir) (Specifies Port only) (Specifies Credentials) (Specifies Date ID)
611
- # Given I am going to run the program
612
- # And The database is running
613
- # And Synchronization points exist
614
- # And Configurations do not exist at the default location
615
- # And I am going to run a sync
616
- # And I specify "--sync-data"
617
- # And I specify "--port 3306"
618
- # And I specify "--date-id 1"
619
- # And I specify valid database credentials
620
- # And I input the following "Password001"
621
- # When I run the application
622
- # Then The application should fail
623
- # And I should see an error message containing "Synchronization directory '/var/www/exchange_app/data/subdomain' does not exist. Exiting..."
624
- # Scenario: User wants to sync (Configs) (Database) (Default Sync Dir) (Specifies Parameters) (Specifies Credentials) (Default Date ID)
625
- # Given I am going to run the program
626
- # And The database is running
627
- # And Synchronization points exist
628
- # And Configurations do not exist at the default location
629
- # And I am going to run a sync
630
- # And I specify "--sync-data"
631
- # And I specify "--host 127.0.0.1"
632
- # And I specify "--port 3306"
633
- # And I specify valid database credentials
634
- # And I input the following "Password001"
635
- # When I run the application
636
- # Then The application should fail
637
- # And I should see an error message containing "Synchronization directory '/var/www/exchange_app/data/subdomain' does not exist. Exiting..."
638
- # Scenario: User wants to sync (Configs) (Database) (Default Sync Dir) (Specifies Parameters) (Specifies Credentials) (Specifies Date ID)
639
- # Given I am going to run the program
640
- # And The database is running
641
- # And Synchronization points exist
642
- # And Configurations do not exist at the default location
643
- # And I am going to run a sync
644
- # And I specify "--sync-data"
645
- # And I specify "--date-id 1"
646
- # And I specify "--host 127.0.0.1"
647
- # And I specify "--port 3306"
648
- # And I specify valid database credentials
649
- # And I input the following "Password001"
650
- # When I run the application
651
- # Then The application should fail
652
- # And I should see an error message containing "Synchronization directory '/var/www/exchange_app/data/subdomain' does not exist. Exiting..."
653
- #
654
- # Scenario: User wants to sync (Configs) (Database) (Specifies Sync Dir) (Default Parameters) (Specifies Credentials) (Default Date ID)
655
- # Given I am going to run the program
656
- # And The database is running
657
- # And Synchronization points exist
658
- # And Configurations do not exist at "/tmp/insxsync"
659
- # And I am going to run a sync
660
- # And I specify "--sync-data"
661
- # And I specify "--sync-dir /tmp/insxsync"
662
- # And I specify valid database credentials
663
- # And I input the following "Password001"
664
- # When I run the application
665
- # Then The application should fail
666
- # And I should see an error message containing "Argument Error: Synchronization directory does not exist. Exiting..."
667
- # Scenario: User wants to sync (Configs) (Database) (Specifies Sync Dir) (Default Parameters) (Specifies Credentials) (Specifies Date ID)
668
- # Given I am going to run the program
669
- # And The database is running
670
- # And Synchronization points exist
671
- # And Configurations do not exist at "/tmp/insxsync"
672
- # And I am going to run a sync
673
- # And I specify "--sync-data"
674
- # And I specify "--sync-dir /tmp/insxsync"
675
- # And I specify "--date-id 1"
676
- # And I specify valid database credentials
677
- # And I input the following "Password001"
678
- # When I run the application
679
- # Then The application should fail
680
- # And I should see an error message containing "Argument Error: Synchronization directory does not exist. Exiting..."
681
- # Scenario: User wants to sync (Configs) (Database) (Specifies Sync Dir) (Specifies Host only) (Specifies Credentials) (Default Date ID)
682
- # Given I am going to run the program
683
- # And The database is running
684
- # And Synchronization points exist
685
- # And Configurations do not exist at "/tmp/insxsync"
686
- # And I am going to run a sync
687
- # And I specify "--sync-data"
688
- # And I specify "--sync-dir /tmp/insxsync"
689
- # And I specify "--host 127.0.0.1"
690
- # And I specify valid database credentials
691
- # And I input the following "Password001"
692
- # When I run the application
693
- # Then The application should fail
694
- # And I should see an error message containing "Argument Error: Synchronization directory does not exist. Exiting..."
695
- # Scenario: User wants to sync (Configs) (Database) (Specifies Sync Dir) (Specifies Host only) (Specifies Credentials) (Specifies Date ID)
696
- # Given I am going to run the program
697
- # And The database is running
698
- # And Synchronization points exist
699
- # And Configurations do not exist at "/tmp/insxsync"
700
- # And I am going to run a sync
701
- # And I specify "--sync-data"
702
- # And I specify "--sync-dir /tmp/insxsync"
703
- # And I specify "--host 127.0.0.1"
704
- # And I specify "--date-id 1"
705
- # And I specify valid database credentials
706
- # And I input the following "Password001"
707
- # When I run the application
708
- # Then The application should fail
709
- # And I should see an error message containing "Argument Error: Synchronization directory does not exist. Exiting..."
710
- # Scenario: User wants to sync (Configs) (Database) (Specifies Sync Dir) (Specifies Port only) (Specifies Credentials) (Default Date ID)
711
- # Given I am going to run the program
712
- # And The database is running
713
- # And Synchronization points exist
714
- # And Configurations do not exist at "/tmp/insxsync"
715
- # And I am going to run a sync
716
- # And I specify "--sync-data"
717
- # And I specify "--sync-dir /tmp/insxsync"
718
- # And I specify "--port 3306"
719
- # And I specify valid database credentials
720
- # And I input the following "Password001"
721
- # When I run the application
722
- # Then The application should fail
723
- # And I should see an error message containing "Argument Error: Synchronization directory does not exist. Exiting..."
724
- # Scenario: User wants to sync (Configs) (Database) (Specifies Sync Dir) (Specifies Port only) (Specifies Credentials) (Specifies Date ID)
725
- # Given I am going to run the program
726
- # And The database is running
727
- # And Synchronization points exist
728
- # And Configurations do not exist at "/tmp/insxsync"
729
- # And I am going to run a sync
730
- # And I specify "--sync-data"
731
- # And I specify "--sync-dir /tmp/insxsync"
732
- # And I specify "--port 3306"
733
- # And I specify "--date-id 1"
734
- # And I specify valid database credentials
735
- # And I input the following "Password001"
736
- # When I run the application
737
- # Then The application should fail
738
- # And I should see an error message containing "Argument Error: Synchronization directory does not exist. Exiting..."
739
- # Scenario: User wants to sync (Configs) (Database) (Specifies Sync Dir) (Specifies Parameters) (Specifies Credentials) (Default Date ID)
740
- # Given I am going to run the program
741
- # And The database is running
742
- # And Synchronization points exist
743
- # And Configurations do not exist at "/tmp/insxsync"
744
- # And I am going to run a sync
745
- # And I specify "--sync-data"
746
- # And I specify "--sync-dir /tmp/insxsync"
747
- # And I specify "--host 127.0.0.1"
748
- # And I specify "--port 3306"
749
- # And I specify valid database credentials
750
- # And I input the following "Password001"
751
- # When I run the application
752
- # Then The application should fail
753
- # And I should see an error message containing "Argument Error: Synchronization directory does not exist. Exiting..."
754
- # Scenario: User wants to sync (Configs) (Database) (Specifies Sync Dir) (Specifies Parameters) (Specifies Credentials) (Specifies Date ID)
755
- # Given I am going to run the program
756
- # And The database is running
757
- # And Synchronization points exist
758
- # And Configurations do not exist at "/tmp/insxsync"
759
- # And I am going to run a sync
760
- # And I specify "--sync-data"
761
- # And I specify "--sync-dir /tmp/insxsync"
762
- # And I specify "--date-id 1"
763
- # And I specify "--host 127.0.0.1"
764
- # And I specify "--port 3306"
765
- # And I specify valid database credentials
766
- # And I input the following "Password001"
767
- # When I run the application
768
- # Then The application should fail
769
- # And I should see an error message containing "Argument Error: Synchronization directory does not exist. Exiting..."
770
- #
771
- # #################################################
772
- # # Configuration Directory Exists
773
- # # Sync Point Does not Exist
774
- # # Database connection works
775
- # #################################################
776
- # Scenario: User wants to sync (Configs) (No Database) (Default Sync Dir) (Default Date ID)
777
- # Given I am going to run the program
778
- # And The database is running
779
- # And Synchronization points do not exist
780
- # And Configurations exist at the default location
781
- # And I am going to run a sync
782
- # And I specify valid database credentials
783
- # And I input the following "Password001"
784
- # When I run the application
785
- # Then The application should fail
786
- # And I should see an error message containing "No synchronization points exist. Exiting..."
787
- # Scenario: User wants to sync (Configs) (No Database) (Default Sync Dir) (Specifies Date ID)
788
- # Given I am going to run the program
789
- # And The database is running
790
- # And Synchronization points do not exist
791
- # And Configurations exist at the default location
792
- # And I am going to run a sync
793
- # And I specify valid database credentials
794
- # And I specify "--date-id 1"
795
- # And I input the following "Password001"
796
- # When I run the application
797
- # Then The application should fail
798
- # And I should see an error message containing "Specified synchronization point does not exist. Exiting..."
799
- # Scenario: User wants to sync (Configs) (No Database) (Specifies Sync Dir) (Default Date ID)
800
- # Given I am going to run the program
801
- # And The database is running
802
- # And Synchronization points do not exist
803
- # And Configurations exist at "/tmp/insxsync"
804
- # And I am going to run a sync
805
- # And I specify valid database credentials
806
- # And I specify "--sync-dir /tmp/insxsync"
807
- # And I input the following "Password001"
808
- # When I run the application
809
- # Then The application should fail
810
- # And I should see an error message containing "No synchronization points exist. Exiting..."
811
- # Scenario: User wants to sync (Configs) (No Database) (Specifies Sync Dir) (Specifies Date ID)
812
- # Given I am going to run the program
813
- # And The database is running
814
- # And Synchronization points do not exist
815
- # And Configurations exist at "/tmp/insxsync"
816
- # And I am going to run a sync
817
- # And I specify valid database credentials
818
- # And I specify "--date-id 1"
819
- # And I specify "--sync-dir /tmp/insxsync"
820
- # And I input the following "Password001"
821
- # When I run the application
822
- # Then The application should fail
823
- # And I should see an error message containing "Specified synchronization point does not exist. Exiting..."
824
- #
825
- # Scenario: User wants to sync (No Configs) (Database) (Default Parameters) (Specifies Credentials) (Default Date ID)
826
- # Given I am going to run the program
827
- # And The database is running
828
- # And Synchronization points do not exist
829
- # And I am going to run a sync
830
- # And I specify "--sync-data"
831
- # And I specify "--no-sync-configs"
832
- # And I specify valid database credentials
833
- # And I input the following "Password001"
834
- # When I run the application
835
- # Then The application should fail
836
- # And I should see an error message containing "No synchronization points exist. Exiting..."
837
- # Scenario: User wants to sync (No Configs) (Database) (Default Parameters) (Specifies Credentials) (Specifies Date ID)
838
- # Given I am going to run the program
839
- # And The database is running
840
- # And Synchronization points do not exist
841
- # And I am going to run a sync
842
- # And I specify "--sync-data"
843
- # And I specify "--no-sync-configs"
844
- # And I specify "--date-id 1"
845
- # And I specify valid database credentials
846
- # And I input the following "Password001"
847
- # When I run the application
848
- # Then The application should fail
849
- # And I should see an error message containing "Specified synchronization point does not exist. Exiting..."
850
- # Scenario: User wants to sync (No Configs) (Database) (Specifies Host only) (Specifies Credentials) (Default Date ID)
851
- # Given I am going to run the program
852
- # And The database is running
853
- # And Synchronization points do not exist
854
- # And I am going to run a sync
855
- # And I specify "--sync-data"
856
- # And I specify "--no-sync-configs"
857
- # And I specify "--host 127.0.0.1"
858
- # And I specify valid database credentials
859
- # And I input the following "Password001"
860
- # When I run the application
861
- # Then The application should fail
862
- # And I should see an error message containing "No synchronization points exist. Exiting..."
863
- # Scenario: User wants to sync (No Configs) (Database) (Specifies Host only) (Specifies Credentials) (Specifies Date ID)
864
- # Given I am going to run the program
865
- # And The database is running
866
- # And Synchronization points do not exist
867
- # And I am going to run a sync
868
- # And I specify "--sync-data"
869
- # And I specify "--no-sync-configs"
870
- # And I specify "--host 127.0.0.1"
871
- # And I specify "--date-id 1"
872
- # And I specify valid database credentials
873
- # And I input the following "Password001"
874
- # When I run the application
875
- # Then The application should fail
876
- # And I should see an error message containing "Specified synchronization point does not exist. Exiting..."
877
- # Scenario: User wants to sync (No Configs) (Database) (Specifies Port only) (Specifies Credentials) (Default Date ID)
878
- # Given I am going to run the program
879
- # And The database is running
880
- # And Synchronization points do not exist
881
- # And I am going to run a sync
882
- # And I specify "--sync-data"
883
- # And I specify "--no-sync-configs"
884
- # And I specify "--port 3306"
885
- # And I specify valid database credentials
886
- # And I input the following "Password001"
887
- # When I run the application
888
- # Then The application should fail
889
- # And I should see an error message containing "No synchronization points exist. Exiting..."
890
- # Scenario: User wants to sync (No Configs) (Database) (Specifies Port only) (Specifies Credentials) (Specifies Date ID)
891
- # Given I am going to run the program
892
- # And The database is running
893
- # And Synchronization points do not exist
894
- # And I am going to run a sync
895
- # And I specify "--sync-data"
896
- # And I specify "--no-sync-configs"
897
- # And I specify "--port 3306"
898
- # And I specify "--date-id 1"
899
- # And I specify valid database credentials
900
- # And I input the following "Password001"
901
- # When I run the application
902
- # Then The application should fail
903
- # And I should see an error message containing "Specified synchronization point does not exist. Exiting..."
904
- # Scenario: User wants to sync (No Configs) (Database) (Specifies Parameters) (Specifies Credentials) (Default Date ID)
905
- # Given I am going to run the program
906
- # And The database is running
907
- # And Synchronization points do not exist
908
- # And I am going to run a sync
909
- # And I specify "--sync-data"
910
- # And I specify "--no-sync-configs"
911
- # And I specify "--host 127.0.0.1"
912
- # And I specify "--port 3306"
913
- # And I specify valid database credentials
914
- # And I input the following "Password001"
915
- # When I run the application
916
- # Then The application should fail
917
- # And I should see an error message containing "No synchronization points exist. Exiting..."
918
- # Scenario: User wants to sync (No Configs) (Database) (Specifies Parameters) (Specifies Credentials) (Specifies Date ID)
919
- # Given I am going to run the program
920
- # And The database is running
921
- # And Synchronization points do not exist
922
- # And I am going to run a sync
923
- # And I specify "--sync-data"
924
- # And I specify "--no-sync-configs"
925
- # And I specify "--date-id 1"
926
- # And I specify "--host 127.0.0.1"
927
- # And I specify "--port 3306"
928
- # And I specify valid database credentials
929
- # And I input the following "Password001"
930
- # When I run the application
931
- # Then The application should fail
932
- # And I should see an error message containing "Specified synchronization point does not exist. Exiting..."
933
- #
934
- # Scenario: User wants to sync (Configs) (Database) (Default Sync Dir) (Default Parameters) (Specifies Credentials) (Default Date ID)
935
- # Given I am going to run the program
936
- # And The database is running
937
- # And Synchronization points do not exist
938
- # And Configurations exist at the default location
939
- # And I am going to run a sync
940
- # And I specify "--sync-data"
941
- # And I specify valid database credentials
942
- # And I input the following "Password001"
943
- # When I run the application
944
- # Then The application should fail
945
- # And I should see an error message containing "No synchronization points exist. Exiting..."
946
- # Scenario: User wants to sync (Configs) (Database) (Default Sync Dir) (Default Parameters) (Specifies Credentials) (Specifies Date ID)
947
- # Given I am going to run the program
948
- # And The database is running
949
- # And Synchronization points do not exist
950
- # And Configurations exist at the default location
951
- # And I am going to run a sync
952
- # And I specify "--sync-data"
953
- # And I specify "--date-id 1"
954
- # And I specify valid database credentials
955
- # And I input the following "Password001"
956
- # When I run the application
957
- # Then The application should fail
958
- # And I should see an error message containing "Specified synchronization point does not exist. Exiting..."
959
- # Scenario: User wants to sync (Configs) (Database) (Default Sync Dir) (Specifies Host only) (Specifies Credentials) (Default Date ID)
960
- # Given I am going to run the program
961
- # And The database is running
962
- # And Synchronization points do not exist
963
- # And Configurations exist at the default location
964
- # And I am going to run a sync
965
- # And I specify "--sync-data"
966
- # And I specify "--host 127.0.0.1"
967
- # And I specify valid database credentials
968
- # And I input the following "Password001"
969
- # When I run the application
970
- # Then The application should fail
971
- # And I should see an error message containing "No synchronization points exist. Exiting..."
972
- # Scenario: User wants to sync (Configs) (Database) (Default Sync Dir) (Specifies Host only) (Specifies Credentials) (Specifies Date ID)
973
- # Given I am going to run the program
974
- # And The database is running
975
- # And Synchronization points do not exist
976
- # And Configurations exist at the default location
977
- # And I am going to run a sync
978
- # And I specify "--sync-data"
979
- # And I specify "--host 127.0.0.1"
980
- # And I specify "--date-id 1"
981
- # And I specify valid database credentials
982
- # And I input the following "Password001"
983
- # When I run the application
984
- # Then The application should fail
985
- # And I should see an error message containing "Specified synchronization point does not exist. Exiting..."
986
- # Scenario: User wants to sync (Configs) (Database) (Default Sync Dir) (Specifies Port only) (Specifies Credentials) (Default Date ID)
987
- # Given I am going to run the program
988
- # And The database is running
989
- # And Synchronization points do not exist
990
- # And Configurations exist at the default location
991
- # And I am going to run a sync
992
- # And I specify "--sync-data"
993
- # And I specify "--port 3306"
994
- # And I specify valid database credentials
995
- # And I input the following "Password001"
996
- # When I run the application
997
- # Then The application should fail
998
- # And I should see an error message containing "No synchronization points exist. Exiting..."
999
- # Scenario: User wants to sync (Configs) (Database) (Default Sync Dir) (Specifies Port only) (Specifies Credentials) (Specifies Date ID)
1000
- # Given I am going to run the program
1001
- # And The database is running
1002
- # And Synchronization points do not exist
1003
- # And Configurations exist at the default location
1004
- # And I am going to run a sync
1005
- # And I specify "--sync-data"
1006
- # And I specify "--port 3306"
1007
- # And I specify "--date-id 1"
1008
- # And I specify valid database credentials
1009
- # And I input the following "Password001"
1010
- # When I run the application
1011
- # Then The application should fail
1012
- # And I should see an error message containing "Specified synchronization point does not exist. Exiting..."
1013
- # Scenario: User wants to sync (Configs) (Database) (Default Sync Dir) (Specifies Parameters) (Specifies Credentials) (Default Date ID)
1014
- # Given I am going to run the program
1015
- # And The database is running
1016
- # And Synchronization points do not exist
1017
- # And Configurations exist at the default location
1018
- # And I am going to run a sync
1019
- # And I specify "--sync-data"
1020
- # And I specify "--host 127.0.0.1"
1021
- # And I specify "--port 3306"
1022
- # And I specify valid database credentials
1023
- # And I input the following "Password001"
1024
- # When I run the application
1025
- # Then The application should fail
1026
- # And I should see an error message containing "No synchronization points exist. Exiting..."
1027
- # Scenario: User wants to sync (Configs) (Database) (Default Sync Dir) (Specifies Parameters) (Specifies Credentials) (Specifies Date ID)
1028
- # Given I am going to run the program
1029
- # And The database is running
1030
- # And Synchronization points do not exist
1031
- # And Configurations exist at the default location
1032
- # And I am going to run a sync
1033
- # And I specify "--sync-data"
1034
- # And I specify "--date-id 1"
1035
- # And I specify "--host 127.0.0.1"
1036
- # And I specify "--port 3306"
1037
- # And I specify valid database credentials
1038
- # And I input the following "Password001"
1039
- # When I run the application
1040
- # Then The application should fail
1041
- # And I should see an error message containing "Specified synchronization point does not exist. Exiting..."
1042
- #
1043
- # Scenario: User wants to sync (Configs) (Database) (Specifies Sync Dir) (Default Parameters) (Specifies Credentials) (Default Date ID)
1044
- # Given I am going to run the program
1045
- # And The database is running
1046
- # And Synchronization points do not exist
1047
- # And Configurations exist at "/tmp/insxsync"
1048
- # And I am going to run a sync
1049
- # And I specify "--sync-data"
1050
- # And I specify "--sync-dir /tmp/insxsync"
1051
- # And I specify valid database credentials
1052
- # And I input the following "Password001"
1053
- # When I run the application
1054
- # Then The application should fail
1055
- # And I should see an error message containing "No synchronization points exist. Exiting..."
1056
- # Scenario: User wants to sync (Configs) (Database) (Specifies Sync Dir) (Default Parameters) (Specifies Credentials) (Specifies Date ID)
1057
- # Given I am going to run the program
1058
- # And The database is running
1059
- # And Synchronization points do not exist
1060
- # And Configurations exist at "/tmp/insxsync"
1061
- # And I am going to run a sync
1062
- # And I specify "--sync-data"
1063
- # And I specify "--sync-dir /tmp/insxsync"
1064
- # And I specify "--date-id 1"
1065
- # And I specify valid database credentials
1066
- # And I input the following "Password001"
1067
- # When I run the application
1068
- # Then The application should fail
1069
- # And I should see an error message containing "Specified synchronization point does not exist. Exiting..."
1070
- # Scenario: User wants to sync (Configs) (Database) (Specifies Sync Dir) (Specifies Host only) (Specifies Credentials) (Default Date ID)
1071
- # Given I am going to run the program
1072
- # And The database is running
1073
- # And Synchronization points do not exist
1074
- # And Configurations exist at "/tmp/insxsync"
1075
- # And I am going to run a sync
1076
- # And I specify "--sync-data"
1077
- # And I specify "--sync-dir /tmp/insxsync"
1078
- # And I specify "--host 127.0.0.1"
1079
- # And I specify valid database credentials
1080
- # And I input the following "Password001"
1081
- # When I run the application
1082
- # Then The application should fail
1083
- # And I should see an error message containing "No synchronization points exist. Exiting..."
1084
- # Scenario: User wants to sync (Configs) (Database) (Specifies Sync Dir) (Specifies Host only) (Specifies Credentials) (Specifies Date ID)
1085
- # Given I am going to run the program
1086
- # And The database is running
1087
- # And Synchronization points do not exist
1088
- # And Configurations exist at "/tmp/insxsync"
1089
- # And I am going to run a sync
1090
- # And I specify "--sync-data"
1091
- # And I specify "--sync-dir /tmp/insxsync"
1092
- # And I specify "--host 127.0.0.1"
1093
- # And I specify "--date-id 1"
1094
- # And I specify valid database credentials
1095
- # And I input the following "Password001"
1096
- # When I run the application
1097
- # Then The application should fail
1098
- # And I should see an error message containing "Specified synchronization point does not exist. Exiting..."
1099
- # Scenario: User wants to sync (Configs) (Database) (Specifies Sync Dir) (Specifies Port only) (Specifies Credentials) (Default Date ID)
1100
- # Given I am going to run the program
1101
- # And The database is running
1102
- # And Synchronization points do not exist
1103
- # And Configurations exist at "/tmp/insxsync"
1104
- # And I am going to run a sync
1105
- # And I specify "--sync-data"
1106
- # And I specify "--sync-dir /tmp/insxsync"
1107
- # And I specify "--port 3306"
1108
- # And I specify valid database credentials
1109
- # And I input the following "Password001"
1110
- # When I run the application
1111
- # Then The application should fail
1112
- # And I should see an error message containing "No synchronization points exist. Exiting..."
1113
- # Scenario: User wants to sync (Configs) (Database) (Specifies Sync Dir) (Specifies Port only) (Specifies Credentials) (Specifies Date ID)
1114
- # Given I am going to run the program
1115
- # And The database is running
1116
- # And Synchronization points do not exist
1117
- # And Configurations exist at "/tmp/insxsync"
1118
- # And I am going to run a sync
1119
- # And I specify "--sync-data"
1120
- # And I specify "--sync-dir /tmp/insxsync"
1121
- # And I specify "--port 3306"
1122
- # And I specify "--date-id 1"
1123
- # And I specify valid database credentials
1124
- # And I input the following "Password001"
1125
- # When I run the application
1126
- # Then The application should fail
1127
- # And I should see an error message containing "Specified synchronization point does not exist. Exiting..."
1128
- # Scenario: User wants to sync (Configs) (Database) (Specifies Sync Dir) (Specifies Parameters) (Specifies Credentials) (Default Date ID)
1129
- # Given I am going to run the program
1130
- # And The database is running
1131
- # And Synchronization points do not exist
1132
- # And Configurations exist at "/tmp/insxsync"
1133
- # And I am going to run a sync
1134
- # And I specify "--sync-data"
1135
- # And I specify "--sync-dir /tmp/insxsync"
1136
- # And I specify "--host 127.0.0.1"
1137
- # And I specify "--port 3306"
1138
- # And I specify valid database credentials
1139
- # And I input the following "Password001"
1140
- # When I run the application
1141
- # Then The application should fail
1142
- # And I should see an error message containing "No synchronization points exist. Exiting..."
1143
- # Scenario: User wants to sync (Configs) (Database) (Specifies Sync Dir) (Specifies Parameters) (Specifies Credentials) (Specifies Date ID)
1144
- # Given I am going to run the program
1145
- # And The database is running
1146
- # And Synchronization points do not exist
1147
- # And Configurations exist at "/tmp/insxsync"
1148
- # And I am going to run a sync
1149
- # And I specify "--sync-data"
1150
- # And I specify "--sync-dir /tmp/insxsync"
1151
- # And I specify "--date-id 1"
1152
- # And I specify "--host 127.0.0.1"
1153
- # And I specify "--port 3306"
1154
- # And I specify valid database credentials
1155
- # And I input the following "Password001"
1156
- # When I run the application
1157
- # Then The application should fail
1158
- # And I should see an error message containing "Specified synchronization point does not exist. Exiting..."
1159
- #
1160
- # #################################################
1161
- # # Configuration Directory Exists
1162
- # # Sync Point Exists
1163
- # # Database host does not respond
1164
- # #################################################
1165
- # Scenario: User wants to sync (No Configs) (Database) (Default Parameters) (Specifies Credentials) (Default Date ID)
1166
- # Given I am going to run the program
1167
- # And The database is not running
1168
- # And Synchronization points exist
1169
- # And I am going to run a sync
1170
- # And I specify "--sync-data"
1171
- # And I specify "--no-sync-configs"
1172
- # And I specify valid database credentials
1173
- # And I input the following "Password001"
1174
- # When I run the application
1175
- # Then The application should fail
1176
- # And I should see an error message containing "did not respond."
1177
- # Scenario: User wants to sync (No Configs) (Database) (Specifies Host only) (Specifies Credentials) (Default Date ID)
1178
- # Given I am going to run the program
1179
- # And The database is not running
1180
- # And Synchronization points exist
1181
- # And I am going to run a sync
1182
- # And I specify "--sync-data"
1183
- # And I specify "--no-sync-configs"
1184
- # And I specify "--host 127.0.0.1"
1185
- # And I specify valid database credentials
1186
- # And I input the following "Password001"
1187
- # When I run the application
1188
- # Then The application should fail
1189
- # And I should see an error message containing "did not respond."
1190
- # Scenario: User wants to sync (No Configs) (Database) (Specifies Port only) (Specifies Credentials) (Default Date ID)
1191
- # Given I am going to run the program
1192
- # And The database is not running
1193
- # And Synchronization points exist
1194
- # And I am going to run a sync
1195
- # And I specify "--sync-data"
1196
- # And I specify "--no-sync-configs"
1197
- # And I specify "--port 3306"
1198
- # And I specify valid database credentials
1199
- # And I input the following "Password001"
1200
- # When I run the application
1201
- # Then The application should fail
1202
- # And I should see an error message containing "did not respond."
1203
- # Scenario: User wants to sync (No Configs) (Database) (Specifies Parameters) (Specifies Credentials) (Default Date ID)
1204
- # Given I am going to run the program
1205
- # And The database is not running
1206
- # And Synchronization points exist
1207
- # And I am going to run a sync
1208
- # And I specify "--sync-data"
1209
- # And I specify "--no-sync-configs"
1210
- # And I specify "--host 127.0.0.1"
1211
- # And I specify "--port 3306"
1212
- # And I specify valid database credentials
1213
- # And I input the following "Password001"
1214
- # When I run the application
1215
- # Then The application should fail
1216
- # And I should see an error message containing "did not respond."
1217
- #
1218
- # #################################################
1219
- # # Configuration Directory Exists
1220
- # # Sync Point Exists
1221
- # # Database refuses credentials
1222
- # #################################################
1223
- # Scenario: User wants to sync (No Configs) (Database) (Default Parameters) (Specifies Credentials) (Default Date ID)
1224
- # Given I am going to run the program
1225
- # And The database is running
1226
- # And Synchronization points exist
1227
- # And I am going to run a sync
1228
- # And I specify valid database credentials
1229
- # And I specify "--sync-data"
1230
- # And I specify "--no-sync-configs"
1231
- # And I specify invalid database credentials
1232
- # And I input the following "Password001"
1233
- # When I run the application
1234
- # Then The application should fail
1235
- # And I should see an error message containing "MySQL access denied for user"
1236
- # Scenario: User wants to sync (No Configs) (Database) (Specifies Host only) (Specifies Credentials) (Default Date ID)
1237
- # Given I am going to run the program
1238
- # And The database is running
1239
- # And Synchronization points exist
1240
- # And I am going to run a sync
1241
- # And I specify valid database credentials
1242
- # And I specify "--sync-data"
1243
- # And I specify "--no-sync-configs"
1244
- # And I specify "--host 127.0.0.1"
1245
- # And I specify invalid database credentials
1246
- # And I input the following "Password001"
1247
- # When I run the application
1248
- # Then The application should fail
1249
- # And I should see an error message containing "MySQL access denied for user"
1250
- # Scenario: User wants to sync (No Configs) (Database) (Specifies Port only) (Specifies Credentials) (Default Date ID)
1251
- # Given I am going to run the program
1252
- # And The database is running
1253
- # And Synchronization points exist
1254
- # And I am going to run a sync
1255
- # And I specify valid database credentials
1256
- # And I specify "--sync-data"
1257
- # And I specify "--no-sync-configs"
1258
- # And I specify "--port 3306"
1259
- # And I specify invalid database credentials
1260
- # And I input the following "Password001"
1261
- # When I run the application
1262
- # Then The application should fail
1263
- # And I should see an error message containing "MySQL access denied for user"
1264
- # Scenario: User wants to sync (No Configs) (Database) (Specifies Parameters) (Specifies Credentials) (Default Date ID)
1265
- # Given I am going to run the program
1266
- # And The database is running
1267
- # And Synchronization points exist
1268
- # And I am going to run a sync
1269
- # And I specify valid database credentials
1270
- # And I specify "--sync-data"
1271
- # And I specify "--no-sync-configs"
1272
- # And I specify "--host 127.0.0.1"
1273
- # And I specify "--port 3306"
1274
- # And I specify invalid database credentials
1275
- # And I input the following "Password001"
1276
- # When I run the application
1277
- # Then The application should fail
1278
- # And I should see an error message containing "MySQL access denied for user"
115
+
116
+ Scenario: User wants to sync (No Configs) (Database) (Default Parameters) (Specifies Credentials) (Default Date ID)
117
+ Given I am going to run the program
118
+ And The database is running
119
+ And Synchronization points exist
120
+ And I am going to run a sync
121
+ And Configurations exist at the default location
122
+ And I specify "--no-sync-configs"
123
+ And I specify "--sync-data"
124
+ And I specify valid database credentials
125
+ And I input the following "Password001"
126
+ And I select the option "n"
127
+ When I run the application
128
+ Then The synchronization should be successful
129
+ And The databases should be updated
130
+ And The config files should be unchanged
131
+ Scenario: User wants to sync (No Configs) (Database) (Default Parameters) (Specifies Credentials) (Specifies Date ID)
132
+ Given I am going to run the program
133
+ And The database is running
134
+ And Synchronization points exist
135
+ And I am going to run a sync
136
+ And Configurations exist at the default location
137
+ And I specify "--no-sync-configs"
138
+ And I specify "--sync-data"
139
+ And I specify "--date-id 1"
140
+ And I specify valid database credentials
141
+ And I input the following "Password001"
142
+ And I select the option "n"
143
+ When I run the application
144
+ Then The synchronization should be successful
145
+ And The databases should be updated
146
+ And The config files should be unchanged
147
+ Scenario: User wants to sync (No Configs) (Database) (Specifies Host only) (Specifies Credentials) (Default Date ID)
148
+ Given I am going to run the program
149
+ And The database is running
150
+ And Synchronization points exist
151
+ And I am going to run a sync
152
+ And Configurations exist at the default location
153
+ And I specify "--no-sync-configs"
154
+ And I specify "--sync-data"
155
+ And I specify "--host 127.0.0.1"
156
+ And I specify valid database credentials
157
+ And I input the following "Password001"
158
+ And I select the option "n"
159
+ When I run the application
160
+ Then The synchronization should be successful
161
+ And The databases should be updated
162
+ And The config files should be unchanged
163
+ Scenario: User wants to sync (No Configs) (Database) (Specifies Host only) (Specifies Credentials) (Specifies Date ID)
164
+ Given I am going to run the program
165
+ And The database is running
166
+ And Synchronization points exist
167
+ And I am going to run a sync
168
+ And Configurations exist at the default location
169
+ And I specify "--no-sync-configs"
170
+ And I specify "--sync-data"
171
+ And I specify "--host 127.0.0.1"
172
+ And I specify "--date-id 1"
173
+ And I specify valid database credentials
174
+ And I input the following "Password001"
175
+ And I select the option "n"
176
+ When I run the application
177
+ Then The synchronization should be successful
178
+ And The databases should be updated
179
+ And The config files should be unchanged
180
+ Scenario: User wants to sync (No Configs) (Database) (Specifies Port only) (Specifies Credentials) (Default Date ID)
181
+ Given I am going to run the program
182
+ And The database is running
183
+ And Synchronization points exist
184
+ And I am going to run a sync
185
+ And Configurations exist at the default location
186
+ And I specify "--no-sync-configs"
187
+ And I specify "--sync-data"
188
+ And I specify "--port 3306"
189
+ And I specify valid database credentials
190
+ And I input the following "Password001"
191
+ And I select the option "n"
192
+ When I run the application
193
+ Then The synchronization should be successful
194
+ And The databases should be updated
195
+ And The config files should be unchanged
196
+ Scenario: User wants to sync (No Configs) (Database) (Specifies Port only) (Specifies Credentials) (Specifies Date ID)
197
+ Given I am going to run the program
198
+ And The database is running
199
+ And Synchronization points exist
200
+ And I am going to run a sync
201
+ And Configurations exist at the default location
202
+ And I specify "--no-sync-configs"
203
+ And I specify "--sync-data"
204
+ And I specify "--port 3306"
205
+ And I specify "--date-id 1"
206
+ And I specify valid database credentials
207
+ And I input the following "Password001"
208
+ And I select the option "n"
209
+ When I run the application
210
+ Then The synchronization should be successful
211
+ And The databases should be updated
212
+ And The config files should be unchanged
213
+ Scenario: User wants to sync (No Configs) (Database) (Specifies Parameters) (Specifies Credentials) (Default Date ID)
214
+ Given I am going to run the program
215
+ And The database is running
216
+ And Synchronization points exist
217
+ And I am going to run a sync
218
+ And Configurations exist at the default location
219
+ And I specify "--no-sync-configs"
220
+ And I specify "--sync-data"
221
+ And I specify "--host 127.0.0.1"
222
+ And I specify "--port 3306"
223
+ And I specify valid database credentials
224
+ And I input the following "Password001"
225
+ And I select the option "n"
226
+ When I run the application
227
+ Then The synchronization should be successful
228
+ And The databases should be updated
229
+ And The config files should be unchanged
230
+ Scenario: User wants to sync (No Configs) (Database) (Specifies Parameters) (Specifies Credentials) (Specifies Date ID)
231
+ Given I am going to run the program
232
+ And The database is running
233
+ And Synchronization points exist
234
+ And I am going to run a sync
235
+ And Configurations exist at the default location
236
+ And I specify "--no-sync-configs"
237
+ And I specify "--sync-data"
238
+ And I specify "--date-id 1"
239
+ And I specify "--host 127.0.0.1"
240
+ And I specify "--port 3306"
241
+ And I specify valid database credentials
242
+ And I input the following "Password001"
243
+ And I select the option "n"
244
+ When I run the application
245
+ Then The synchronization should be successful
246
+ And The databases should be updated
247
+ And The config files should be unchanged
248
+
249
+ Scenario: User wants to sync (Configs) (Database) (Default Sync Dir) (Default Parameters) (Specifies Credentials) (Default Date ID)
250
+ Given I am going to run the program
251
+ And The database is running
252
+ And Synchronization points exist
253
+ And Configurations exist at the default location
254
+ And I am going to run a sync
255
+ And I specify "--sync-data"
256
+ And I specify valid database credentials
257
+ And I input the following "Password001"
258
+ When I run the application
259
+ Then The synchronization should be successful
260
+ And The databases should be updated
261
+ And The config files should be updated
262
+ Scenario: User wants to sync (Configs) (Database) (Default Sync Dir) (Default Parameters) (Specifies Credentials) (Specifies Date ID)
263
+ Given I am going to run the program
264
+ And The database is running
265
+ And Synchronization points exist
266
+ And Configurations exist at the default location
267
+ And I am going to run a sync
268
+ And I specify "--sync-data"
269
+ And I specify "--date-id 1"
270
+ And I specify valid database credentials
271
+ And I input the following "Password001"
272
+ When I run the application
273
+ Then The synchronization should be successful
274
+ And The databases should be updated
275
+ And The config files should be updated
276
+ Scenario: User wants to sync (Configs) (Database) (Default Sync Dir) (Specifies Host only) (Specifies Credentials) (Default Date ID)
277
+ Given I am going to run the program
278
+ And The database is running
279
+ And Synchronization points exist
280
+ And Configurations exist at the default location
281
+ And I am going to run a sync
282
+ And I specify "--sync-data"
283
+ And I specify "--host 127.0.0.1"
284
+ And I specify valid database credentials
285
+ And I input the following "Password001"
286
+ When I run the application
287
+ Then The synchronization should be successful
288
+ And The databases should be updated
289
+ And The config files should be updated
290
+ Scenario: User wants to sync (Configs) (Database) (Default Sync Dir) (Specifies Host only) (Specifies Credentials) (Specifies Date ID)
291
+ Given I am going to run the program
292
+ And The database is running
293
+ And Synchronization points exist
294
+ And Configurations exist at the default location
295
+ And I am going to run a sync
296
+ And I specify "--sync-data"
297
+ And I specify "--host 127.0.0.1"
298
+ And I specify "--date-id 1"
299
+ And I specify valid database credentials
300
+ And I input the following "Password001"
301
+ When I run the application
302
+ Then The synchronization should be successful
303
+ And The databases should be updated
304
+ And The config files should be updated
305
+ Scenario: User wants to sync (Configs) (Database) (Default Sync Dir) (Specifies Port only) (Specifies Credentials) (Default Date ID)
306
+ Given I am going to run the program
307
+ And The database is running
308
+ And Synchronization points exist
309
+ And Configurations exist at the default location
310
+ And I am going to run a sync
311
+ And I specify "--sync-data"
312
+ And I specify "--port 3306"
313
+ And I specify valid database credentials
314
+ And I input the following "Password001"
315
+ When I run the application
316
+ Then The synchronization should be successful
317
+ And The databases should be updated
318
+ And The config files should be updated
319
+ Scenario: User wants to sync (Configs) (Database) (Default Sync Dir) (Specifies Port only) (Specifies Credentials) (Specifies Date ID)
320
+ Given I am going to run the program
321
+ And The database is running
322
+ And Synchronization points exist
323
+ And Configurations exist at the default location
324
+ And I am going to run a sync
325
+ And I specify "--sync-data"
326
+ And I specify "--port 3306"
327
+ And I specify "--date-id 1"
328
+ And I specify valid database credentials
329
+ And I input the following "Password001"
330
+ When I run the application
331
+ Then The synchronization should be successful
332
+ And The databases should be updated
333
+ And The config files should be updated
334
+ Scenario: User wants to sync (Configs) (Database) (Default Sync Dir) (Specifies Parameters) (Specifies Credentials) (Default Date ID)
335
+ Given I am going to run the program
336
+ And The database is running
337
+ And Synchronization points exist
338
+ And Configurations exist at the default location
339
+ And I am going to run a sync
340
+ And I specify "--sync-data"
341
+ And I specify "--host 127.0.0.1"
342
+ And I specify "--port 3306"
343
+ And I specify valid database credentials
344
+ And I input the following "Password001"
345
+ When I run the application
346
+ Then The synchronization should be successful
347
+ And The databases should be updated
348
+ And The config files should be updated
349
+ Scenario: User wants to sync (Configs) (Database) (Default Sync Dir) (Specifies Parameters) (Specifies Credentials) (Specifies Date ID)
350
+ Given I am going to run the program
351
+ And The database is running
352
+ And Synchronization points exist
353
+ And Configurations exist at the default location
354
+ And I am going to run a sync
355
+ And I specify "--sync-data"
356
+ And I specify "--date-id 1"
357
+ And I specify "--host 127.0.0.1"
358
+ And I specify "--port 3306"
359
+ And I specify valid database credentials
360
+ And I input the following "Password001"
361
+ When I run the application
362
+ Then The synchronization should be successful
363
+ And The databases should be updated
364
+ And The config files should be updated
365
+
366
+ Scenario: User wants to sync (Configs) (Database) (Specifies Sync Dir) (Default Parameters) (Specifies Credentials) (Default Date ID)
367
+ Given I am going to run the program
368
+ And The database is running
369
+ And Synchronization points exist
370
+ And Configurations exist at "/tmp/insxsync"
371
+ And I am going to run a sync
372
+ And I specify "--sync-data"
373
+ And I specify "--sync-dir /tmp/insxsync"
374
+ And I specify valid database credentials
375
+ And I input the following "Password001"
376
+ When I run the application
377
+ Then The synchronization should be successful
378
+ And The databases should be updated
379
+ And The config files should be updated
380
+ Scenario: User wants to sync (Configs) (Database) (Specifies Sync Dir) (Default Parameters) (Specifies Credentials) (Specifies Date ID)
381
+ Given I am going to run the program
382
+ And The database is running
383
+ And Synchronization points exist
384
+ And Configurations exist at "/tmp/insxsync"
385
+ And I am going to run a sync
386
+ And I specify "--sync-data"
387
+ And I specify "--sync-dir /tmp/insxsync"
388
+ And I specify "--date-id 1"
389
+ And I specify valid database credentials
390
+ And I input the following "Password001"
391
+ When I run the application
392
+ Then The synchronization should be successful
393
+ And The databases should be updated
394
+ And The config files should be updated
395
+ Scenario: User wants to sync (Configs) (Database) (Specifies Sync Dir) (Specifies Host only) (Specifies Credentials) (Default Date ID)
396
+ Given I am going to run the program
397
+ And The database is running
398
+ And Synchronization points exist
399
+ And Configurations exist at "/tmp/insxsync"
400
+ And I am going to run a sync
401
+ And I specify "--sync-data"
402
+ And I specify "--sync-dir /tmp/insxsync"
403
+ And I specify "--host 127.0.0.1"
404
+ And I specify valid database credentials
405
+ And I input the following "Password001"
406
+ When I run the application
407
+ Then The synchronization should be successful
408
+ And The databases should be updated
409
+ And The config files should be updated
410
+ Scenario: User wants to sync (Configs) (Database) (Specifies Sync Dir) (Specifies Host only) (Specifies Credentials) (Specifies Date ID)
411
+ Given I am going to run the program
412
+ And The database is running
413
+ And Synchronization points exist
414
+ And Configurations exist at "/tmp/insxsync"
415
+ And I am going to run a sync
416
+ And I specify "--sync-data"
417
+ And I specify "--sync-dir /tmp/insxsync"
418
+ And I specify "--host 127.0.0.1"
419
+ And I specify "--date-id 1"
420
+ And I specify valid database credentials
421
+ And I input the following "Password001"
422
+ When I run the application
423
+ Then The synchronization should be successful
424
+ And The databases should be updated
425
+ And The config files should be updated
426
+ Scenario: User wants to sync (Configs) (Database) (Specifies Sync Dir) (Specifies Port only) (Specifies Credentials) (Default Date ID)
427
+ Given I am going to run the program
428
+ And The database is running
429
+ And Synchronization points exist
430
+ And Configurations exist at "/tmp/insxsync"
431
+ And I am going to run a sync
432
+ And I specify "--sync-data"
433
+ And I specify "--sync-dir /tmp/insxsync"
434
+ And I specify "--port 3306"
435
+ And I specify valid database credentials
436
+ And I input the following "Password001"
437
+ When I run the application
438
+ Then The synchronization should be successful
439
+ And The databases should be updated
440
+ And The config files should be updated
441
+ Scenario: User wants to sync (Configs) (Database) (Specifies Sync Dir) (Specifies Port only) (Specifies Credentials) (Specifies Date ID)
442
+ Given I am going to run the program
443
+ And The database is running
444
+ And Synchronization points exist
445
+ And Configurations exist at "/tmp/insxsync"
446
+ And I am going to run a sync
447
+ And I specify "--sync-data"
448
+ And I specify "--sync-dir /tmp/insxsync"
449
+ And I specify "--port 3306"
450
+ And I specify "--date-id 1"
451
+ And I specify valid database credentials
452
+ And I input the following "Password001"
453
+ When I run the application
454
+ Then The synchronization should be successful
455
+ And The databases should be updated
456
+ And The config files should be updated
457
+ Scenario: User wants to sync (Configs) (Database) (Specifies Sync Dir) (Specifies Parameters) (Specifies Credentials) (Default Date ID)
458
+ Given I am going to run the program
459
+ And The database is running
460
+ And Synchronization points exist
461
+ And Configurations exist at "/tmp/insxsync"
462
+ And I am going to run a sync
463
+ And I specify "--sync-data"
464
+ And I specify "--sync-dir /tmp/insxsync"
465
+ And I specify "--host 127.0.0.1"
466
+ And I specify "--port 3306"
467
+ And I specify valid database credentials
468
+ And I input the following "Password001"
469
+ When I run the application
470
+ Then The synchronization should be successful
471
+ And The databases should be updated
472
+ And The config files should be updated
473
+ Scenario: User wants to sync (Configs) (Database) (Specifies Sync Dir) (Specifies Parameters) (Specifies Credentials) (Specifies Date ID)
474
+ Given I am going to run the program
475
+ And The database is running
476
+ And Synchronization points exist
477
+ And Configurations exist at "/tmp/insxsync"
478
+ And I am going to run a sync
479
+ And I specify "--sync-data"
480
+ And I specify "--sync-dir /tmp/insxsync"
481
+ And I specify "--date-id 1"
482
+ And I specify "--host 127.0.0.1"
483
+ And I specify "--port 3306"
484
+ And I specify valid database credentials
485
+ And I input the following "Password001"
486
+ When I run the application
487
+ Then The synchronization should be successful
488
+ And The databases should be updated
489
+ And The config files should be updated
490
+
491
+ ################################################
492
+ # Configuration Directory Does not Exist
493
+ # Sync Point Exists
494
+ # Database connection works
495
+ ################################################
496
+ Scenario: User wants to sync (Configs) (No Database) (Default Sync Dir) (Default Date ID)
497
+ Given I am going to run the program
498
+ And The database is running
499
+ And Synchronization points exist
500
+ And Configurations do not exist at the default location
501
+ And I am going to run a sync
502
+ And I specify valid database credentials
503
+ And I input the following "Password001"
504
+ When I run the application
505
+ Then The application should fail
506
+ And I should see an error message containing "Synchronization directory '/var/www/exchange_app/data/subdomain' does not exist. Exiting..."
507
+ Scenario: User wants to sync (Configs) (No Database) (Default Sync Dir) (Specifies Date ID)
508
+ Given I am going to run the program
509
+ And The database is running
510
+ And Synchronization points exist
511
+ And Configurations do not exist at the default location
512
+ And I am going to run a sync
513
+ And I specify valid database credentials
514
+ And I specify "--date-id 1"
515
+ And I input the following "Password001"
516
+ When I run the application
517
+ Then The application should fail
518
+ And I should see an error message containing "Synchronization directory '/var/www/exchange_app/data/subdomain' does not exist. Exiting..."
519
+ Scenario: User wants to sync (Configs) (No Database) (Specifies Sync Dir) (Default Date ID)
520
+ Given I am going to run the program
521
+ And The database is running
522
+ And Synchronization points exist
523
+ And Configurations do not exist at "/tmp/insxsync"
524
+ And I am going to run a sync
525
+ And I specify valid database credentials
526
+ And I specify "--sync-dir /tmp/insxsync"
527
+ And I input the following "Password001"
528
+ When I run the application
529
+ Then The application should fail
530
+ And I should see an error message containing "Argument Error: Synchronization directory does not exist. Exiting..."
531
+ Scenario: User wants to sync (Configs) (No Database) (Specifies Sync Dir) (Specifies Date ID)
532
+ Given I am going to run the program
533
+ And The database is running
534
+ And Synchronization points exist
535
+ And Configurations do not exist at "/tmp/insxsync"
536
+ And I am going to run a sync
537
+ And I specify valid database credentials
538
+ And I specify "--date-id 1"
539
+ And I specify "--sync-dir /tmp/insxsync"
540
+ And I input the following "Password001"
541
+ When I run the application
542
+ Then The application should fail
543
+ And I should see an error message containing "Argument Error: Synchronization directory does not exist. Exiting..."
544
+
545
+ Scenario: User wants to sync (Configs) (Database) (Default Sync Dir) (Default Parameters) (Specifies Credentials) (Default Date ID)
546
+ Given I am going to run the program
547
+ And The database is running
548
+ And Synchronization points exist
549
+ And Configurations do not exist at the default location
550
+ And I am going to run a sync
551
+ And I specify "--sync-data"
552
+ And I specify valid database credentials
553
+ And I input the following "Password001"
554
+ When I run the application
555
+ Then The application should fail
556
+ And I should see an error message containing "Synchronization directory '/var/www/exchange_app/data/subdomain' does not exist. Exiting..."
557
+ Scenario: User wants to sync (Configs) (Database) (Default Sync Dir) (Default Parameters) (Specifies Credentials) (Specifies Date ID)
558
+ Given I am going to run the program
559
+ And The database is running
560
+ And Synchronization points exist
561
+ And Configurations do not exist at the default location
562
+ And I am going to run a sync
563
+ And I specify "--sync-data"
564
+ And I specify "--date-id 1"
565
+ And I specify valid database credentials
566
+ And I input the following "Password001"
567
+ When I run the application
568
+ Then The application should fail
569
+ And I should see an error message containing "Synchronization directory '/var/www/exchange_app/data/subdomain' does not exist. Exiting..."
570
+ Scenario: User wants to sync (Configs) (Database) (Default Sync Dir) (Specifies Host only) (Specifies Credentials) (Default Date ID)
571
+ Given I am going to run the program
572
+ And The database is running
573
+ And Synchronization points exist
574
+ And Configurations do not exist at the default location
575
+ And I am going to run a sync
576
+ And I specify "--sync-data"
577
+ And I specify "--host 127.0.0.1"
578
+ And I specify valid database credentials
579
+ And I input the following "Password001"
580
+ When I run the application
581
+ Then The application should fail
582
+ And I should see an error message containing "Synchronization directory '/var/www/exchange_app/data/subdomain' does not exist. Exiting..."
583
+ Scenario: User wants to sync (Configs) (Database) (Default Sync Dir) (Specifies Host only) (Specifies Credentials) (Specifies Date ID)
584
+ Given I am going to run the program
585
+ And The database is running
586
+ And Synchronization points exist
587
+ And Configurations do not exist at the default location
588
+ And I am going to run a sync
589
+ And I specify "--sync-data"
590
+ And I specify "--host 127.0.0.1"
591
+ And I specify "--date-id 1"
592
+ And I specify valid database credentials
593
+ And I input the following "Password001"
594
+ When I run the application
595
+ Then The application should fail
596
+ And I should see an error message containing "Synchronization directory '/var/www/exchange_app/data/subdomain' does not exist. Exiting..."
597
+ Scenario: User wants to sync (Configs) (Database) (Default Sync Dir) (Specifies Port only) (Specifies Credentials) (Default Date ID)
598
+ Given I am going to run the program
599
+ And The database is running
600
+ And Synchronization points exist
601
+ And Configurations do not exist at the default location
602
+ And I am going to run a sync
603
+ And I specify "--sync-data"
604
+ And I specify "--port 3306"
605
+ And I specify valid database credentials
606
+ And I input the following "Password001"
607
+ When I run the application
608
+ Then The application should fail
609
+ And I should see an error message containing "Synchronization directory '/var/www/exchange_app/data/subdomain' does not exist. Exiting..."
610
+ Scenario: User wants to sync (Configs) (Database) (Default Sync Dir) (Specifies Port only) (Specifies Credentials) (Specifies Date ID)
611
+ Given I am going to run the program
612
+ And The database is running
613
+ And Synchronization points exist
614
+ And Configurations do not exist at the default location
615
+ And I am going to run a sync
616
+ And I specify "--sync-data"
617
+ And I specify "--port 3306"
618
+ And I specify "--date-id 1"
619
+ And I specify valid database credentials
620
+ And I input the following "Password001"
621
+ When I run the application
622
+ Then The application should fail
623
+ And I should see an error message containing "Synchronization directory '/var/www/exchange_app/data/subdomain' does not exist. Exiting..."
624
+ Scenario: User wants to sync (Configs) (Database) (Default Sync Dir) (Specifies Parameters) (Specifies Credentials) (Default Date ID)
625
+ Given I am going to run the program
626
+ And The database is running
627
+ And Synchronization points exist
628
+ And Configurations do not exist at the default location
629
+ And I am going to run a sync
630
+ And I specify "--sync-data"
631
+ And I specify "--host 127.0.0.1"
632
+ And I specify "--port 3306"
633
+ And I specify valid database credentials
634
+ And I input the following "Password001"
635
+ When I run the application
636
+ Then The application should fail
637
+ And I should see an error message containing "Synchronization directory '/var/www/exchange_app/data/subdomain' does not exist. Exiting..."
638
+ Scenario: User wants to sync (Configs) (Database) (Default Sync Dir) (Specifies Parameters) (Specifies Credentials) (Specifies Date ID)
639
+ Given I am going to run the program
640
+ And The database is running
641
+ And Synchronization points exist
642
+ And Configurations do not exist at the default location
643
+ And I am going to run a sync
644
+ And I specify "--sync-data"
645
+ And I specify "--date-id 1"
646
+ And I specify "--host 127.0.0.1"
647
+ And I specify "--port 3306"
648
+ And I specify valid database credentials
649
+ And I input the following "Password001"
650
+ When I run the application
651
+ Then The application should fail
652
+ And I should see an error message containing "Synchronization directory '/var/www/exchange_app/data/subdomain' does not exist. Exiting..."
653
+
654
+ Scenario: User wants to sync (Configs) (Database) (Specifies Sync Dir) (Default Parameters) (Specifies Credentials) (Default Date ID)
655
+ Given I am going to run the program
656
+ And The database is running
657
+ And Synchronization points exist
658
+ And Configurations do not exist at "/tmp/insxsync"
659
+ And I am going to run a sync
660
+ And I specify "--sync-data"
661
+ And I specify "--sync-dir /tmp/insxsync"
662
+ And I specify valid database credentials
663
+ And I input the following "Password001"
664
+ When I run the application
665
+ Then The application should fail
666
+ And I should see an error message containing "Argument Error: Synchronization directory does not exist. Exiting..."
667
+ Scenario: User wants to sync (Configs) (Database) (Specifies Sync Dir) (Default Parameters) (Specifies Credentials) (Specifies Date ID)
668
+ Given I am going to run the program
669
+ And The database is running
670
+ And Synchronization points exist
671
+ And Configurations do not exist at "/tmp/insxsync"
672
+ And I am going to run a sync
673
+ And I specify "--sync-data"
674
+ And I specify "--sync-dir /tmp/insxsync"
675
+ And I specify "--date-id 1"
676
+ And I specify valid database credentials
677
+ And I input the following "Password001"
678
+ When I run the application
679
+ Then The application should fail
680
+ And I should see an error message containing "Argument Error: Synchronization directory does not exist. Exiting..."
681
+ Scenario: User wants to sync (Configs) (Database) (Specifies Sync Dir) (Specifies Host only) (Specifies Credentials) (Default Date ID)
682
+ Given I am going to run the program
683
+ And The database is running
684
+ And Synchronization points exist
685
+ And Configurations do not exist at "/tmp/insxsync"
686
+ And I am going to run a sync
687
+ And I specify "--sync-data"
688
+ And I specify "--sync-dir /tmp/insxsync"
689
+ And I specify "--host 127.0.0.1"
690
+ And I specify valid database credentials
691
+ And I input the following "Password001"
692
+ When I run the application
693
+ Then The application should fail
694
+ And I should see an error message containing "Argument Error: Synchronization directory does not exist. Exiting..."
695
+ Scenario: User wants to sync (Configs) (Database) (Specifies Sync Dir) (Specifies Host only) (Specifies Credentials) (Specifies Date ID)
696
+ Given I am going to run the program
697
+ And The database is running
698
+ And Synchronization points exist
699
+ And Configurations do not exist at "/tmp/insxsync"
700
+ And I am going to run a sync
701
+ And I specify "--sync-data"
702
+ And I specify "--sync-dir /tmp/insxsync"
703
+ And I specify "--host 127.0.0.1"
704
+ And I specify "--date-id 1"
705
+ And I specify valid database credentials
706
+ And I input the following "Password001"
707
+ When I run the application
708
+ Then The application should fail
709
+ And I should see an error message containing "Argument Error: Synchronization directory does not exist. Exiting..."
710
+ Scenario: User wants to sync (Configs) (Database) (Specifies Sync Dir) (Specifies Port only) (Specifies Credentials) (Default Date ID)
711
+ Given I am going to run the program
712
+ And The database is running
713
+ And Synchronization points exist
714
+ And Configurations do not exist at "/tmp/insxsync"
715
+ And I am going to run a sync
716
+ And I specify "--sync-data"
717
+ And I specify "--sync-dir /tmp/insxsync"
718
+ And I specify "--port 3306"
719
+ And I specify valid database credentials
720
+ And I input the following "Password001"
721
+ When I run the application
722
+ Then The application should fail
723
+ And I should see an error message containing "Argument Error: Synchronization directory does not exist. Exiting..."
724
+ Scenario: User wants to sync (Configs) (Database) (Specifies Sync Dir) (Specifies Port only) (Specifies Credentials) (Specifies Date ID)
725
+ Given I am going to run the program
726
+ And The database is running
727
+ And Synchronization points exist
728
+ And Configurations do not exist at "/tmp/insxsync"
729
+ And I am going to run a sync
730
+ And I specify "--sync-data"
731
+ And I specify "--sync-dir /tmp/insxsync"
732
+ And I specify "--port 3306"
733
+ And I specify "--date-id 1"
734
+ And I specify valid database credentials
735
+ And I input the following "Password001"
736
+ When I run the application
737
+ Then The application should fail
738
+ And I should see an error message containing "Argument Error: Synchronization directory does not exist. Exiting..."
739
+ Scenario: User wants to sync (Configs) (Database) (Specifies Sync Dir) (Specifies Parameters) (Specifies Credentials) (Default Date ID)
740
+ Given I am going to run the program
741
+ And The database is running
742
+ And Synchronization points exist
743
+ And Configurations do not exist at "/tmp/insxsync"
744
+ And I am going to run a sync
745
+ And I specify "--sync-data"
746
+ And I specify "--sync-dir /tmp/insxsync"
747
+ And I specify "--host 127.0.0.1"
748
+ And I specify "--port 3306"
749
+ And I specify valid database credentials
750
+ And I input the following "Password001"
751
+ When I run the application
752
+ Then The application should fail
753
+ And I should see an error message containing "Argument Error: Synchronization directory does not exist. Exiting..."
754
+ Scenario: User wants to sync (Configs) (Database) (Specifies Sync Dir) (Specifies Parameters) (Specifies Credentials) (Specifies Date ID)
755
+ Given I am going to run the program
756
+ And The database is running
757
+ And Synchronization points exist
758
+ And Configurations do not exist at "/tmp/insxsync"
759
+ And I am going to run a sync
760
+ And I specify "--sync-data"
761
+ And I specify "--sync-dir /tmp/insxsync"
762
+ And I specify "--date-id 1"
763
+ And I specify "--host 127.0.0.1"
764
+ And I specify "--port 3306"
765
+ And I specify valid database credentials
766
+ And I input the following "Password001"
767
+ When I run the application
768
+ Then The application should fail
769
+ And I should see an error message containing "Argument Error: Synchronization directory does not exist. Exiting..."
770
+
771
+ #################################################
772
+ # Configuration Directory Exists
773
+ # Sync Point Does not Exist
774
+ # Database connection works
775
+ #################################################
776
+ Scenario: User wants to sync (Configs) (No Database) (Default Sync Dir) (Default Date ID)
777
+ Given I am going to run the program
778
+ And The database is running
779
+ And Synchronization points do not exist
780
+ And Configurations exist at the default location
781
+ And I am going to run a sync
782
+ And I specify valid database credentials
783
+ And I input the following "Password001"
784
+ When I run the application
785
+ Then The application should fail
786
+ And I should see an error message containing "No synchronization points exist. Exiting..."
787
+ Scenario: User wants to sync (Configs) (No Database) (Default Sync Dir) (Specifies Date ID)
788
+ Given I am going to run the program
789
+ And The database is running
790
+ And Synchronization points do not exist
791
+ And Configurations exist at the default location
792
+ And I am going to run a sync
793
+ And I specify valid database credentials
794
+ And I specify "--date-id 1"
795
+ And I input the following "Password001"
796
+ When I run the application
797
+ Then The application should fail
798
+ And I should see an error message containing "Specified synchronization point does not exist. Exiting..."
799
+ Scenario: User wants to sync (Configs) (No Database) (Specifies Sync Dir) (Default Date ID)
800
+ Given I am going to run the program
801
+ And The database is running
802
+ And Synchronization points do not exist
803
+ And Configurations exist at "/tmp/insxsync"
804
+ And I am going to run a sync
805
+ And I specify valid database credentials
806
+ And I specify "--sync-dir /tmp/insxsync"
807
+ And I input the following "Password001"
808
+ When I run the application
809
+ Then The application should fail
810
+ And I should see an error message containing "No synchronization points exist. Exiting..."
811
+ Scenario: User wants to sync (Configs) (No Database) (Specifies Sync Dir) (Specifies Date ID)
812
+ Given I am going to run the program
813
+ And The database is running
814
+ And Synchronization points do not exist
815
+ And Configurations exist at "/tmp/insxsync"
816
+ And I am going to run a sync
817
+ And I specify valid database credentials
818
+ And I specify "--date-id 1"
819
+ And I specify "--sync-dir /tmp/insxsync"
820
+ And I input the following "Password001"
821
+ When I run the application
822
+ Then The application should fail
823
+ And I should see an error message containing "Specified synchronization point does not exist. Exiting..."
824
+
825
+ Scenario: User wants to sync (No Configs) (Database) (Default Parameters) (Specifies Credentials) (Default Date ID)
826
+ Given I am going to run the program
827
+ And The database is running
828
+ And Synchronization points do not exist
829
+ And I am going to run a sync
830
+ And I specify "--sync-data"
831
+ And I specify "--no-sync-configs"
832
+ And I specify valid database credentials
833
+ And I input the following "Password001"
834
+ When I run the application
835
+ Then The application should fail
836
+ And I should see an error message containing "No synchronization points exist. Exiting..."
837
+ Scenario: User wants to sync (No Configs) (Database) (Default Parameters) (Specifies Credentials) (Specifies Date ID)
838
+ Given I am going to run the program
839
+ And The database is running
840
+ And Synchronization points do not exist
841
+ And I am going to run a sync
842
+ And I specify "--sync-data"
843
+ And I specify "--no-sync-configs"
844
+ And I specify "--date-id 1"
845
+ And I specify valid database credentials
846
+ And I input the following "Password001"
847
+ When I run the application
848
+ Then The application should fail
849
+ And I should see an error message containing "Specified synchronization point does not exist. Exiting..."
850
+ Scenario: User wants to sync (No Configs) (Database) (Specifies Host only) (Specifies Credentials) (Default Date ID)
851
+ Given I am going to run the program
852
+ And The database is running
853
+ And Synchronization points do not exist
854
+ And I am going to run a sync
855
+ And I specify "--sync-data"
856
+ And I specify "--no-sync-configs"
857
+ And I specify "--host 127.0.0.1"
858
+ And I specify valid database credentials
859
+ And I input the following "Password001"
860
+ When I run the application
861
+ Then The application should fail
862
+ And I should see an error message containing "No synchronization points exist. Exiting..."
863
+ Scenario: User wants to sync (No Configs) (Database) (Specifies Host only) (Specifies Credentials) (Specifies Date ID)
864
+ Given I am going to run the program
865
+ And The database is running
866
+ And Synchronization points do not exist
867
+ And I am going to run a sync
868
+ And I specify "--sync-data"
869
+ And I specify "--no-sync-configs"
870
+ And I specify "--host 127.0.0.1"
871
+ And I specify "--date-id 1"
872
+ And I specify valid database credentials
873
+ And I input the following "Password001"
874
+ When I run the application
875
+ Then The application should fail
876
+ And I should see an error message containing "Specified synchronization point does not exist. Exiting..."
877
+ Scenario: User wants to sync (No Configs) (Database) (Specifies Port only) (Specifies Credentials) (Default Date ID)
878
+ Given I am going to run the program
879
+ And The database is running
880
+ And Synchronization points do not exist
881
+ And I am going to run a sync
882
+ And I specify "--sync-data"
883
+ And I specify "--no-sync-configs"
884
+ And I specify "--port 3306"
885
+ And I specify valid database credentials
886
+ And I input the following "Password001"
887
+ When I run the application
888
+ Then The application should fail
889
+ And I should see an error message containing "No synchronization points exist. Exiting..."
890
+ Scenario: User wants to sync (No Configs) (Database) (Specifies Port only) (Specifies Credentials) (Specifies Date ID)
891
+ Given I am going to run the program
892
+ And The database is running
893
+ And Synchronization points do not exist
894
+ And I am going to run a sync
895
+ And I specify "--sync-data"
896
+ And I specify "--no-sync-configs"
897
+ And I specify "--port 3306"
898
+ And I specify "--date-id 1"
899
+ And I specify valid database credentials
900
+ And I input the following "Password001"
901
+ When I run the application
902
+ Then The application should fail
903
+ And I should see an error message containing "Specified synchronization point does not exist. Exiting..."
904
+ Scenario: User wants to sync (No Configs) (Database) (Specifies Parameters) (Specifies Credentials) (Default Date ID)
905
+ Given I am going to run the program
906
+ And The database is running
907
+ And Synchronization points do not exist
908
+ And I am going to run a sync
909
+ And I specify "--sync-data"
910
+ And I specify "--no-sync-configs"
911
+ And I specify "--host 127.0.0.1"
912
+ And I specify "--port 3306"
913
+ And I specify valid database credentials
914
+ And I input the following "Password001"
915
+ When I run the application
916
+ Then The application should fail
917
+ And I should see an error message containing "No synchronization points exist. Exiting..."
918
+ Scenario: User wants to sync (No Configs) (Database) (Specifies Parameters) (Specifies Credentials) (Specifies Date ID)
919
+ Given I am going to run the program
920
+ And The database is running
921
+ And Synchronization points do not exist
922
+ And I am going to run a sync
923
+ And I specify "--sync-data"
924
+ And I specify "--no-sync-configs"
925
+ And I specify "--date-id 1"
926
+ And I specify "--host 127.0.0.1"
927
+ And I specify "--port 3306"
928
+ And I specify valid database credentials
929
+ And I input the following "Password001"
930
+ When I run the application
931
+ Then The application should fail
932
+ And I should see an error message containing "Specified synchronization point does not exist. Exiting..."
933
+
934
+ Scenario: User wants to sync (Configs) (Database) (Default Sync Dir) (Default Parameters) (Specifies Credentials) (Default Date ID)
935
+ Given I am going to run the program
936
+ And The database is running
937
+ And Synchronization points do not exist
938
+ And Configurations exist at the default location
939
+ And I am going to run a sync
940
+ And I specify "--sync-data"
941
+ And I specify valid database credentials
942
+ And I input the following "Password001"
943
+ When I run the application
944
+ Then The application should fail
945
+ And I should see an error message containing "No synchronization points exist. Exiting..."
946
+ Scenario: User wants to sync (Configs) (Database) (Default Sync Dir) (Default Parameters) (Specifies Credentials) (Specifies Date ID)
947
+ Given I am going to run the program
948
+ And The database is running
949
+ And Synchronization points do not exist
950
+ And Configurations exist at the default location
951
+ And I am going to run a sync
952
+ And I specify "--sync-data"
953
+ And I specify "--date-id 1"
954
+ And I specify valid database credentials
955
+ And I input the following "Password001"
956
+ When I run the application
957
+ Then The application should fail
958
+ And I should see an error message containing "Specified synchronization point does not exist. Exiting..."
959
+ Scenario: User wants to sync (Configs) (Database) (Default Sync Dir) (Specifies Host only) (Specifies Credentials) (Default Date ID)
960
+ Given I am going to run the program
961
+ And The database is running
962
+ And Synchronization points do not exist
963
+ And Configurations exist at the default location
964
+ And I am going to run a sync
965
+ And I specify "--sync-data"
966
+ And I specify "--host 127.0.0.1"
967
+ And I specify valid database credentials
968
+ And I input the following "Password001"
969
+ When I run the application
970
+ Then The application should fail
971
+ And I should see an error message containing "No synchronization points exist. Exiting..."
972
+ Scenario: User wants to sync (Configs) (Database) (Default Sync Dir) (Specifies Host only) (Specifies Credentials) (Specifies Date ID)
973
+ Given I am going to run the program
974
+ And The database is running
975
+ And Synchronization points do not exist
976
+ And Configurations exist at the default location
977
+ And I am going to run a sync
978
+ And I specify "--sync-data"
979
+ And I specify "--host 127.0.0.1"
980
+ And I specify "--date-id 1"
981
+ And I specify valid database credentials
982
+ And I input the following "Password001"
983
+ When I run the application
984
+ Then The application should fail
985
+ And I should see an error message containing "Specified synchronization point does not exist. Exiting..."
986
+ Scenario: User wants to sync (Configs) (Database) (Default Sync Dir) (Specifies Port only) (Specifies Credentials) (Default Date ID)
987
+ Given I am going to run the program
988
+ And The database is running
989
+ And Synchronization points do not exist
990
+ And Configurations exist at the default location
991
+ And I am going to run a sync
992
+ And I specify "--sync-data"
993
+ And I specify "--port 3306"
994
+ And I specify valid database credentials
995
+ And I input the following "Password001"
996
+ When I run the application
997
+ Then The application should fail
998
+ And I should see an error message containing "No synchronization points exist. Exiting..."
999
+ Scenario: User wants to sync (Configs) (Database) (Default Sync Dir) (Specifies Port only) (Specifies Credentials) (Specifies Date ID)
1000
+ Given I am going to run the program
1001
+ And The database is running
1002
+ And Synchronization points do not exist
1003
+ And Configurations exist at the default location
1004
+ And I am going to run a sync
1005
+ And I specify "--sync-data"
1006
+ And I specify "--port 3306"
1007
+ And I specify "--date-id 1"
1008
+ And I specify valid database credentials
1009
+ And I input the following "Password001"
1010
+ When I run the application
1011
+ Then The application should fail
1012
+ And I should see an error message containing "Specified synchronization point does not exist. Exiting..."
1013
+ Scenario: User wants to sync (Configs) (Database) (Default Sync Dir) (Specifies Parameters) (Specifies Credentials) (Default Date ID)
1014
+ Given I am going to run the program
1015
+ And The database is running
1016
+ And Synchronization points do not exist
1017
+ And Configurations exist at the default location
1018
+ And I am going to run a sync
1019
+ And I specify "--sync-data"
1020
+ And I specify "--host 127.0.0.1"
1021
+ And I specify "--port 3306"
1022
+ And I specify valid database credentials
1023
+ And I input the following "Password001"
1024
+ When I run the application
1025
+ Then The application should fail
1026
+ And I should see an error message containing "No synchronization points exist. Exiting..."
1027
+ Scenario: User wants to sync (Configs) (Database) (Default Sync Dir) (Specifies Parameters) (Specifies Credentials) (Specifies Date ID)
1028
+ Given I am going to run the program
1029
+ And The database is running
1030
+ And Synchronization points do not exist
1031
+ And Configurations exist at the default location
1032
+ And I am going to run a sync
1033
+ And I specify "--sync-data"
1034
+ And I specify "--date-id 1"
1035
+ And I specify "--host 127.0.0.1"
1036
+ And I specify "--port 3306"
1037
+ And I specify valid database credentials
1038
+ And I input the following "Password001"
1039
+ When I run the application
1040
+ Then The application should fail
1041
+ And I should see an error message containing "Specified synchronization point does not exist. Exiting..."
1042
+
1043
+ Scenario: User wants to sync (Configs) (Database) (Specifies Sync Dir) (Default Parameters) (Specifies Credentials) (Default Date ID)
1044
+ Given I am going to run the program
1045
+ And The database is running
1046
+ And Synchronization points do not exist
1047
+ And Configurations exist at "/tmp/insxsync"
1048
+ And I am going to run a sync
1049
+ And I specify "--sync-data"
1050
+ And I specify "--sync-dir /tmp/insxsync"
1051
+ And I specify valid database credentials
1052
+ And I input the following "Password001"
1053
+ When I run the application
1054
+ Then The application should fail
1055
+ And I should see an error message containing "No synchronization points exist. Exiting..."
1056
+ Scenario: User wants to sync (Configs) (Database) (Specifies Sync Dir) (Default Parameters) (Specifies Credentials) (Specifies Date ID)
1057
+ Given I am going to run the program
1058
+ And The database is running
1059
+ And Synchronization points do not exist
1060
+ And Configurations exist at "/tmp/insxsync"
1061
+ And I am going to run a sync
1062
+ And I specify "--sync-data"
1063
+ And I specify "--sync-dir /tmp/insxsync"
1064
+ And I specify "--date-id 1"
1065
+ And I specify valid database credentials
1066
+ And I input the following "Password001"
1067
+ When I run the application
1068
+ Then The application should fail
1069
+ And I should see an error message containing "Specified synchronization point does not exist. Exiting..."
1070
+ Scenario: User wants to sync (Configs) (Database) (Specifies Sync Dir) (Specifies Host only) (Specifies Credentials) (Default Date ID)
1071
+ Given I am going to run the program
1072
+ And The database is running
1073
+ And Synchronization points do not exist
1074
+ And Configurations exist at "/tmp/insxsync"
1075
+ And I am going to run a sync
1076
+ And I specify "--sync-data"
1077
+ And I specify "--sync-dir /tmp/insxsync"
1078
+ And I specify "--host 127.0.0.1"
1079
+ And I specify valid database credentials
1080
+ And I input the following "Password001"
1081
+ When I run the application
1082
+ Then The application should fail
1083
+ And I should see an error message containing "No synchronization points exist. Exiting..."
1084
+ Scenario: User wants to sync (Configs) (Database) (Specifies Sync Dir) (Specifies Host only) (Specifies Credentials) (Specifies Date ID)
1085
+ Given I am going to run the program
1086
+ And The database is running
1087
+ And Synchronization points do not exist
1088
+ And Configurations exist at "/tmp/insxsync"
1089
+ And I am going to run a sync
1090
+ And I specify "--sync-data"
1091
+ And I specify "--sync-dir /tmp/insxsync"
1092
+ And I specify "--host 127.0.0.1"
1093
+ And I specify "--date-id 1"
1094
+ And I specify valid database credentials
1095
+ And I input the following "Password001"
1096
+ When I run the application
1097
+ Then The application should fail
1098
+ And I should see an error message containing "Specified synchronization point does not exist. Exiting..."
1099
+ Scenario: User wants to sync (Configs) (Database) (Specifies Sync Dir) (Specifies Port only) (Specifies Credentials) (Default Date ID)
1100
+ Given I am going to run the program
1101
+ And The database is running
1102
+ And Synchronization points do not exist
1103
+ And Configurations exist at "/tmp/insxsync"
1104
+ And I am going to run a sync
1105
+ And I specify "--sync-data"
1106
+ And I specify "--sync-dir /tmp/insxsync"
1107
+ And I specify "--port 3306"
1108
+ And I specify valid database credentials
1109
+ And I input the following "Password001"
1110
+ When I run the application
1111
+ Then The application should fail
1112
+ And I should see an error message containing "No synchronization points exist. Exiting..."
1113
+ Scenario: User wants to sync (Configs) (Database) (Specifies Sync Dir) (Specifies Port only) (Specifies Credentials) (Specifies Date ID)
1114
+ Given I am going to run the program
1115
+ And The database is running
1116
+ And Synchronization points do not exist
1117
+ And Configurations exist at "/tmp/insxsync"
1118
+ And I am going to run a sync
1119
+ And I specify "--sync-data"
1120
+ And I specify "--sync-dir /tmp/insxsync"
1121
+ And I specify "--port 3306"
1122
+ And I specify "--date-id 1"
1123
+ And I specify valid database credentials
1124
+ And I input the following "Password001"
1125
+ When I run the application
1126
+ Then The application should fail
1127
+ And I should see an error message containing "Specified synchronization point does not exist. Exiting..."
1128
+ Scenario: User wants to sync (Configs) (Database) (Specifies Sync Dir) (Specifies Parameters) (Specifies Credentials) (Default Date ID)
1129
+ Given I am going to run the program
1130
+ And The database is running
1131
+ And Synchronization points do not exist
1132
+ And Configurations exist at "/tmp/insxsync"
1133
+ And I am going to run a sync
1134
+ And I specify "--sync-data"
1135
+ And I specify "--sync-dir /tmp/insxsync"
1136
+ And I specify "--host 127.0.0.1"
1137
+ And I specify "--port 3306"
1138
+ And I specify valid database credentials
1139
+ And I input the following "Password001"
1140
+ When I run the application
1141
+ Then The application should fail
1142
+ And I should see an error message containing "No synchronization points exist. Exiting..."
1143
+ Scenario: User wants to sync (Configs) (Database) (Specifies Sync Dir) (Specifies Parameters) (Specifies Credentials) (Specifies Date ID)
1144
+ Given I am going to run the program
1145
+ And The database is running
1146
+ And Synchronization points do not exist
1147
+ And Configurations exist at "/tmp/insxsync"
1148
+ And I am going to run a sync
1149
+ And I specify "--sync-data"
1150
+ And I specify "--sync-dir /tmp/insxsync"
1151
+ And I specify "--date-id 1"
1152
+ And I specify "--host 127.0.0.1"
1153
+ And I specify "--port 3306"
1154
+ And I specify valid database credentials
1155
+ And I input the following "Password001"
1156
+ When I run the application
1157
+ Then The application should fail
1158
+ And I should see an error message containing "Specified synchronization point does not exist. Exiting..."
1159
+
1160
+ #################################################
1161
+ # Configuration Directory Exists
1162
+ # Sync Point Exists
1163
+ # Database host does not respond
1164
+ #################################################
1165
+ Scenario: User wants to sync (No Configs) (Database) (Default Parameters) (Specifies Credentials) (Default Date ID)
1166
+ Given I am going to run the program
1167
+ And The database is not running
1168
+ And Synchronization points exist
1169
+ And I am going to run a sync
1170
+ And I specify "--sync-data"
1171
+ And I specify "--no-sync-configs"
1172
+ And I specify valid database credentials
1173
+ And I input the following "Password001"
1174
+ When I run the application
1175
+ Then The application should fail
1176
+ And I should see an error message containing "did not respond."
1177
+ Scenario: User wants to sync (No Configs) (Database) (Specifies Host only) (Specifies Credentials) (Default Date ID)
1178
+ Given I am going to run the program
1179
+ And The database is not running
1180
+ And Synchronization points exist
1181
+ And I am going to run a sync
1182
+ And I specify "--sync-data"
1183
+ And I specify "--no-sync-configs"
1184
+ And I specify "--host 127.0.0.1"
1185
+ And I specify valid database credentials
1186
+ And I input the following "Password001"
1187
+ When I run the application
1188
+ Then The application should fail
1189
+ And I should see an error message containing "did not respond."
1190
+ Scenario: User wants to sync (No Configs) (Database) (Specifies Port only) (Specifies Credentials) (Default Date ID)
1191
+ Given I am going to run the program
1192
+ And The database is not running
1193
+ And Synchronization points exist
1194
+ And I am going to run a sync
1195
+ And I specify "--sync-data"
1196
+ And I specify "--no-sync-configs"
1197
+ And I specify "--port 3306"
1198
+ And I specify valid database credentials
1199
+ And I input the following "Password001"
1200
+ When I run the application
1201
+ Then The application should fail
1202
+ And I should see an error message containing "did not respond."
1203
+ Scenario: User wants to sync (No Configs) (Database) (Specifies Parameters) (Specifies Credentials) (Default Date ID)
1204
+ Given I am going to run the program
1205
+ And The database is not running
1206
+ And Synchronization points exist
1207
+ And I am going to run a sync
1208
+ And I specify "--sync-data"
1209
+ And I specify "--no-sync-configs"
1210
+ And I specify "--host 127.0.0.1"
1211
+ And I specify "--port 3306"
1212
+ And I specify valid database credentials
1213
+ And I input the following "Password001"
1214
+ When I run the application
1215
+ Then The application should fail
1216
+ And I should see an error message containing "did not respond."
1217
+
1218
+ #################################################
1219
+ # Configuration Directory Exists
1220
+ # Sync Point Exists
1221
+ # Database refuses credentials
1222
+ #################################################
1223
+ Scenario: User wants to sync (No Configs) (Database) (Default Parameters) (Specifies Credentials) (Default Date ID)
1224
+ Given I am going to run the program
1225
+ And The database is running
1226
+ And Synchronization points exist
1227
+ And I am going to run a sync
1228
+ And I specify valid database credentials
1229
+ And I specify "--sync-data"
1230
+ And I specify "--no-sync-configs"
1231
+ And I specify invalid database credentials
1232
+ And I input the following "Password001"
1233
+ When I run the application
1234
+ Then The application should fail
1235
+ And I should see an error message containing "MySQL access denied for user"
1236
+ Scenario: User wants to sync (No Configs) (Database) (Specifies Host only) (Specifies Credentials) (Default Date ID)
1237
+ Given I am going to run the program
1238
+ And The database is running
1239
+ And Synchronization points exist
1240
+ And I am going to run a sync
1241
+ And I specify valid database credentials
1242
+ And I specify "--sync-data"
1243
+ And I specify "--no-sync-configs"
1244
+ And I specify "--host 127.0.0.1"
1245
+ And I specify invalid database credentials
1246
+ And I input the following "Password001"
1247
+ When I run the application
1248
+ Then The application should fail
1249
+ And I should see an error message containing "MySQL access denied for user"
1250
+ Scenario: User wants to sync (No Configs) (Database) (Specifies Port only) (Specifies Credentials) (Default Date ID)
1251
+ Given I am going to run the program
1252
+ And The database is running
1253
+ And Synchronization points exist
1254
+ And I am going to run a sync
1255
+ And I specify valid database credentials
1256
+ And I specify "--sync-data"
1257
+ And I specify "--no-sync-configs"
1258
+ And I specify "--port 3306"
1259
+ And I specify invalid database credentials
1260
+ And I input the following "Password001"
1261
+ When I run the application
1262
+ Then The application should fail
1263
+ And I should see an error message containing "MySQL access denied for user"
1264
+ Scenario: User wants to sync (No Configs) (Database) (Specifies Parameters) (Specifies Credentials) (Default Date ID)
1265
+ Given I am going to run the program
1266
+ And The database is running
1267
+ And Synchronization points exist
1268
+ And I am going to run a sync
1269
+ And I specify valid database credentials
1270
+ And I specify "--sync-data"
1271
+ And I specify "--no-sync-configs"
1272
+ And I specify "--host 127.0.0.1"
1273
+ And I specify "--port 3306"
1274
+ And I specify invalid database credentials
1275
+ And I input the following "Password001"
1276
+ When I run the application
1277
+ Then The application should fail
1278
+ And I should see an error message containing "MySQL access denied for user"