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 Escandon 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
com.canonical.se:engineering-tests/units/network-manager/network-manager.pxu (+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: mp+327102@code.launchpad.net

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 :

lgtm

review: Approve (code)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/com.canonical.se:engineering-tests/units/network-manager/network-manager.pxu b/com.canonical.se:engineering-tests/units/network-manager/network-manager.pxu
index 27d9b8b..e905919 100644
--- a/com.canonical.se:engineering-tests/units/network-manager/network-manager.pxu
+++ b/com.canonical.se:engineering-tests/units/network-manager/network-manager.pxu
@@ -323,3 +323,57 @@ _steps:
323 $ sudo apt install wakeonlan323 $ sudo apt install wakeonlan
324_verification:324_verification:
325 Did the SUT wake up from S5?325 Did the SUT wake up from S5?
326
327id: network_manager/debug/default_off
328category_id: network_manager
329plugin: manual
330_summary: The debug option defaults to off
331_purpose:
332 Makes sure that the debug option defaults to disabled
333_steps:
334 1. Install the network-manager snap fresh (i.e. not an upgrade)
335 2. Run the following:
336 .
337 $ sudo snap get network-manager debug.enable
338_verification:
339 Verify that the returned value is "false"
340
341id: network_manager/debug/disabling_works
342category_id: network_manager
343plugin: manual
344depends: network_manager/debug/default_off
345_summary: Disabling debug actually disables debug logging
346_purpose:
347 Makes sure that when debug.enabled is set to "false" no debug logs are written
348_steps:
349 1. Make sure that debug is disabled. Run:
350 .
351 $ sudo snap set network-manager debug.enable=false
352 .
353 2. Show only most recent journal entries
354 .
355 $ sudo journalctl -f -u snap.network-manager.networkmanager.service
356 .
357_verification:
358 Verify that any new log entry in journal coming from network-manager is in <info>,
359 <warn> or <error>, but never in <debug> level
360
361id: network_manager/automount/debug_works
362category_id: network_manager
363plugin: manual
364depends: network_manager/debug/default_off
365_summary: When debug is enabled, debug logs are available
366_purpose:
367 Makes sure that when debug option is enabled the <debug> logs are available
368_steps:
369 1. Make sure that debug is enabled. Run:
370 .
371 $ sudo snap set network-manager debug.enable=true
372 .
373 2. Show only most recent journal entries
374 .
375 $ sudo journalctl -f -u snap.network-manager.networkmanager.service
376 .
377_verification:
378 Verify that any new log entry in journal coming from network-manager is in <debug>
379 level

Subscribers

People subscribed via source and target branches