summary: Check that installing a snap requiring a base fails if base has invalid type
details: |
Verify the error shown when installing a snap with an invalid base.
prepare: |
snap pack test-snapd-invalid-base
execute: |
echo "Install a snap with an invalid base 'test-snapd-tools' and check it is not allowed"
snap install --dangerous test-snapd-invalid-base_1.0_all.snap 2>&1 | MATCH "Ensure prerequisites for \"test-snapd-invalid-base\" are available \(cannot install snap base \"test-snapd-tools\": unexpected snap type \"app\", instead of 'base'\)"
|