Merge ~morphis/snappy-hwe-snaps/+git/engineering-tests:nm-powersave-tests into ~snappy-hwe-team/snappy-hwe-snaps/+git/engineering-tests:master

Proposed by Simon Fels
Status: Merged
Approved by: Jim Hodapp
Approved revision: bea0e29233449b8317409e9bf7d2c71cf754b988
Merged at revision: 283dbe83ac8dd9c41d1700cb5ad8d776f72a0c5d
Proposed branch: ~morphis/snappy-hwe-snaps/+git/engineering-tests:nm-powersave-tests
Merge into: ~snappy-hwe-team/snappy-hwe-snaps/+git/engineering-tests:master
Diff against target: 65 lines (+59/-0)
1 file modified
network-manager/units/wireless.pxu (+59/-0)
Reviewer Review Type Date Requested Status
System Enablement Bot continuous-integration Needs Fixing
Jim Hodapp (community) code Approve
Review via email: mp+313000@code.launchpad.net

Description of the change

Add tests for WiFi powersave configuration feature

To post a comment you must log in.
Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Jim Hodapp (jhodapp) wrote :

A few comments inline below.

review: Needs Fixing
Revision history for this message
Simon Fels (morphis) :
Revision history for this message
Jim Hodapp (jhodapp) wrote :

LGTM

review: Approve (code)
Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :
review: Needs Fixing (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/network-manager/units/wireless.pxu b/network-manager/units/wireless.pxu
0new file mode 1006440new file mode 100644
index 0000000..704bdd5
--- /dev/null
+++ b/network-manager/units/wireless.pxu
@@ -0,0 +1,59 @@
1# Copyright 2016 Canonical Ltd.
2# All rights reserved.
3#
4# Written by:
5# Simon Fels <simon.fels@canonical.com>
6
7unit: category
8id: network_manager
9_name: Network Manager
10
11id: network_manager/wireless/powersave_off_by_default
12category_id: network_manager
13plugin: manual
14_summary: NetworkManager should disable powersave by default
15_purpose:
16 The powersave configuration option should cause the mode on the
17 actual hardware device to be turned off by default.
18_steps:
19 Install wireless-tools snap and check that powersave is turned off
20 on the actual hardware wireless device.
21 $ snap install wireless-tools
22_verification:
23 The iw utility should return the following for the selected wireless device
24 $ sudo wireless-tools.iw dev wlan0 get power_save
25 Power save: off
26
27id: network_manager/wireless/powersave_config_default_off
28category_id: network_manager
29plugin: manual
30_summary:
31 The configuration option should be set to disable by default
32_purpose:
33 On installation the snap sets the option to a default value
34 which should always be the same.
35_steps:
36 Retrieve the configuration value via
37 $ snap get network-manager wifi.powersave
38_verification:
39 The returned value should be "disable".
40
41id: network_manager/wireless/powersave_can_be_enabled
42category_id: network_manager
43plugin: manual
44_summary:
45 Enabling powersave with the configuration option of the snap
46 should turn it on.
47_purpose:
48 The network-manager snap uses a configure hook to control how
49 the WiFi powersave option is set. It should be possible to enable
50 the option on the actual hardware wireless device with it.
51_steps:
52 1. Enable powersave via the configure hook
53 $ snap set network-manager wifi.powersave=enable
54_verification:
55 Powersave should now be turned on for all wireless devices. This
56 can be verified with
57 $ snap install wireless-tools
58 $ sudo wireless-tools.iw dev wlan0 get power_save
59 Power save: on

Subscribers

People subscribed via source and target branches

to all changes: