Class CannedScriptExecutionAction

java.lang.Object
google.registry.batch.CannedScriptExecutionAction
All Implemented Interfaces:
Runnable

public class CannedScriptExecutionAction extends Object implements Runnable
Action that executes a canned script specified by the caller.

This class provides a hook for invoking hard-coded methods. The main use case is to verify in Sandbox and Production environments new features that depend on environment-specific configurations. For example, the DelegatedCredential, which requires correct GWorkspace configuration, has been tested this way. Since it is a hassle to add or remove endpoints, we keep this class all the time.

This action can be invoked using the Nomulus CLI command: nomulus -e ${env} curl --service BACKEND -X POST -u '/_dr/task/executeCannedScript'}

  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable