polkit-org / polkit

polkit (formerly PolicyKit) is a toolkit for defining and handling authorizations. It is used for allowing unprivileged processes to speak to privileged processes.
Other
41 stars 22 forks source link

test: add a couple of tests for pkexec #469

Open mrc0mmand opened 2 weeks ago

mrc0mmand commented 2 weeks ago

Add a couple of tests for pkexec utilizing Tcl's Expect, which allows us to handle pkexec's interactivity in a reasonable-ish way.

Note: the '# notsecret' comment in the test is necessary, otherwise I was getting flooded by RH's infosec about leaked passwords.