1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-12-22 18:33:07 +00:00
os-autoinst-distri-fedora/tests/modularity_module_list.pm
Adam Williamson ead05e6c32 Drop explicit install of fedora-repos-modular again
It actually is supposed to be installed by default, so if it's
missing that's a bug. It's been added to comps now so it should
be there from now on.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-07-10 18:41:05 -07:00

37 lines
1012 B
Perl

use base "installedtest";
use strict;
use testapi;
use utils;
sub run {
my $self=shift;
# switch to tty and login as root
$self->root_console(tty=>3);
# The test case will check that dnf has modular functions and that
# it is possible to invoke modular commands to work with modularity.
# It does not check the content of the further listed lists for any
# particular packages, modules or streams.
# Check that modularity works and dnf can list the modules.
assert_script_run('dnf module list');
# Check that modularity works and dnf can list the modules
# with the -all option.
assert_script_run('dnf module list --all');
# Check that dnf lists the enabled modules.
assert_script_run('dnf module list --enabled');
# Check that dnf lists the disabled modules.
assert_script_run('dnf module list --disabled');
# Check that dnf lists the installed modules.
assert_script_run('dnf module list --installed');
}
1;
# vim: set sw=4 et: