@@ -44,22 +44,26 @@ Feature: Tests for the osm2pgsql-replication script with property table
4444 """
4545 n34 Tamenity=restaurant x77 y45.3
4646 """
47+ And the replication service at http://example.com/europe/liechtenstein-updates
4748 When running osm2pgsql pgsql with parameters
4849 | --slim |
4950
50- Then running osm2pgsql-replication fails with returncode 1
51+ When running osm2pgsql-replication
5152 | init |
53+ Then execution fails with return code 1
5254 And the error output contains
5355 """
5456 Cannot get timestamp from database.
5557 """
5658
5759 Scenario : Replication cannot initialised on non-updatable database
5860 Given the input file 'liechtenstein-2013-08-03.osm.pbf'
61+ And the replication service at http://example.com/europe/liechtenstein-updates
5962 When running osm2pgsql pgsql
6063
61- Then running osm2pgsql-replication fails with returncode 1
64+ When running osm2pgsql-replication
6265 | init |
66+ Then execution fails with return code 1
6367 And the error output contains
6468 """
6569 Database needs to be imported in --slim mode.
@@ -130,8 +134,9 @@ Feature: Tests for the osm2pgsql-replication script with property table
130134 When running osm2pgsql pgsql with parameters
131135 | --slim |
132136
133- Then running osm2pgsql-replication fails with returncode 1
137+ When running osm2pgsql-replication
134138 | init | --middle -schema =foobar |
139+ Then execution fails with return code 1
135140 And the error output contains
136141 """
137142 Database needs to be imported in --slim mode.
@@ -275,8 +280,9 @@ Feature: Tests for the osm2pgsql-replication script with property table
275280 When running osm2pgsql pgsql with parameters
276281 | --slim |
277282
278- Then running osm2pgsql-replication fails with returncode 1
283+ When running osm2pgsql-replication
279284 | update |
285+ Then execution fails with return code 1
280286 And the error output contains
281287 """
282288 Updates not set up correctly.
@@ -354,8 +360,9 @@ Feature: Tests for the osm2pgsql-replication script with property table
354360 When running osm2pgsql pgsql with parameters
355361 | --slim |
356362
357- Then running osm2pgsql-replication fails with returncode 2
363+ When running osm2pgsql-replication
358364 | status | --json |
365+ Then execution fails with return code 2
359366 And the standard output contains
360367 """
361368 "status": 2
@@ -374,7 +381,8 @@ Feature: Tests for the osm2pgsql-replication script with property table
374381
375382 And running osm2pgsql-replication
376383 | status | --json |
377- Then the standard output contains
384+ Then execution is successful
385+ And the standard output contains
378386 """
379387 "status": 0
380388 "server": {"base_url": "http://example.com/europe/liechtenstein-updates", "sequence": 10000001, "timestamp": "2013-10-01T01:00:00Z"
@@ -391,8 +399,9 @@ Feature: Tests for the osm2pgsql-replication script with property table
391399 When running osm2pgsql pgsql with parameters
392400 | --slim |
393401
394- Then running osm2pgsql-replication fails with returncode 1
402+ When running osm2pgsql-replication
395403 | init | --server | http ://example .com /europe /liechtenstein -updates |
404+ Then execution fails with return code 1
396405 And the error output contains
397406 """
398407 The replication service does not have diff files for the requested date.
@@ -408,8 +417,9 @@ Feature: Tests for the osm2pgsql-replication script with property table
408417 When running osm2pgsql pgsql with parameters
409418 | --slim |
410419
411- Then running osm2pgsql-replication fails with returncode 1
420+ When running osm2pgsql-replication
412421 | init |
422+ Then execution fails with return code 1
413423 And the error output contains
414424 """
415425 Cannot load state information for 9999999 from replication service http://example.com/europe/liechtenstein-updates.
0 commit comments