-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
38 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
from datetime import datetime as dt | ||
from datetime import timedelta | ||
|
||
from typing import Any, Union | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
influxdb==5.3.1 | ||
gpxpy==1.5.0 | ||
gpxpy==1.6.2 | ||
lxml==4.9.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# prep the test env | ||
set -e | ||
|
||
chmod a+x tests.sh | ||
docker compose down | ||
docker compose up -d influx | ||
docker compose build | ||
docker compose exec influx apt update | ||
docker compose exec influx apt install jq -y | ||
docker compose cp tests.sh influx:/usr/local/bin/ | ||
|
||
# for each compose service, run it, check for output, then reset influx | ||
for service in test-ingester-std test-ingester-no-routes-uppercase test-ingester-malformed-xml test-ingester-malformed-xml-2 | ||
do | ||
docker compose up --exit-code-from $service $service | ||
docker compose exec influx tests.sh | ||
done | ||
|
||
docker compose down |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,6 @@ | ||
#!/bin/bash | ||
set -e | ||
influx -database 'health' -format 'json' -execute 'SELECT COUNT(x) FROM (SELECT *,x::INTEGER FROM 'WalkingSpeed' FILL(0))' | jq -e '.results[0].series[0].values[0][1]|contains(400)' | ||
influx -database 'health' -format 'json' -execute 'SELECT COUNT(x) FROM (SELECT *,x::INTEGER FROM 'StepCount' FILL(0))' | jq -e '.results[0].series[0].values[0][1]|contains(399)' | ||
|
||
# Note that this should be executed within the influx container | ||
# docker compose cp tests.sh influx:/usr/local/bin/ | ||
# docker compose exec influx "tests.sh" | ||
measurements=$(influx -database 'health' -execute 'show measurements' | tail -n +4) | ||
for m in $measurements | ||
do | ||
influx -database 'health' -execute 'select(value) from "'$m'" limit 3' | ||
done | ||
influx -format 'json' -execute 'DROP DATABASE health' |