autotest

package
v33.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2021 License: Apache-2.0, UPL-1.0 Imports: 20 Imported by: 0

Documentation

Overview

Package autotest contains all auto generated integration test cases

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientInfo

type ClientInfo struct {
	Language string `json:"language"`
}

The struct defines the data for client information.

type DataToValidate

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"`
}

DataToValidate defines the data that needs to be sent back to oci testing service for validation in a successful scenario.

func (DataToValidate) String

func (d DataToValidate) String() string

type ErrorToValidate

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"`
}

ErrorToValidate struct defines the data that needs to be sent back to oci testing service for validation in failure scenario.

func (ErrorToValidate) String

func (d ErrorToValidate) String() string

type OCITestClient

type OCITestClient struct {
	HTTPClient       http.Client
	ServiceEndpoint  string
	SessionID        string
	Log              *log.Logger
	IgnoreHttpBodies bool
}

OCITestClient a client for the oci-testing-service

func NewOCITestClient

func NewOCITestClient() *OCITestClient

NewOCITestClient creates a client for the oci-testing-service

type PolymorphicRequestUnmarshallingInfo

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{}
}

PolymorphicRequestUnmarshallingInfo holds all the information to marshal a polymorphic request into a concrete type

type TestConfiguration

type TestConfiguration struct {
	ConfigurationProvider common.ConfigurationProvider
	CompartmentID         string
}

type TestingConfig

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL