summaryrefslogtreecommitdiff
path: root/units
diff options
authorMaciej Kisielewski <maciej.kisielewski@canonical.com>2018-07-12 15:15:44 +0200
committerMaciej Kisielewski <maciej.kisielewski@canonical.com>2018-07-12 17:26:03 +0200
commit5605a1ad8664fcb4dfd2ee0b70b93aa62e0292b3 (patch)
treeb18fdc22fe1ecf5f7c0ecfeedb9a336240a7c8c9 /units
parent49c7c4ea43d24a1c061f3e82b99189c1813062de (diff)
add usb type-c to ethernet test
Signed-off-by: Maciej Kisielewski <maciej.kisielewski@canonical.com>
Diffstat (limited to 'units')
-rw-r--r--units/usb/test-plan.pxu1
-rw-r--r--units/usb/usb-c.pxu16
2 files changed, 17 insertions, 0 deletions
diff --git a/units/usb/test-plan.pxu b/units/usb/test-plan.pxu
index 27a0616..63c62b8 100644
--- a/units/usb/test-plan.pxu
+++ b/units/usb/test-plan.pxu
@@ -69,6 +69,7 @@ include:
usb-c/insert certification-status=blocker
usb-c/storage-automated certification-status=blocker
usb-c/remove certification-status=blocker
+ usb-c/c-to-ethernet-adapter-insert
id: after-suspend-usb-cert-full
unit: test plan
diff --git a/units/usb/usb-c.pxu b/units/usb/usb-c.pxu
index d2004c2..cf7c5f6 100644
--- a/units/usb/usb-c.pxu
+++ b/units/usb/usb-c.pxu
@@ -187,3 +187,19 @@ requires:
manifest.has_usb_type_c == 'True'
estimated_duration: 30
+id: usb-c/c-to-ethernet-adapter-insert
+plugin: user-interact
+category_id: com.canonical.plainbox::usb
+imports: from com.canonical.plainbox import manifest
+requires: manifest.has_usb_type_c == 'True'
+command:
+ net_if_watcher.py
+_summary: Check if USB Type-C to Ethernet adapter works
+_purpose:
+ This test will check if system detects network interface of the Type-C to
+ ethernet adapter.
+_steps:
+ 1. Prepare USB Type-C to Ethernet adapter
+ 2. Start the test
+ 3. When the message "INSERT NOW" is shown, plug in the adapter to Type-C port
+estimated_duration: 20