Use an explicit path for the keydir not `getcwd`
Change to an existing directory before importing keyring
Test needs root perms
Maintain old test behaviour(no new lines added)
Fix log message
Adapt tests to behaviour introduced in #13333
A more generic directory name
No renaming is happening, return a boolean.
Raise an exception so the state knows what happened
Improve error message
Merge pull request #13350 from s0undt3ch/hotfix/jenkins

unit test fixes