google-nomulus/javatests/google/registry/server
cgoldfeder 0859cde790 Fix the TestServer filter support added in []
In the previous CL I added filter support for the test server, but
even though I could verify that filters were being run when debugging,
in practice the side effects of the filters (notably, ObjectifyFilter
clearing the session cache) were somehow not present in tests (and
therefore causing new as-yet unsubmitted tests that rely on proper
session caching to break).

Investigating further, the way TestServer works is that it creates
a wrapper Servlet for each route, and in that wrapper just pushes
a future onto a queue and waits on it. The actual target servlet
is run within the queue, not within the wrapper servlet's context.
I had added filters to the *wrapper* servlet, which meant that even
though they were invoked before adding the task to the queue, they
were not invoked in the process of actually running the task.

In this CL I pushed the filters into the task itself, just like the
target servlet.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=144123637
2017-01-12 14:02:55 -05:00
..
BUILD Add MOE equivalence for sync on 2016-12-19 2017-01-09 11:59:04 -05:00
Fixture.java Preserve test logs and test summary output for Kokoro CI runs 2016-10-14 16:57:43 -04:00
HealthzServlet.java Preserve test logs and test summary output for Kokoro CI runs 2016-10-14 16:57:43 -04:00
RegistryTestServer.java Add filter support to the test server 2016-12-13 18:00:15 -05:00
RegistryTestServerMain.java Upgrade Nomulus to latest Closure Rules 2016-12-06 11:52:46 -05:00
Route.java Preserve test logs and test summary output for Kokoro CI runs 2016-10-14 16:57:43 -04:00
ServletWrapperDelegatorServlet.java Fix the TestServer filter support added in [] 2017-01-12 14:02:55 -05:00
StaticResourceServlet.java Upgrade Nomulus to latest Closure Rules 2016-12-06 11:52:46 -05:00
TestServer.java Fix the TestServer filter support added in [] 2017-01-12 14:02:55 -05:00
UrlChecker.java Revert Guava 20 features until we get the build working properly 2016-11-02 15:19:34 -04:00