Skip to content

Commit

Permalink
improve tests 2
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Gatto <[email protected]>
  • Loading branch information
outscale-mgo committed Oct 19, 2023
1 parent 610c84c commit db3e4df
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ trap "echo [$MSG_BASE Lot of Arguments FAIL]" ERR
./tests-lot-arg.sh | grep RequestId > /dev/null
echo "[$MSG_BASE Lot of Arguments OK]"

trap "echo [$MSG_BASE ReadConsumptionAccount --FromDate $(date --date="-5 days" '+%F') --ToDate $(date --date="-1 days" "+%F") FAIL]" ERR
./oapi-cli ReadConsumptionAccount --FromDate $(date --date="-5 days" '+%F') --ToDate $(date --date="-1 days" "+%F") | grep Operation > /dev/null
echo "[$MSG_BASE ReadConsumptionAccount --FromDate $(date --date="-5 days" '+%F') --ToDate $(date --date="-1 days" "+%F") OK]"
trap "echo [$MSG_BASE ReadVms --DryRun --file false.txt FAIL]" ERR
echo -n false > false.txt
./oapi-cli ReadVms --DryRun --file false.txt | grep RequestId > /dev/null
echo "[$MSG_BASE ReadVms --DryRun --file false.txt OK]"

trap "echo [$MSG_BASE ReadConsumptionAccount --FromDate $(date --date="-39 days" '+%F') --ToDate $(date --date="-38 days" "+%F") FAIL]" ERR
./oapi-cli ReadConsumptionAccount --FromDate $(date --date="-39 days" '+%F') --ToDate $(date --date="-38 days" "+%F") | grep Operation > /dev/null
echo "[$MSG_BASE ReadConsumptionAccount --FromDate $(date --date="-39 days" '+%F') --ToDate $(date --date="-38 days" "+%F") OK]"

0 comments on commit db3e4df

Please sign in to comment.