Class NamespacePreparationListener

java.lang.Object
io.debezium.testing.system.listeners.NamespacePreparationListener
All Implemented Interfaces:
org.junit.platform.launcher.TestExecutionListener

public class NamespacePreparationListener extends Object implements org.junit.platform.launcher.TestExecutionListener
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • client

      private io.fabric8.openshift.client.OpenShiftClient client
    • projectNames

      private List<String> projectNames
  • Constructor Details

    • NamespacePreparationListener

      public NamespacePreparationListener()
  • Method Details

    • testPlanExecutionStarted

      public void testPlanExecutionStarted(org.junit.platform.launcher.TestPlan testPlan)
      Specified by:
      testPlanExecutionStarted in interface org.junit.platform.launcher.TestExecutionListener
    • testPlanExecutionFinished

      public void testPlanExecutionFinished(org.junit.platform.launcher.TestPlan testPlan)
      Specified by:
      testPlanExecutionFinished in interface org.junit.platform.launcher.TestExecutionListener
    • prepareNamespaces

      private void prepareNamespaces()
    • waitForDefaultServiceAccount

      private void waitForDefaultServiceAccount()
    • processNamespace

      private void processNamespace(String namespace, io.fabric8.openshift.api.model.ClusterRoleBindingBuilder anyuidBuilder, io.fabric8.openshift.api.model.ClusterRoleBindingBuilder privilegedBuilder)
    • addServiceAccountToClusterRoleBinding

      private void addServiceAccountToClusterRoleBinding(String saNamespace, io.fabric8.openshift.api.model.ClusterRoleBindingBuilder bindingBuilder)
    • validateSystemParameters

      private void validateSystemParameters()
      Check for invalid states of test parameters related to namespace preparation
    • namespacesExist

      private boolean namespacesExist()