ClientInfo defines the data for client information.
type ClientInfo struct { Language string `json:"language"` }
DataToValidate defines the data that needs to be sent back to oci testing service for validation in a successful scenario.
type DataToValidate struct { // The id of container that generates the request. ContainerID string `json:"containerId"` // The type of request object. For example: "com.oracle.bmc.core.requests.CreatePublicIpRequest" RequestClass string `json:"requestClass"` // The request object in json string. RequestJSON string `json:"requestJson"` // The type of response object. ResponseClass string `json:"responseClass"` // The response object in json string. ResponseJSON string `json:"responseJson"` // IsListResponse if the response is a list of responses IsListResponse bool `json:"listResponse"` }
func (d DataToValidate) String() string
ErrorToValidate struct defines the data that needs to be sent back to oci testing service for validation in failure scenario.
type ErrorToValidate struct { // The id of container that generates the request. ContainerID string `json:"containerId"` // The type of request object. For example: "com.oracle.bmc.core.requests.CreatePublicIpRequest" RequestClass string `json:"requestClass"` // The request object in json string. RequestJSON string `json:"requestJson"` // The error object in json string. For example: // "{\"statusCode\":400,\"code\":\"InvalidParameter\",\"message\":\"compartmentId size must be between 1 and 255\"}" ErrorJSON string `json:"errorJson"` }
func (d ErrorToValidate) String() string
OCITestClient a client for the oci-testing-service
type OCITestClient struct { HTTPClient http.Client ServiceEndpoint string SessionID string Log *log.Logger IgnoreHttpBodies bool }
func NewOCITestClient() *OCITestClient
NewOCITestClient creates a client for the oci-testing-service
PolymorphicRequestUnmarshallingInfo holds all the information to marshal a polymorphic request into a concrete type
type PolymorphicRequestUnmarshallingInfo struct { //The name of polymorphic discriminator DiscriminatorName string //A map of values of the discriminator field to non-zero interfaces that can be used to unmarshall json for the value of //the discriminator DiscriminatorValuesAndTypes map[string]interface{} }
type TestConfiguration struct { ConfigurationProvider common.ConfigurationProvider CompartmentID string }
type TestingConfig struct { Region string `json:"region"` TenantID string `json:"tenantId"` CompartmentID string `json:"compartmentId"` UserID string `json:"userId"` Endpoint string `json:"endpoint"` Fingerprint string `json:"fingerprint"` PassPhrase string `json:"passPhrase"` KeyFile string `json:"keyFile"` KeyFileContent string `json:"keyFileContent"` TestMode string `json:"testMode"` }