action #120019
closed[opensuse] Test enhancement: sudo: test shipped default configuration
100%
Description
openSUSE Tumbleweed snapshot 20221103 just had a severe fallout as the sudo default configuration was changed to no longer ask for the root password, but rather for the user password. This though expects the user to be authorized by some means, usually via the wheel group or explicitly added to the sudoers file
Users that never amended their sudoers config were basically locked out from using 'sudo' simply based on a packaging change - see http://bugzilla.opensuse.org/show_bug.cgi?id=1205094
We should extend the sudo tests to ensure we test the default config as well.
The current sudo test as first step configures sudoers to get to a known state, and tests based on this only.
The rest of openQA never tripped over the changed sudo config as even assert_script_sudo internally uses su -c, and not actually sudo