Class TestDockerHandler

java.lang.Object
com.atlassian.bamboo.plugins.testutils.docker.TestDockerHandler
All Implemented Interfaces:
DockerHandler

public class TestDockerHandler extends Object implements DockerHandler
  • Field Details

  • Constructor Details

  • Method Details

    • getEditHtml

      public String getEditHtml()
      Description copied from interface: DockerHandler
      Renders the edit page.
      Specified by:
      getEditHtml in interface DockerHandler
    • getViewHtml

      public String getViewHtml()
      Description copied from interface: DockerHandler
      Renders the view page.
      Specified by:
      getViewHtml in interface DockerHandler
    • isEnabled

      public boolean isEnabled()
      Description copied from interface: DockerHandler
      Returns enablement state of the implementation. Typically either 0 or 1 of the implementations are enabled.
      Specified by:
      isEnabled in interface DockerHandler
      Returns:
      true if enabled.
    • getIsolationType

      public String getIsolationType()
      Description copied from interface: DockerHandler
      Identifier of Docker isolation type.
      Specified by:
      getIsolationType in interface DockerHandler
      Returns:
    • validateConfig

      public ErrorCollection validateConfig(Map<String,Object> webFragmentsContextMap)
      Description copied from interface: DockerHandler
      Construct configuration from webFragmentContextMap and validate that the config is valid.
      Specified by:
      validateConfig in interface DockerHandler
      Parameters:
      webFragmentsContextMap -
      Returns:
    • enableAndUpdate

      public void enableAndUpdate(BuildDefinition buildDefinition, Job job, Map<String,Object> webFragmentsContextMap)
      Description copied from interface: DockerHandler
      Called for the selected Docker isolation option in Job related UIs. The implementation is to construct the object from webFragmentsContextMap and store it in provided buildDefinition that is later stored by the infrastructure.
      Specified by:
      enableAndUpdate in interface DockerHandler
      Parameters:
      buildDefinition -
      job -
      webFragmentsContextMap -
    • enableAndUpdate

      public void enableAndUpdate(Environment environment, Map<String,Object> webFragmentsContextMap)
      Description copied from interface: DockerHandler
      Called for the selected Docker isolation option in Environment related UIs. The implementation is to construct the object from webFragmentsContextMap and save the new values.
      Specified by:
      enableAndUpdate in interface DockerHandler
      Parameters:
      environment -
      webFragmentsContextMap -
    • disable

      public void disable(BuildDefinition buildDefinition, Job job)
      Description copied from interface: DockerHandler
      Called for Docker isolation options that were not selected in Job related UIs. The implementation is to disable itself, perform cleanup of configuration in provided buildDefition object.
      Specified by:
      disable in interface DockerHandler
      Parameters:
      buildDefinition -
      job -
    • disable

      public void disable(Environment environment)
      Description copied from interface: DockerHandler
      Called for Docker isolation options that were not selected in Environment related UIs.
      Specified by:
      disable in interface DockerHandler
      Parameters:
      environment -
    • appendConfiguration

      public void appendConfiguration(BuildConfiguration buildConfiguration, Map<String,Object> webFragmentsContextMap, boolean enabled)
      Specified by:
      appendConfiguration in interface DockerHandler