mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-11-17 10:41:27 +00:00
use kswitch instead of kinit
Co-Authored by: Louis Abel <tucklesepk@gmail.com>
This commit is contained in:
parent
11fee91082
commit
6ee6a6809f
@ -119,7 +119,7 @@ sub run {
|
||||
assert_script_run "printf 'correcthorse\nbatterystaple\nbatterystaple' | kinit test2\@$ipa_realm";
|
||||
|
||||
# add a sudo rule
|
||||
assert_script_run "echo '$ipa_admin_password' | kinit admin";
|
||||
assert_script_run "kswitch -p admin@$ipa_realm";
|
||||
assert_script_run 'ipa sudorule-add testrule --desc="Test rule in IPA" --hostcat=all --cmdcat=all --runasusercat=all --runasgroupcat=all';
|
||||
assert_script_run 'ipa sudorule-add-user testrule --users="test1"';
|
||||
validate_script_output 'ipa sudorule-show testrule', sub { $_ =~ m/Rule name: testrule/ };
|
||||
|
Loading…
Reference in New Issue
Block a user