Class KubernetesExecuteAction

java.lang.Object
org.citrusframework.actions.AbstractTestAction
org.citrusframework.kubernetes.actions.KubernetesExecuteAction
All Implemented Interfaces:
Described, Named, TestAction, TestActorAware

public class KubernetesExecuteAction extends AbstractTestAction
Executes kubernetes command with given kubernetes client implementation. Possible command result is stored within command object.
Since:
2.7
Author:
Christoph Deppisch
  • Field Details

  • Constructor Details

  • Method Details

    • doExecute

      public void doExecute(TestContext context)
      Specified by:
      doExecute in class AbstractTestAction
    • getCommand

      public KubernetesCommand getCommand()
      Gets the kubernetes command to execute.
      Returns:
    • getKubernetesClient

      public KubernetesClient getKubernetesClient()
      Gets the kubernetes client.
      Returns:
    • getCommandResult

      public String getCommandResult()
      Gets the expected control command result data.
      Returns:
    • getCommandResultExpressions

      public Map<String,Object> getCommandResultExpressions()
      Gets the expected control command result expressions such as JsonPath expressions.
      Returns: