Merge ~fourdollars/plainbox-provider-checkbox:master into plainbox-provider-checkbox:master

Proposed by Shih-Yuan Lee
Status: Merged
Approved by: Sylvain Pineau
Approved revision: 0d775ed5c1fc4c36efd28731a06dab64cfe32a0f
Merged at revision: 4a58570e1863901539c8739a8976265abb9258ee
Proposed branch: ~fourdollars/plainbox-provider-checkbox:master
Merge into: plainbox-provider-checkbox:master
Diff against target: 26 lines (+15/-0)
1 file modified
units/ethernet/jobs.pxu (+15/-0)
Reviewer Review Type Date Requested Status
Sylvain Pineau (community) Approve
Jonathan Cave (community) Approve
Review via email: mp+385985@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Jonathan Cave (jocave) wrote :

Could you make _description a little clearer please? I don't think it really explains what the test is checking for.

Something like "Test that Energy Efficient Ethernet (EEE) is enabled on interface {interface} using ethtool" maybe.

Also the estimated_duration seems rather high.

review: Needs Fixing
Revision history for this message
Sylvain Pineau (sylvain-pineau) wrote :

the output could also be:

EEE status: enabled - inactive

maybe grepping for 'enabled - active' is what you're looking for?

review: Needs Fixing
Revision history for this message
Jonathan Cave (jocave) wrote :

You can also remove the {__index__} template it does not serve any purpose on this test.

Revision history for this message
Shih-Yuan Lee (fourdollars) wrote :

I have revised the commit.
Please help to check it again.

Revision history for this message
Jonathan Cave (jocave) wrote :

Happy my requests have been fixed, thanks

review: Approve
Revision history for this message
Sylvain Pineau (sylvain-pineau) wrote :

+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/units/ethernet/jobs.pxu b/units/ethernet/jobs.pxu
2index b31fc15..94dcda3 100644
3--- a/units/ethernet/jobs.pxu
4+++ b/units/ethernet/jobs.pxu
5@@ -129,6 +129,21 @@ _description:
6 unit: template
7 template-resource: device
8 template-filter: device.category == 'NETWORK' and device.interface != 'UNKNOWN'
9+plugin: shell
10+category_id: com.canonical.plainbox::ethernet
11+id: ethernet/ethertool_eee_check_device_{interface}
12+_summary: Check ethtool EEE status for NIC {interface}
13+estimated_duration: 330.0
14+requires:
15+ package.name == 'ethtool' or executable.name == 'ethtool'
16+user: root
17+command: ethtool --show-eee {interface} | grep "EEE status: enabled - active"
18+_description:
19+ Test that Energy Efficient Ethernet (EEE) is enabled on interface {interface} using ethtool.
20+
21+unit: template
22+template-resource: device
23+template-filter: device.category == 'NETWORK' and device.interface != 'UNKNOWN'
24 plugin: user-interact-verify
25 category_id: com.canonical.plainbox::ethernet
26 id: ethernet/maximum_bandwidth_device{__index__}_{interface}

Subscribers

People subscribed via source and target branches