Skip to content

Commit

Permalink
fix test with mapping size
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvaingaudan committed Feb 8, 2024
1 parent 94f7d50 commit 7d4e8ef
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fi

# ----------------------------------------------------------
echo "TEST infer mapping and add mapping on ES"
python3 -m arlas.cli.cli indices --config local mapping tests/sample.json --field-mapping track.timestamps.center:date-epoch_second --field-mapping track.timestamps.start:date-epoch_second --field-mapping track.timestamps.end:date-epoch_second --push-on courses
python3 -m arlas.cli.cli indices --config local mapping tests/sample.json --nb-lines 10 --field-mapping track.timestamps.center:date-epoch_second --field-mapping track.timestamps.start:date-epoch_second --field-mapping track.timestamps.end:date-epoch_second --push-on courses
if [ "$? -eq 0" ] ; then
echo "OK: Mapping infered and added"
else
Expand Down Expand Up @@ -56,7 +56,8 @@ sleep 2

# ----------------------------------------------------------
echo "TEST retrieve hits from ES"
if python3 -m arlas.cli.cli indices --config local list | grep courses | grep " 2 "; then
python3 -m arlas.cli.cli indices --config local list
if python3 -m arlas.cli.cli indices --config local list | grep courses | grep " 100 "; then
echo "OK: two hits found"
else
echo "ERROR: hits not found"
Expand Down

0 comments on commit 7d4e8ef

Please sign in to comment.