You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 9, 2020. It is now read-only.
The following error is thrown if I use the with_system_user decorator with instances inheriting from integration.ShellCase
ERROR: test_pam_auth_valid_user (integration.shell.auth.AuthTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/ubuntu/src/salttesting/salttesting/helpers.py", line 48, in wrap
return caller(cls)
File "/home/ubuntu/src/salttesting/salttesting/helpers.py", line 542, in wrap
create_user = cls.run_function('user.add', [username])
AttributeError: 'AuthTest' object has no attribute 'run_function'
AuthTest looks like
classAuthTest(integration.ShellCase):
_call_binary_='salt'is_root=os.geteuid() !=0@destructiveTest@skipIf(is_root, 'You must be logged in as root to run this test')@with_system_user('saltdev')deftest_pam_auth_valid_user(self, username):
''' test pam auth mechanism is working with a valid user '''alphabet=\
"abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"self.password=''
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The following error is thrown if I use the
with_system_user
decorator with instances inheriting fromintegration.ShellCase
AuthTest looks like
The text was updated successfully, but these errors were encountered: