diff options
author | Benjamin Brahmer <info@b-brahmer.de> | 2022-03-30 19:22:46 +0200 |
---|---|---|
committer | Benjamin Brahmer <info@b-brahmer.de> | 2022-05-03 21:27:48 +0200 |
commit | 4ed846df35290d0894fc4527261a7277041aea41 (patch) | |
tree | 07711ceb4fc5a26b72cf540af222287f15cb286c | |
parent | 2a0e75e7478cb6101d3f562fb619597b34574a3f (diff) |
fix updated testapi/testing2
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
-rw-r--r-- | tests/api/items.bats | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/api/items.bats b/tests/api/items.bats index f1ca82987..349678966 100644 --- a/tests/api/items.bats +++ b/tests/api/items.bats @@ -60,8 +60,7 @@ teardown() { STATUS_CODE=$(http --ignore-stdin -hdo /tmp/body -a ${user}:${user} PUT ${BASE_URLv1}/feeds/$FEEDID/read newestItemId="$max" 2>&1| grep HTTP/) # client 2 checks for updates since last sync - UPDATED_ITEMS=$(http --ignore-stdin -b -a ${user}:${user} GET ${BASE_URLv1}/items/updated id=$FEEDID lastModified=$SYNC_TIME | tr -d '[:space:]') + UPDATED_ITEMS=($(http --ignore-stdin -b -a ${user}:${user} GET ${BASE_URLv1}/items/updated id=$FEEDID lastModified=$SYNC_TIME | grep -Po '"id":\K([0-9]+)' | tr '\n' ' ')) - echo $UPDATED_ITEMS - false + assert_equal ${#ID_LIST[@]} ${#UPDATED_ITEMS[@]} }
\ No newline at end of file |