Skip to content

Commit

Permalink
Add test coverage
Browse files Browse the repository at this point in the history
Signed-off-by: jiazhang <jiazhang@redhat.com>

rh-pre-commit.version: 2.3.1
rh-pre-commit.check-secrets: ENABLED
  • Loading branch information
wushiqinlou committed Nov 25, 2024
1 parent 5e89c42 commit c470eb1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion insights/specs/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@
ls,
lsattr,
luks_devices,
nmcli,
machine_ids,
md5chk,
mdadm,
mount as mount_ds,
nmcli,
package_provides,
ps as ps_datasource,
rpm_pkgs,
Expand Down
3 changes: 3 additions & 0 deletions insights/tests/parsers/test_nmcli.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,9 @@ def test_nmcli_conn_show_uuids():
assert nmcli_conn_show_uuid_obj['ipv4.dhcp-vendor-class-identifier'] == "--"
assert nmcli_conn_show_uuid_obj['DHCP4.OPTION[2]'] == "dhcp_lease_time = 86400"

with pytest.raises(SkipComponent):
NmcliConnShowUuids(context_wrap(""))


def test_nmcli_sos():
nmcli_obj = NmcliDevShowSos(context_wrap(NMCLI_SHOW_SOS))
Expand Down

0 comments on commit c470eb1

Please sign in to comment.