(self)
| 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() |
nothing calls this directly
no test coverage detected