integrationtests

package
v2.8.0-nightly.20230727 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadAmazonParameters

func LoadAmazonParameters(t *testing.T) (string, string, string, string)

LoadAmazonParameters loads the test parameters for S3 object storage:

id - the key id credential
secret - the key secret credential
bucket - the S3 bucket to issue requests towards
region - the S3 region that the bucket is in

func LoadECSParameters

func LoadECSParameters(t *testing.T) (string, string, string, string, string)

LoadECSParameters loads the test parameters for ECS object storage (credentials can be requested for a new account from portal.ecstestdrive.com):

id - the key id credential
secret - the key secret credential
bucket - the ECS bucket to issue requests towards
region - a dummy region - some clients require this but it is unused with 'endpoint'
endpoint - the S3-compatible server to send requests to

func LoadGoogleHMACParameters

func LoadGoogleHMACParameters(t *testing.T) (string, string, string, string, string)

LoadGoogleHMACParameters loads the test parameters for GCS object storage, specifically for use with S3-compatible clients:

id - the key id credential
secret - the key secret credential
bucket - the GCS bucket to issue requests towards
region - the GCS region that the bucket is in
endpoint - the S3-compatible server to send requests to

func LoadGoogleParameters

func LoadGoogleParameters(t *testing.T) (string, string)

LoadGoogleParameters loads the test parameters for GCS object storage:

bucket - the GCS bucket to issue requests towards
creds - the JSON GCP credentials to use

func LoadMicrosoftParameters

func LoadMicrosoftParameters(t *testing.T) (string, string, string)

LoadMicrosoftParameters loads the test parameters for Azure blob storage:

id - the key id credential
secret - the key secret credential
container - the Azure blob container to issue requests towards

Types

type BackendType

type BackendType string

BackendType is used to tell the tests which backend is being tested so some testing can be skipped for backends that do not support certain behavior.

const (
	AmazonBackend BackendType = "Amazon"
	ECSBackend    BackendType = "ECS"
	GoogleBackend BackendType = "Google"
)

type ClientType

type ClientType string

ClientType is used to tell the tests which client is being tested so some testing can be skipped for clients that do not support certain behavior.

Jump to

Keyboard shortcuts

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