diff options
author | PMR <pmr@pmr-lander> | 2018-10-29 16:28:18 +0000 |
---|---|---|
committer | PMR <pmr@pmr-lander> | 2018-10-29 16:28:18 +0000 |
commit | cc83297724c4496d4daeced8f65113034ef04181 (patch) | |
tree | 3fdb1203aca1dd92980c85ea058ae5158b1db27c | |
parent | d1488736a0188da6beb8830610e0a47bfd806bc6 (diff) | |
parent | 50f79599b7be9a6db9187a967bde9f9949e1160c (diff) |
Merge #357872 from ~jocave/plainbox-provider-checkbox:networking-ipv6-devices
-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 |