|
30 | 30 | # to make unit test results visible at the end. |
31 | 31 | .PHONY: all |
32 | 32 | all: docker-exec-region docker-exec-input-file \ |
33 | | - docker-exec-replication-w-input-file \ |
34 | 33 | docker-exec-default unit-tests |
35 | 34 |
|
36 | 35 | .PHONY: docker-clean |
@@ -115,44 +114,6 @@ docker-exec-input-file: build-run-docker |
115 | 114 |
|
116 | 115 |
|
117 | 116 |
|
118 | | -.PHONE: docker-exec-replication-w-input-file |
119 | | -docker-exec-replication-w-input-file: build-run-docker |
120 | | - # NOTE: This step tests --replication file for an initial load. |
121 | | - # It does **NOT** test the actual replication process for updating data |
122 | | - # using replication mode. Testing actual replication over time in this format |
123 | | - # will not be trivial. The historic file used (2021-01-13) cannot be used |
124 | | - # to seed a replication process, there is a time limit in upstream software |
125 | | - # that requires more recency to the source data. This also cannot simply |
126 | | - # download a file from Geofabrik, as the "latest" file will not have a diff |
127 | | - # to apply so also will not test the actual replication. |
128 | | - # |
129 | | - # Open a PR, Issue, discussion on https://github.com/rustprooflabs/pgosm-flex |
130 | | - # if you have an idea on how to implement this testing functionality. |
131 | | - |
132 | | - # copy with arbitrary file name to test --input-file |
133 | | - docker cp tests/data/district-of-columbia-2021-01-13.osm.pbf \ |
134 | | - pgosm:/app/output/$(INPUT_FILE_NAME) |
135 | | - |
136 | | - # allow files created in later step to be created |
137 | | - docker exec -it pgosm \ |
138 | | - chown $(CURRENT_UID):$(CURRENT_GID) /app/output/ |
139 | | - # Needed for unit-tests |
140 | | - docker exec -it pgosm \ |
141 | | - chown $(CURRENT_UID):$(CURRENT_GID) /app/docker/ |
142 | | - |
143 | | - # process it, this time without providing the region but directly the filename |
144 | | - docker exec -it \ |
145 | | - -e POSTGRES_PASSWORD=mysecretpassword \ |
146 | | - -e POSTGRES_USER=postgres \ |
147 | | - -u $(CURRENT_UID):$(CURRENT_GID) \ |
148 | | - pgosm python3 docker/pgosm_flex.py \ |
149 | | - --layerset=minimal \ |
150 | | - --ram=$(RAM) \ |
151 | | - --replication \ |
152 | | - --input-file=/app/output/$(INPUT_FILE_NAME) \ |
153 | | - --skip-qgis-style --skip-nested # Make this test run faster |
154 | | - |
155 | | - |
156 | 117 | .PHONE: docker-exec-region |
157 | 118 | docker-exec-region: build-run-docker |
158 | 119 | # copy for simulating region |
|
0 commit comments