summary: Checks for cli errors of the tasks / change command.
details: |
Verify that `snap tasks` and `snap change` return an error
when the provided ID is invalid.
execute: |
echo "When an invalid ID is given to the tasks command it shows an error"
if snap tasks 10000000; then
echo "Expected error when trying change on invalid ID" && exit 1
fi
echo "When an invalid ID is given to the change command it shows an error"
if snap change 10000000; then
echo "Expected error when trying change on invalid ID" && exit 1
fi
|