From 428b39c8006d49653a06e234540c24b7e5a2dfab Mon Sep 17 00:00:00 2001 From: Jonathan Cave Date: Wed, 20 May 2020 11:25:07 +0100 Subject: networking: test for predictable interface names Although this is something that has not happened in previous UC images it was noted that network interface names really should be predicatble. For some reason UC16/18 gadgets disabled this via kernel cmdline. This was fixed for UC20. --- units/networking/test-plan.pxu | 1 + 1 file changed, 1 insertion(+) diff --git a/units/networking/test-plan.pxu b/units/networking/test-plan.pxu index 1abee61..f11d215 100644 --- a/units/networking/test-plan.pxu +++ b/units/networking/test-plan.pxu @@ -61,6 +61,7 @@ _description: Automated networking tests for devices include: ipv6_detect ipv6_link_local_address_.* + networking/predictable_names bootstrap_include: device -- cgit v1.2.3 From 9343ebc049b171124d798da70e5c46a0cc941cd9 Mon Sep 17 00:00:00 2001 From: Jonathan Cave Date: Thu, 21 May 2020 15:42:18 +0100 Subject: networking: limit predictable name test by release On Ubuntu Core run the predictable names tests on UC20 or later and on other systems test on 18.04 or later. --- units/networking/jobs.pxu | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/units/networking/jobs.pxu b/units/networking/jobs.pxu index c5f5c9f..b697b84 100644 --- a/units/networking/jobs.pxu +++ b/units/networking/jobs.pxu @@ -80,8 +80,10 @@ _description: Try to enable a remote printer on the network and print a test pag plugin: shell category_id: com.canonical.plainbox::networking +template-engine: jinja2 id: networking/predictable_names command: network_predictable_names _summary: Verify that all network interfaces have predictable names. _description: Verify that all network interfaces have predictable names. - +requires: + {% if __on_ubuntucore__ %}lsb.release >= '20'{% else %}lsb.release >= '18'{% endif %} -- cgit v1.2.3