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 Summary
FieldsModifier and TypeFieldDescriptionprivate io.fabric8.openshift.client.OpenShiftClientprivate static final org.slf4j.Logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddServiceAccountToClusterRoleBinding(String saNamespace, io.fabric8.openshift.api.model.ClusterRoleBindingBuilder bindingBuilder) private voidprivate booleanprivate io.fabric8.openshift.api.model.ClusterRoleBindingBuilderprivate voidprivate io.fabric8.openshift.api.model.ClusterRoleBindingBuilderprivate voidprocessNamespace(String namespace, io.fabric8.openshift.api.model.ClusterRoleBindingBuilder anyuidBuilder, io.fabric8.openshift.api.model.ClusterRoleBindingBuilder privilegedBuilder) voidtestPlanExecutionFinished(org.junit.platform.launcher.TestPlan testPlan) voidtestPlanExecutionStarted(org.junit.platform.launcher.TestPlan testPlan) private voidCheck for invalid states of test parameters related to namespace preparationprivate voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.junit.platform.launcher.TestExecutionListener
dynamicTestRegistered, executionFinished, executionSkipped, executionStarted, reportingEntryPublished
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
client
private io.fabric8.openshift.client.OpenShiftClient client -
projectNames
-
-
Constructor Details
-
NamespacePreparationListener
public NamespacePreparationListener()
-
-
Method Details
-
testPlanExecutionStarted
public void testPlanExecutionStarted(org.junit.platform.launcher.TestPlan testPlan) - Specified by:
testPlanExecutionStartedin interfaceorg.junit.platform.launcher.TestExecutionListener
-
testPlanExecutionFinished
public void testPlanExecutionFinished(org.junit.platform.launcher.TestPlan testPlan) - Specified by:
testPlanExecutionFinishedin interfaceorg.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 -
prepareAnyUidBindingBuilder
private io.fabric8.openshift.api.model.ClusterRoleBindingBuilder prepareAnyUidBindingBuilder() -
preparePrivilegedBindingBuilder
private io.fabric8.openshift.api.model.ClusterRoleBindingBuilder preparePrivilegedBindingBuilder() -
deleteNamespaces
private void deleteNamespaces() -
isOcpAvailable
private boolean isOcpAvailable()
-