Skip to content

Commit 0b8bbf4

Browse files
author
k0rventen
committed
chore: add tests around routes & export file
1 parent e0fa846 commit 0b8bbf4

3 files changed

Lines changed: 11 additions & 2 deletions

File tree

.github/workflows/tests.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,15 @@ jobs:
2020
run: |
2121
cd tests
2222
docker compose up -d influx
23-
docker compose up --build ingester
2423
-
2524
name: run tests
2625
run: |
2726
cd tests
2827
chmod a+x tests.sh
28+
docker compose up --build test-ingester-1
2929
docker compose cp tests.sh influx:/usr/local/bin/
3030
docker compose exec influx "tests.sh"
31+
docker compose up --build test-ingester-2
3132
-
3233
name: cleanup
3334
run: |

tests/docker-compose.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,15 @@ services:
55
restart: always
66
environment:
77
- INFLUXDB_DB=health
8-
ingester:
8+
9+
# test the parsing of routes with an export.xml file
10+
test-ingester-1:
911
build: ../ingester
1012
volumes:
1113
- ./test-export.zip:/export.zip
14+
15+
# test the absence of workout routes and an Export.xml file
16+
test-ingester-2:
17+
build: ../ingester
18+
volumes:
19+
- ./test-export2.zip:/export.zip

tests/test-export2.zip

214 KB
Binary file not shown.

0 commit comments

Comments
 (0)