A Snap that fails in configurable ways and means
This snap is useful for testing snap hooks.
By setting configuration on the snap, one can control which hooks will fail.
$ snap set fail-tester HOOK_NAME=true
e.g.
$ snap set fail-tester configure=true
Will cause the configure hook to fail. To undo this, one clears the setting:
$ snap set fail-tester configure=
and the configure hook will work again.
Supported hooks are:
configure
install
pre-refresh
post-refresh