diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-admin/salt/files/salt-2015.5.5-auth-tests.patch |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-admin/salt/files/salt-2015.5.5-auth-tests.patch')
-rw-r--r-- | app-admin/salt/files/salt-2015.5.5-auth-tests.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/app-admin/salt/files/salt-2015.5.5-auth-tests.patch b/app-admin/salt/files/salt-2015.5.5-auth-tests.patch new file mode 100644 index 000000000000..fa092d1f3eaf --- /dev/null +++ b/app-admin/salt/files/salt-2015.5.5-auth-tests.patch @@ -0,0 +1,34 @@ +diff --git a/tests/unit/auth_test.py b/tests/unit/auth_test.py +index 10b77e9..c40f439 100644 +--- a/tests/unit/auth_test.py ++++ b/tests/unit/auth_test.py +@@ -38,12 +38,12 @@ class LoadAuthTestCase(TestCase): + + # Test a case with valid params + with patch('salt.utils.format_call') as format_call_mock: +- expected_ret = call('fake_func_str', { ++ expected_ret = [call('fake_func_str', { + 'username': 'test_user', + 'test_password': '', + 'show_timeout': False, + 'eauth': 'pam' +- }, expected_extra_kws=auth.AUTH_INTERNAL_KEYWORDS) ++ }, expected_extra_kws=auth.AUTH_INTERNAL_KEYWORDS)] + ret = self.lauth.load_name(valid_eauth_load) + format_call_mock.assert_has_calls(expected_ret) + +@@ -53,12 +53,12 @@ class LoadAuthTestCase(TestCase): + 'test_password': '', + 'eauth': 'pam'} + with patch('salt.utils.format_call') as format_call_mock: +- expected_ret = call('fake_groups_function_str', { ++ expected_ret = [call('fake_groups_function_str', { + 'username': 'test_user', + 'test_password': '', + 'show_timeout': False, + 'eauth': 'pam' +- }, expected_extra_kws=auth.AUTH_INTERNAL_KEYWORDS) ++ }, expected_extra_kws=auth.AUTH_INTERNAL_KEYWORDS)] + self.lauth.get_groups(valid_eauth_load) + format_call_mock.assert_has_calls(expected_ret) + |