mirror of
https://github.com/google/nomulus.git
synced 2025-05-12 22:38:16 +02:00
Change auth settings on some tools service actions
This brings the affected actions into line with the settings on other similar actions. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=157259842
This commit is contained in:
parent
e46937beac
commit
bc63d80a5e
6 changed files with 40 additions and 9 deletions
|
@ -33,6 +33,8 @@ import com.google.common.collect.Iterators;
|
|||
import google.registry.config.RegistryEnvironment;
|
||||
import google.registry.request.Action;
|
||||
import google.registry.request.Parameter;
|
||||
import google.registry.request.auth.Auth;
|
||||
import google.registry.request.auth.AuthLevel;
|
||||
import google.registry.security.XsrfTokenManager;
|
||||
import google.registry.util.FormattingLogger;
|
||||
import google.registry.util.TaskEnqueuer;
|
||||
|
@ -47,15 +49,22 @@ import org.joda.time.DateTime;
|
|||
* Simple load test action that can generate configurable QPSes of various EPP actions.
|
||||
*
|
||||
* <p>All aspects of the load test are configured via URL parameters that are specified when the
|
||||
* loadtest URL is being POSTed to. The {@code clientId} and {@code tld} parameters are required.
|
||||
* loadtest URL is being POSTed to. The {@code clientId} and {@code tld} parameters are required.
|
||||
* All of the other parameters are optional, but if none are specified then no actual load testing
|
||||
* will be done since all of the different kinds of checks default to running zero per second. So at
|
||||
* least one must be specified in order for load testing to do anything.
|
||||
*/
|
||||
@Action(
|
||||
path = LoadTestAction.PATH,
|
||||
method = Action.Method.POST,
|
||||
automaticallyPrintOk = true)
|
||||
path = LoadTestAction.PATH,
|
||||
method = Action.Method.POST,
|
||||
automaticallyPrintOk = true,
|
||||
auth =
|
||||
@Auth(
|
||||
methods = {Auth.AuthMethod.INTERNAL, Auth.AuthMethod.API},
|
||||
minimumLevel = AuthLevel.APP,
|
||||
userPolicy = Auth.UserPolicy.ADMIN
|
||||
)
|
||||
)
|
||||
public class LoadTestAction implements Runnable {
|
||||
|
||||
private static final FormattingLogger logger = getLoggerForCallerClass();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue