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
1diff --git a/network-manager/units/power_management.pxu b/network-manager/units/power_management.pxu
2new file mode 100644
3index 0000000..755b6d4
4--- /dev/null
5+++ b/network-manager/units/power_management.pxu
6@@ -0,0 +1,35 @@
7+# Copyright 2016 Canonical Ltd.
8+# All rights reserved.
9+#
10+# Written by:
11+# Simon Fels <simon.fels@canonical.com>
12+
13+unit: category
14+id: network_manager
15+_name: Network Manager
16+
17+id: network_manager/power_management/connections_come_back_after_resume
18+category_id: network_manager
19+plugin: manual
20+_summary: Connections managed by NetworkManager should come back when device wakes up
21+_purpose:
22+ When a device goes to sleep NetworkManager disconnects all connections but
23+ will reconnect them back when the device reawakens.
24+_steps:
25+ 1. Verify the device is connectd to a WiFi or ethernet network. You can use
26+ .
27+ $ network-manager.nmcli d
28+ .
29+ to check if a wireless network interface is connected or not.
30+ 2. Suspend the device by calling
31+ .
32+ $ systemctl suspend
33+ .
34+ 3. Wake up the device again by pressing its power button
35+_verification:
36+ When the device comes back from suspend after pressing the power button
37+ verify with
38+ .
39+ $ network-manager.nmcli d
40+ .
41+ that the previously connected WiFi/ethernet network is again connected.

Subscribers

People subscribed via source and target branches

to all changes: