@@ -61,7 +61,7 @@ Feature: Tests for the osm2pgsql-replication script with property table
6161 Database needs to be imported in --slim mode.
6262 """
6363
64- Scenario : Replication can be initialised for a database in a different schema
64+ Scenario : Replication can be initialised for a database in a different schema (middle-schema)
6565 Given the database schema foobar
6666 Given the input file 'liechtenstein-2013-08-03.osm.pbf'
6767 And the replication service at http://example.com/europe/liechtenstein-updates
@@ -78,6 +78,41 @@ Feature: Tests for the osm2pgsql-replication script with property table
7878 | replication_timestamp | 2013 -08 -03T19 :00 :02Z |
7979
8080
81+ Scenario : Replication can be initialised for a database in a different schema (schema)
82+ Given the database schema foobar
83+ Given the input file 'liechtenstein-2013-08-03.osm.pbf'
84+ And the replication service at http://example.com/europe/liechtenstein-updates
85+ When running osm2pgsql pgsql with parameters
86+ | --slim | --schema =foobar |
87+
88+ And running osm2pgsql-replication
89+ | init | --schema =foobar |
90+
91+ Then table foobar.osm2pgsql_properties contains
92+ | property | value |
93+ | replication_base_url | http ://example .com /europe /liechtenstein -updates |
94+ | replication_sequence_number | 9999999 |
95+ | replication_timestamp | 2013 -08 -03T19 :00 :02Z |
96+
97+
98+ Scenario : Replication can be initialised for a database in a different schema (schema)
99+ Given the database schema foobar
100+ Given the database schema baz
101+ Given the input file 'liechtenstein-2013-08-03.osm.pbf'
102+ And the replication service at http://example.com/europe/liechtenstein-updates
103+ When running osm2pgsql pgsql with parameters
104+ | --slim | --middle -schema =foobar | --schema =baz |
105+
106+ And running osm2pgsql-replication
107+ | init | --middle -schema =foobar | --schema =baz |
108+
109+ Then table foobar.osm2pgsql_properties contains
110+ | property | value |
111+ | replication_base_url | http ://example .com /europe /liechtenstein -updates |
112+ | replication_sequence_number | 9999999 |
113+ | replication_timestamp | 2013 -08 -03T19 :00 :02Z |
114+
115+
81116 Scenario : Replication initialisation will fail for a database in a different schema
82117 Given the database schema foobar
83118 Given the input file 'liechtenstein-2013-08-03.osm.pbf'
0 commit comments