public class NamespaceManager extends Object
| Constructor and Description |
|---|
NamespaceManager() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addTestCaseToNamespaceEntryIfAbsent(org.junit.platform.engine.TestDescriptor testDescriptor)
Add mapping test case name -> (automatically generated) namespace for given test case if absent
|
static boolean |
createIfDoesNotExistsProject()
Creates namespace with name returned by @see #getNamespace if it does not exist
|
static boolean |
createIfDoesNotExistsProject(String namespace)
Creates namespace if it does not exist
|
static boolean |
deleteProject(boolean waitForDeletion)
Deletes namespace as returned by @see #getNamespace
|
static boolean |
deleteProject(String namespace,
boolean waitForDeletion)
Deletes namespace
|
static String |
getNamespace() |
public static boolean createIfDoesNotExistsProject()
public static boolean createIfDoesNotExistsProject(String namespace)
public static boolean deleteProject(boolean waitForDeletion)
waitForDeletion - whether to wait for deletion (timeout 2 min)public static boolean deleteProject(String namespace, boolean waitForDeletion)
namespace - namespace name to deletewaitForDeletion - whether to wait for deletion (timeout 2 min)public static void addTestCaseToNamespaceEntryIfAbsent(org.junit.platform.engine.TestDescriptor testDescriptor)
testDescriptor - test descriptorpublic static String getNamespace()
RuntimeException exception is thrown.Copyright © 2022. All rights reserved.