diff --git a/core/src/test/java/google/registry/testing/CloudTasksHelper.java b/core/src/test/java/google/registry/testing/CloudTasksHelper.java index 382968742..e2de09e5b 100644 --- a/core/src/test/java/google/registry/testing/CloudTasksHelper.java +++ b/core/src/test/java/google/registry/testing/CloudTasksHelper.java @@ -188,7 +188,12 @@ public class CloudTasksHelper implements Serializable { String taskName; String service; - HttpMethod method; + // App Engine TaskOption methods default to "POST". This isn't obvious from the code, so we + // default it to POST here so that we don't accidentally create an entry with a GET method when + // converting to CloudTaskUtils, which requires that the method be specified explicitly. + // Should we ever actually want to do a GET, we'll likewise have to set this explicitly for the + // tests. + HttpMethod method = HttpMethod.POST; String url; Multimap headers = ArrayListMultimap.create(); Multimap params = ArrayListMultimap.create();