MCPcopy Create free account
hub / github.com/StackStorm/st2 / test_proxy_handler

Method test_proxy_handler

st2auth/tests/unit/test_handlers.py:43–49  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

41 cfg.CONF.auth.backend = "mock"
42
43 def test_proxy_handler(self):
44 h = handlers.ProxyAuthHandler()
45 request = {}
46 token = h.handle_auth(
47 request, headers={}, remote_addr=None, remote_user="test_proxy_handler"
48 )
49 self.assertEqual(token.user, "test_proxy_handler")
50
51 def test_proxy_handler_no_remote_user(self):
52 h = handlers.ProxyAuthHandler()

Callers

nothing calls this directly

Calls 1

handle_authMethod · 0.95

Tested by

no test coverage detected