1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
summary: Test ubuntu-fan
details: |
Check that fanctl exists in UC16 and it can create a fan bridge
# Ubuntu fan not available on ubuntu-core-18 and later, it is not shipped in the
# base snap
systems: [ubuntu-core-16-*]
prepare: |
IP=$(ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | cut -d' ' -f1|head -1)
fanctl up 241.0.0.0/8 "$IP/16"
restore: |
fanctl down -e
execute: |
echo "Test that fanctl exists"
command -v fanctl
echo "Test fanctl created fan bridge"
ifconfig |MATCH ^fan-241
# FIXME: port the docker tests once we have docker again
# https://github.com/snapcore/snapd/blob/2.13/integration-tests/tests/ubuntufan_test.go#L88
|