Update roles
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
#! /bin/bash
|
||||
|
||||
if [ "${1}" == "-P" ] && [ "${2}" != "" ]
|
||||
then
|
||||
echo "Permanent address: 23:00:00:00:00:00"
|
||||
fi
|
||||
1479
roles/linux-system-roles.network/tests/unit/test_network_connections.py
Executable file → Normal file
1479
roles/linux-system-roles.network/tests/unit/test_network_connections.py
Executable file → Normal file
File diff suppressed because it is too large
Load Diff
@@ -27,5 +27,12 @@ with mock.patch.dict("sys.modules", {"gi": mock.Mock(), "gi.repository": mock.Mo
|
||||
def test_get_nm_ethtool_feature():
|
||||
""" Test get_nm_ethtool_feature() """
|
||||
with mock.patch.object(nm_provider.Util, "NM") as nm_mock:
|
||||
nm_feature = nm_provider.get_nm_ethtool_feature("esp-hw-offload")
|
||||
nm_feature = nm_provider.get_nm_ethtool_feature("esp_hw_offload")
|
||||
assert nm_feature == nm_mock.return_value.ETHTOOL_OPTNAME_FEATURE_ESP_HW_OFFLOAD
|
||||
|
||||
|
||||
def test_get_nm_ethtool_coalesce():
|
||||
""" Test get_nm_ethtool_coalesce() """
|
||||
with mock.patch.object(nm_provider.Util, "NM") as nm_mock:
|
||||
nm_feature = nm_provider.get_nm_ethtool_coalesce("rx_frames")
|
||||
assert nm_feature == nm_mock.return_value.ETHTOOL_OPTNAME_COALESCE_RX_FRAMES
|
||||
|
||||
Reference in New Issue
Block a user