diff options
author | Jonathan Cave <jonathan.cave@canonical.com> | 2018-10-26 09:50:24 +0100 |
---|---|---|
committer | Jonathan Cave <jonathan.cave@canonical.com> | 2018-10-29 16:18:09 +0000 |
commit | 50f79599b7be9a6db9187a967bde9f9949e1160c (patch) | |
tree | 2989d2768668d68a24eb9d0e43265dbbc54d4e69 | |
parent | 106231d081143161ce9e2529aa9962a23db14c1e (diff) |
networking: initial ipv6 jobs and devices test plans
-rw-r--r-- | units/networking/ipv6.pxu | 26 | ||||
-rw-r--r-- | units/networking/test-plan.pxu | 50 |
2 files changed, 76 insertions, 0 deletions
diff --git a/units/networking/ipv6.pxu b/units/networking/ipv6.pxu new file mode 100644 index 0000000..1cdcbdf --- /dev/null +++ b/units/networking/ipv6.pxu @@ -0,0 +1,26 @@ + +id: ipv6_detect +category_id: com.canonical.plainbox::networking +_summary: Test if the kernel is IPv6 ready +command: + if test -f /proc/net/if_inet6; then + echo "Running kernel is IPv6 ready" + exit 0 + fi + echo "/proc/net/if_inet6 not present" + echo "Running kernel does not appear to be IPv6 ready" + exit 1 +flags: simple also-after-suspend + +unit: template +template-resource: device +template-filter: device.category == 'NETWORK' and device.interface != 'UNKNOWN' +template-unit: job +depends: ipv6_detect +id: ipv6_link_local_address_{interface} +_summary: Test that {interface} has an IPv6 link local address +plugin: shell +category_id: com.canonical.plainbox::networking +command: + [ $(ip -6 -o addr show dev {interface} scope link | wc -l) -eq 1 ] +flags: also-after-suspend diff --git a/units/networking/test-plan.pxu b/units/networking/test-plan.pxu index d6a3ddb..5a7da04 100644 --- a/units/networking/test-plan.pxu +++ b/units/networking/test-plan.pxu @@ -37,3 +37,53 @@ include: networking/ntp certification-status=blocker bootstrap_include: device + +id: networking-full +unit: test plan +_name: Networking tests for devices +_description: Networking tests for devices +include: +nested_part: + networking-manual + networking-automated + +id: networking-manual +unit: test plan +_name: Manual networking tests for devices +_description: Manual networking tests for devices +include: + +id: networking-automated +unit: test plan +_name: Automated networking tests for devices +_description: Automated networking tests for devices +include: + ipv6_detect + ipv6_link_local_address_.* +bootstrap_include: + device + +id: after-suspend-networking-full +unit: test plan +_name: Networking tests for devices (after suspend) +_description: Networking tests for devices (after suspend) +include: +nested_part: + after-suspend-networking-manual + after-suspend-networking-automated + +id: after-suspend-networking-manual +unit: test plan +_name: Manual networking tests for devices (after suspend) +_description: Manual networking tests for devices (after suspend) +include: + +id: after-suspend-networking-automated +unit: test plan +_name: Automated networking tests for devices (after suspend) +_description: Automated networking tests for devices (after suspend) +include: + after-suspend-ipv6_detect + after-suspend-ipv6_link_local_address_.* +bootstrap_include: + device |