package
0.0.0-20240927024014-8a6412534070
Repository: https://github.com/oracle/coherence-cli.git
Documentation: pkg.go.dev
# Functions
CleanupConfigFileAfterTest cleans up a config file after a test.
CleanupDirectoryAfterTest cleans up a directory after a test.
CollectDockerLogs collects docker logs.
CreateNewConfigYaml creates a full path of a new directory and config.
CreateTempDirectory creates a temporary directory.
DockerComposeDown runs docker compose down on a given file.
DockerComposeUp runs docker compose up on a given file.
EnsureCommandContains executes a command and checks that it contains the output expected.
EnsureCommandContainsAll executes a command and checks that it contains all the comma separated values in expectedCSV.
EnsureCommandErrorContains executes a command and checks that the error contains expected output.
EnsureCommandNotContains executes a command and checks that it does not contain the output expected.
EnsureCommandOutputEquals executes a command and checks that it equals the output expected.
ExecuteCommand executes a given command with the arguments provided.
ExecuteHostCommand executes a host command.
FileExistsInDirectory returns true if a file exists in a directory.
GetCommandOutput returns the output from a command.
GetFilePath returns the file path of a file.
GetManagementUrl returns the management URL given a management port.
GetRestUrl returns the REST URL.
GetTestContext gets the current context.
IssueGetRequest issues a HTTP GET request using the URL.
IssuePostRequest issues a HTTP POST request using the URL.
SetTestContext sets the current context.
Sleep will sleep for a duration of seconds.
StartCoherenceCluster starts a Coherence cluster.
StartDockerImage starts a coherence image using docker.
StopDockerImage stops a docker image with the given name.
WaitForHttpBalancedServices waits for all services to be balanced.
WaitForHttpReady waits for the HTTP endpoint to be ready.
WaitForIdlePersistence waits for idle persistence coordinator which means the last operation has completed.
# Structs
TestContext is a context to pass to tests.