Home
last modified time | relevance | path

Searched refs:mock_auth (Results 1 – 12 of 12) sorted by relevance

/dports/sysutils/py-salt/salt-3004.1/tests/unit/modules/
H A Dtest_nova.py19 self.mock_auth = patcher.start()
28 self.mock_auth.side_effect = MagicMock()
36 self.mock_auth.side_effect = MagicMock()
44 self.mock_auth.side_effect = MagicMock()
52 self.mock_auth.side_effect = MagicMock()
60 self.mock_auth.side_effect = MagicMock()
68 self.mock_auth.side_effect = MagicMock()
76 self.mock_auth.side_effect = MagicMock()
84 self.mock_auth.side_effect = MagicMock()
92 self.mock_auth.side_effect = MagicMock()
[all …]
/dports/security/py-certbot/certbot-1.22.0/tests/
H A Dauth_handler_test.py79 self.mock_auth.perform.side_effect = gen_auth_resp
138 self.assertEqual(self.mock_auth.cleanup.call_count, 1)
140 for achall in self.mock_auth.cleanup.call_args[0][0]:
159 self.assertEqual(self.mock_auth.cleanup.call_count, 1)
181 self.assertEqual(self.mock_auth.cleanup.call_count, 1)
488 self.mock_auth.name = "buzz"
537 self.mock_auth.name = "quux"
538 self.mock_auth.auth_hint.return_value = "quuuuuux"
563 self.mock_auth = mock.MagicMock(name="quuz")
564 self.mock_auth.name = "quuz"
[all …]
H A Dmain_test.py117 self.mock_auth = patches[0].start()
139 self.mock_auth.return_value = mock.Mock()
147 self.mock_auth.return_value = mock.Mock()
153 self.mock_auth.return_value = mock.Mock()
170 self.mock_auth.return_value = mock.Mock()
205 def test_no_reinstall_text_pause(self, unused_report, mock_auth, mock_find_cert): argument
208 mock_auth.return_value = mock.Mock()
/dports/sysutils/py-google-compute-engine/compute-image-packages-20190522/packages/python-google-compute-engine/google_compute_engine/boto/tests/
H A Dcompute_auth_test.py79 mock_auth = mock.create_autospec(compute_auth.ComputeAuth)
80 mock_auth.watcher = mock_watcher
81 mock_auth.metadata_key = self.metadata_key
82 mock_auth.service_account = self.service_account
89 compute_auth.ComputeAuth._GetAccessToken(mock_auth), 'test')
91 compute_auth.ComputeAuth._GetAccessToken(mock_auth), None)
97 mock_auth = mock.create_autospec(compute_auth.ComputeAuth)
98 mock_auth._GetAccessToken.return_value = 'token'
102 compute_auth.ComputeAuth.add_auth(mock_auth, mock_request)
/dports/www/py-quilt3/quilt3-3.6.0/tests/
H A Dtest_session.py32 mock_auth = dict(
41 json=mock_auth,
59 mock_save_auth.assert_called_with({url: mock_auth})
127 mock_auth = dict(
133 …with patch('quilt3.session._load_auth', return_value={registry_url: mock_auth}) as mocked_load_aut…
137 …with patch('quilt3.session._load_auth', return_value={other_registry_url: mock_auth}) as mocked_lo…
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/spec/support/helpers/
H A Dlogin_helpers.rb138 OmniAuth.config.mock_auth[provider.to_sym] = OmniAuth::AuthHash.new({
169 Rails.application.env_config['omniauth.auth'] = OmniAuth.config.mock_auth[provider.to_sym]
202 env['omniauth.auth'] = OmniAuth.config.mock_auth[provider.to_sym]
/dports/databases/pgbouncer/pgbouncer-1.16.0/src/
H A Dclient.c43 if (user->mock_auth) in check_client_passwd()
163 if (client->login_user->mock_auth) in login_via_cert()
183 if (client->login_user->mock_auth) in login_as_unix_peer()
198 if (!client->login_user->mock_auth) { in finish_set_pool()
259 if (client->login_user->mock_auth) in finish_set_pool()
375 client->login_user->mock_auth = true; in set_pool()
604 if (!user->mock_auth) { in scram_client_first()
616 …if (!build_server_first_message(&client->scram_state, user->name, user->mock_auth ? NULL : user->p… in scram_client_first()
H A Dobjects.c951 if (client->login_user && client->login_user->mock_auth) { in disconnect_client()
/dports/databases/xtrabackup8/percona-xtrabackup-8.0.14/unittest/gunit/xplugin/xpl/
H A Dcapabilities_handlers_t.cc253 Mock_authentication_container mock_auth; in TEST_F() local
256 .WillOnce(ReturnRef(mock_auth)); in TEST_F()
258 EXPECT_CALL(mock_auth, get_authentication_mechanisms(&mock_client)) in TEST_F()
271 StrictMock<Mock_authentication_container> mock_auth; in TEST_F() local
274 .WillOnce(ReturnRef(mock_auth)); in TEST_F()
276 EXPECT_CALL(mock_auth, get_authentication_mechanisms(_)) in TEST_F()
/dports/databases/py-python-swiftclient/python-swiftclient-3.12.0/test/unit/
H A Dtest_swiftclient.py2208 mock.patch('swiftclient.client.get_auth_1_0') as mock_auth:
2209 mock_auth.return_value = ('http://mock.com', 'mock_token')
2212 self.assertEqual(mock_auth.call_count, 1)
2226 mock.patch('swiftclient.client.get_auth_1_0') as mock_auth:
2227 mock_auth.return_value = ('http://mock.com', 'mock_token')
2230 self.assertEqual(mock_auth.call_count, conn.retries + 1)
2251 mock.patch('swiftclient.client.get_auth_1_0') as mock_auth:
2252 mock_auth.return_value = ('http://mock.com', 'mock_token')
2255 self.assertEqual(mock_auth.call_count, count)
/dports/databases/pgbouncer/pgbouncer-1.16.0/include/
H A Dbouncer.h335 bool mock_auth; /* not a real user, only for mock auth */ member
/dports/misc/py-cinder/cinder-12.0.10/cinder/tests/unit/volume/
H A Dtest_volume.py667 with mock.patch.object(self.context, 'authorize') as mock_auth:
668 mock_auth.side_effect = self._fail_multiattach_policy_authorize
678 with mock.patch.object(self.context, 'authorize') as mock_auth:
679 mock_auth.side_effect = self._fail_multiattach_policy_authorize