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

Proposed by Simon Fels
Status: Merged
Approved by: Jim Hodapp
Approved revision: 0a17d6cb865f00f03da32c7ae73141877f940689
Merged at revision: 652ce42fbd35b2db11e39f1d1e8b9423e619ad0c
Proposed branch: ~morphis/snappy-hwe-snaps/+git/engineering-tests:nm-suspend-resume
Merge into: ~snappy-hwe-team/snappy-hwe-snaps/+git/engineering-tests:master
Diff against target: 41 lines (+35/-0)
1 file modified
network-manager/units/power_management.pxu (+35/-0)
Reviewer Review Type Date Requested Status
Jim Hodapp (community) Approve
System Enablement Bot continuous-integration Needs Fixing
Review via email: mp+313750@code.launchpad.net

Description of the change

Add test case to cover NetworkManager's suspend/resume tracking

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 :

Some simple changes inline below.

review: Needs Fixing
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 :

LGTM

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/network-manager/units/power_management.pxu b/network-manager/units/power_management.pxu
0new file mode 1006440new file mode 100644
index 0000000..755b6d4
--- /dev/null
+++ b/network-manager/units/power_management.pxu
@@ -0,0 +1,35 @@
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/power_management/connections_come_back_after_resume
12category_id: network_manager
13plugin: manual
14_summary: Connections managed by NetworkManager should come back when device wakes up
15_purpose:
16 When a device goes to sleep NetworkManager disconnects all connections but
17 will reconnect them back when the device reawakens.
18_steps:
19 1. Verify the device is connectd to a WiFi or ethernet network. You can use
20 .
21 $ network-manager.nmcli d
22 .
23 to check if a wireless network interface is connected or not.
24 2. Suspend the device by calling
25 .
26 $ systemctl suspend
27 .
28 3. Wake up the device again by pressing its power button
29_verification:
30 When the device comes back from suspend after pressing the power button
31 verify with
32 .
33 $ network-manager.nmcli d
34 .
35 that the previously connected WiFi/ethernet network is again connected.

Subscribers

People subscribed via source and target branches

to all changes: