Class DefaultConfiguration
java.lang.Object
org.arquillian.cube.kubernetes.impl.DefaultConfiguration
- All Implemented Interfaces:
Configuration
-
Field Summary
Fields inherited from interface org.arquillian.cube.kubernetes.api.Configuration
ANSI_LOGGER_ENABLED, API_VERSION, AUTH_TOKEN, DEFAULT_CONFIG_FILE_NAME, DEFAULT_FMP_PATH, DEFAULT_NAMESPACE_CLEANUP_TIMEOUT, DEFAULT_NAMESPACE_DESTROY_TIMEOUT, DEFAULT_NAMESPACE_LAZY_CREATE_ENABLED, DEFAULT_WAIT_POLL_INTERVAL, DEFAULT_WAIT_TIMEOUT, DOCKER_REGISTRY_FORMAT, DOCKER_REGISTRY_HOST, DOCKER_REGISTRY_PORT, DOCKER_REGISTY, DOMAIN, ENVIRONMENT_CONFIG_RESOURCE_NAME, ENVIRONMENT_CONFIG_URL, ENVIRONMENT_DEPENDENCIES, ENVIRONMENT_INIT_ENABLED, ENVIRONMENT_SCRIPT_ENV, ENVIRONMENT_SETUP_SCRIPT_URL, ENVIRONMENT_TEARDOWN_SCRIPT_URL, FALLBACK_CLIENT_CONFIG, FMP_BUILD, FMP_BUILD_DISABLE_FOR_MAVEN, FMP_BUILD_OPTIONS, FMP_DEBUG_OUTPUT, FMP_LOGS, FMP_POM_PATH, FMP_PROFILES, FMP_SYSTEM_PROPERTIES, KUBERNETES_DOMAIN, KUBERNETES_MASTER, KUBERNETES_NAMESPACE, LOGS_COPY, LOGS_PATH, MASTER_URL, NAMESPACE, NAMESPACE_CLEANUP_CONFIRM_ENABLED, NAMESPACE_CLEANUP_ENABLED, NAMESPACE_CLEANUP_TIMEOUT, NAMESPACE_DESTROY_CONFIRM_ENABLED, NAMESPACE_DESTROY_ENABLED, NAMESPACE_DESTROY_TIMEOUT, NAMESPACE_LAZY_CREATE_ENABLED, NAMESPACE_PREFIX, NAMESPACE_TO_USE, NAMESPACE_USE_CURRENT, PASSWORD, TRUST_CERTS, USERNAME, WAIT_ENABLED, WAIT_FOR_SERVICE_LIST, WAIT_POLL_INTERVAL, WAIT_TIMEOUT -
Constructor Summary
ConstructorsConstructorDescriptionDefaultConfiguration(String sessionId, URL masterUrl, String namespace, Map<String, String> scriptEnvironmentVariables, URL environmentSetupScriptUrl, URL environmentTeardownScriptUrl, URL environmentConfigUrl, List<URL> environmentDependencies, boolean namespaceUseCurrentEnabled, boolean namespaceLazyCreateEnabled, boolean namespaceCleanupEnabled, long namespaceCleanupTimeout, boolean namespaceCleanupConfirmationEnabled, boolean namespaceDestroyEnabled, boolean namespaceDestroyConfirmationEnabled, long namespaceDestroyTimeout, boolean waitEnabled, long waitTimeout, long waitPollInterval, List<String> waitForServiceList, boolean ansiLoggerEnabled, boolean environmentInitEnabled, boolean logCopyEnabled, String logPath, String kubernetesDomain, String dockerRegistry, String token, String username, String password, String apiVersion, boolean trustCerts, boolean fmpBuildEnabled, boolean fmpBuildForMavenDisable, boolean fmpDebugOutput, boolean fmpLogsEnabled, String fmpPomPath, List<String> fmpProfiles, List<String> fmpSystemProperties, String fmpBuildOptions) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendPropertyWithValue(StringBuilder content, String property, Object value) static URLConvert a string to a URL and fallback to classpath resource, if not convertible.static URLfindConfigResource(String resourceName) Returns the URL of a classpath resource.static DefaultConfigurationstatic StringgetDockerRegistry(Map<String, String> map) static URLApplies the kubernetes json url to the configuration.longlonggetToken()longlongbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanprotected voidtoString()
-
Constructor Details
-
DefaultConfiguration
public DefaultConfiguration(String sessionId, URL masterUrl, String namespace, Map<String, String> scriptEnvironmentVariables, URL environmentSetupScriptUrl, URL environmentTeardownScriptUrl, URL environmentConfigUrl, List<URL> environmentDependencies, boolean namespaceUseCurrentEnabled, boolean namespaceLazyCreateEnabled, boolean namespaceCleanupEnabled, long namespaceCleanupTimeout, boolean namespaceCleanupConfirmationEnabled, boolean namespaceDestroyEnabled, boolean namespaceDestroyConfirmationEnabled, long namespaceDestroyTimeout, boolean waitEnabled, long waitTimeout, long waitPollInterval, List<String> waitForServiceList, boolean ansiLoggerEnabled, boolean environmentInitEnabled, boolean logCopyEnabled, String logPath, String kubernetesDomain, String dockerRegistry, String token, String username, String password, String apiVersion, boolean trustCerts, boolean fmpBuildEnabled, boolean fmpBuildForMavenDisable, boolean fmpDebugOutput, boolean fmpLogsEnabled, String fmpPomPath, List<String> fmpProfiles, List<String> fmpSystemProperties, String fmpBuildOptions)
-
-
Method Details
-
fromMap
-
getDockerRegistry
- Throws:
MalformedURLException
-
getKubernetesConfigurationUrl
public static URL getKubernetesConfigurationUrl(Map<String, String> map) throws MalformedURLExceptionApplies the kubernetes json url to the configuration.- Parameters:
map- The arquillian configuration.- Throws:
MalformedURLException
-
findConfigResource
Returns the URL of a classpath resource.- Parameters:
resourceName- The name of the resource.- Returns:
- The URL.
-
asUrlOrResource
Convert a string to a URL and fallback to classpath resource, if not convertible.- Parameters:
s- The string to convert.- Returns:
- The URL.
-
parseMap
- Throws:
IOException
-
getSessionId
- Specified by:
getSessionIdin interfaceConfiguration
-
getNamespace
- Specified by:
getNamespacein interfaceConfiguration
-
getMasterUrl
- Specified by:
getMasterUrlin interfaceConfiguration
-
getScriptEnvironmentVariables
- Specified by:
getScriptEnvironmentVariablesin interfaceConfiguration
-
getEnvironmentSetupScriptUrl
- Specified by:
getEnvironmentSetupScriptUrlin interfaceConfiguration
-
getEnvironmentTeardownScriptUrl
- Specified by:
getEnvironmentTeardownScriptUrlin interfaceConfiguration
-
getEnvironmentConfigUrl
- Specified by:
getEnvironmentConfigUrlin interfaceConfiguration
-
getEnvironmentDependencies
- Specified by:
getEnvironmentDependenciesin interfaceConfiguration
-
isNamespaceLazyCreateEnabled
public boolean isNamespaceLazyCreateEnabled()- Specified by:
isNamespaceLazyCreateEnabledin interfaceConfiguration
-
isNamespaceCleanupEnabled
public boolean isNamespaceCleanupEnabled()- Specified by:
isNamespaceCleanupEnabledin interfaceConfiguration
-
getNamespaceCleanupTimeout
public long getNamespaceCleanupTimeout()- Specified by:
getNamespaceCleanupTimeoutin interfaceConfiguration
-
isNamespaceCleanupConfirmationEnabled
public boolean isNamespaceCleanupConfirmationEnabled()- Specified by:
isNamespaceCleanupConfirmationEnabledin interfaceConfiguration
-
isNamespaceDestroyEnabled
public boolean isNamespaceDestroyEnabled()- Specified by:
isNamespaceDestroyEnabledin interfaceConfiguration
-
isNamespaceDestroyConfirmationEnabled
public boolean isNamespaceDestroyConfirmationEnabled()- Specified by:
isNamespaceDestroyConfirmationEnabledin interfaceConfiguration
-
isNamespaceUseCurrentEnabled
public boolean isNamespaceUseCurrentEnabled()- Specified by:
isNamespaceUseCurrentEnabledin interfaceConfiguration
-
getNamespaceDestroyTimeout
public long getNamespaceDestroyTimeout()- Specified by:
getNamespaceDestroyTimeoutin interfaceConfiguration
-
isWaitEnabled
public boolean isWaitEnabled()- Specified by:
isWaitEnabledin interfaceConfiguration
-
getWaitTimeout
public long getWaitTimeout()- Specified by:
getWaitTimeoutin interfaceConfiguration
-
getWaitPollInterval
public long getWaitPollInterval()- Specified by:
getWaitPollIntervalin interfaceConfiguration
-
getWaitForServiceList
- Specified by:
getWaitForServiceListin interfaceConfiguration
-
isAnsiLoggerEnabled
public boolean isAnsiLoggerEnabled()- Specified by:
isAnsiLoggerEnabledin interfaceConfiguration
-
isEnvironmentInitEnabled
public boolean isEnvironmentInitEnabled()- Specified by:
isEnvironmentInitEnabledin interfaceConfiguration
-
isLogCopyEnabled
public boolean isLogCopyEnabled()- Specified by:
isLogCopyEnabledin interfaceConfiguration
-
getLogPath
- Specified by:
getLogPathin interfaceConfiguration
-
getKubernetesDomain
- Specified by:
getKubernetesDomainin interfaceConfiguration
-
getDockerRegistry
- Specified by:
getDockerRegistryin interfaceConfiguration
-
hasBasicAuth
public boolean hasBasicAuth() -
getUsername
- Specified by:
getUsernamein interfaceConfiguration
-
getPassword
- Specified by:
getPasswordin interfaceConfiguration
-
getApiVersion
- Specified by:
getApiVersionin interfaceConfiguration
-
getToken
- Specified by:
getTokenin interfaceConfiguration
-
isTrustCerts
public boolean isTrustCerts()- Specified by:
isTrustCertsin interfaceConfiguration
-
isFmpBuildForMavenDisable
public boolean isFmpBuildForMavenDisable()- Specified by:
isFmpBuildForMavenDisablein interfaceConfiguration
-
isFmpDebugOutput
public boolean isFmpDebugOutput()- Specified by:
isFmpDebugOutputin interfaceConfiguration
-
isFmpLogsEnabled
public boolean isFmpLogsEnabled()- Specified by:
isFmpLogsEnabledin interfaceConfiguration
-
isFmpBuildEnabled
public boolean isFmpBuildEnabled()- Specified by:
isFmpBuildEnabledin interfaceConfiguration
-
getFmpPomPath
- Specified by:
getFmpPomPathin interfaceConfiguration
-
getFmpBuildOptions
- Specified by:
getFmpBuildOptionsin interfaceConfiguration
-
getFmpProfiles
- Specified by:
getFmpProfilesin interfaceConfiguration
-
getFmpSystemProperties
- Specified by:
getFmpSystemPropertiesin interfaceConfiguration
-
setToken
-
toString
-
appendPropertyWithValue
-