Merge ~rmescandon/snappy-hwe-snaps/+git/engineering-tests:nm-debug-config-test into ~snappy-hwe-team/snappy-hwe-snaps/+git/engineering-tests:master

Proposed by Roberto Mier Escandón  on 2017-07-10
Status: Merged
Approved by: Konrad Zapałowicz on 2017-09-01
Approved revision: a09e2d8daa45515a753a98d9e2b0748b41c91bbd
Merged at revision: 7c2447984ea2d839a8d8515f8117edc9efaa1fb7
Proposed branch: ~rmescandon/snappy-hwe-snaps/+git/engineering-tests:nm-debug-config-test
Merge into: ~snappy-hwe-team/snappy-hwe-snaps/+git/engineering-tests:master
Diff against target: 62 lines (+54/-0)
1 file modified (+54/-0)
Reviewer Review Type Date Requested Status
Konrad Zapałowicz (community) code Approve on 2017-09-01
System Enablement Bot continuous-integration 2017-07-10 Approve on 2017-09-01
Review via email:

Description of the change

Plainbox tests for network manager debug enable/disable config option

To post a comment you must log in.
Konrad Zapałowicz (kzapalowicz) wrote :


review: Approve (code)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/ b/
2index 27d9b8b..e905919 100644
3--- a/
4+++ b/
5@@ -323,3 +323,57 @@ _steps:
6 $ sudo apt install wakeonlan
7 _verification:
8 Did the SUT wake up from S5?
10+id: network_manager/debug/default_off
11+category_id: network_manager
12+plugin: manual
13+_summary: The debug option defaults to off
15+ Makes sure that the debug option defaults to disabled
17+ 1. Install the network-manager snap fresh (i.e. not an upgrade)
18+ 2. Run the following:
19+ .
20+ $ sudo snap get network-manager debug.enable
22+ Verify that the returned value is "false"
24+id: network_manager/debug/disabling_works
25+category_id: network_manager
26+plugin: manual
27+depends: network_manager/debug/default_off
28+_summary: Disabling debug actually disables debug logging
30+ Makes sure that when debug.enabled is set to "false" no debug logs are written
32+ 1. Make sure that debug is disabled. Run:
33+ .
34+ $ sudo snap set network-manager debug.enable=false
35+ .
36+ 2. Show only most recent journal entries
37+ .
38+ $ sudo journalctl -f -u
39+ .
41+ Verify that any new log entry in journal coming from network-manager is in <info>,
42+ <warn> or <error>, but never in <debug> level
44+id: network_manager/automount/debug_works
45+category_id: network_manager
46+plugin: manual
47+depends: network_manager/debug/default_off
48+_summary: When debug is enabled, debug logs are available
50+ Makes sure that when debug option is enabled the <debug> logs are available
52+ 1. Make sure that debug is enabled. Run:
53+ .
54+ $ sudo snap set network-manager debug.enable=true
55+ .
56+ 2. Show only most recent journal entries
57+ .
58+ $ sudo journalctl -f -u
59+ .
61+ Verify that any new log entry in journal coming from network-manager is in <debug>
62+ level


People subscribed via source and target branches