diff --git a/tests/role_deploy_domain_controller.pm b/tests/role_deploy_domain_controller.pm index 9e6f1ef4..86b12d95 100644 --- a/tests/role_deploy_domain_controller.pm +++ b/tests/role_deploy_domain_controller.pm @@ -119,6 +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 '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/ };