public class ServiceLogsStreamingRunner extends Object implements org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.AfterAllCallback
BeforeAllCallback in order to provide the logic to retrieve the Service Logs Streaming
configurations and activating concrete ServiceLogs instances.
Workflow:SERVICE_LOGS_STREAMING_PROPERTY_ENABLED
is set and apply a configuration that will enable Service Logs Streaming for all the test classes in such a
caseSERVICE_LOGS_STREAMING_PROPERTY_ENABLED is not set, then check
whether the SERVICE_LOGS_STREAMING_PROPERTY_CONFIG is setSERVICE_LOGS_STREAMING_PROPERTY_CONFIG is set, create an
SystemPropertyBasedServiceLogsConfigurations instance for the property value and store it for the
current execution contextSERVICE_LOGS_STREAMING_PROPERTY_CONFIG is not set as well, create a
AnnotationBasedServiceLogsConfigurations and store it for the current execution contextServiceLogsSettings instance out of the relevant Service Logs Streaming
configurations, for it to be used by the current execution context test classPodLogs instance that implements the ServiceLogs interface for a k8s based
Cloud environmentServiceLogs.start() to start the PodLogs for the current execution context test
class| Constructor and Description |
|---|
ServiceLogsStreamingRunner() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterAll(org.junit.jupiter.api.extension.ExtensionContext context) |
void |
beforeAll(org.junit.jupiter.api.extension.ExtensionContext context) |
public void beforeAll(org.junit.jupiter.api.extension.ExtensionContext context)
beforeAll in interface org.junit.jupiter.api.extension.BeforeAllCallbackpublic void afterAll(org.junit.jupiter.api.extension.ExtensionContext context)
afterAll in interface org.junit.jupiter.api.extension.AfterAllCallbackCopyright © 2023. All rights reserved.