# Functions
CkRequest wraps CkReqFunc functions, to be concise and reduce lexical tokens i.e.
Compare compares a set of expected alert messages to those actually received.
CreateV3Session creates a session for client v4 using the passed in username and password.
CreateV4Session creates a session for client v4 using the passed in username and password.
CreateV5Session creates a session for client v5 using the passed in username and password.
ErrorsToStrings converts a slice of errors to a slice of their error messages.
FindNeedle searches a "haystack" slice of values for the the "needle" value, returning true if the value is in the haystack, false otherwise.
HasAlertLevel checks that the alert from the request matches the expected level.
HasError checks that an error was returned (i.e.
HasStatus checks that the status code from the request is as expected.
NoError checks that no error was returned (i.e.
ResponseHasLength checks that the length of the response is as expected.
ResponseLengthGreaterOrEqual checks that the response is greater or equal to the expected length.
# Structs
TestData represents the data needed for testing the api endpoints.
V3TestData represents the data needed for testing the v3 api endpoints.
V3TestDataT represents the data needed for testing the v3 api endpoints.
V4TestData represents the data needed for testing the v4 api endpoints.
V5TestData represents the data needed for testing the v5 api endpoints.
# Type aliases
CkReqFunc defines the reusable signature for all other functions that perform checks.
No description provided by the author
V3TestCase is the type of the V3TestData struct.
V3TestCaseT is the type of the V3TestDataT struct.
V4TestCase is the type of the V4TestData struct.
V5TestCase is a map of test names to maps of HTTP request method descriptions to V5TestData structures.