integration

package
v0.0.33 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2016 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertDeleteNonexistentWorks

func AssertDeleteNonexistentWorks(s3CLIPath string, cfg *config.S3Cli)

AssertDeleteNonexistentWorks asserts that `s3cli delete` on a non-existent object exits with status 0 (tests idempotency)

func AssertGetNonexistentFails

func AssertGetNonexistentFails(s3CLIPath string, cfg *config.S3Cli)

AssertGetNonexistentFails asserts that `s3cli get` on a non-existent object will fail

func AssertLifecycleWorks

func AssertLifecycleWorks(s3CLIPath string, cfg *config.S3Cli)

AssertLifecycleWorks tests the main blobstore object lifecycle from creation to deletion

func GenerateRandomString

func GenerateRandomString() string

GenerateRandomString generates a random string of len 25

func MakeConfigFile

func MakeConfigFile(cfg *config.S3Cli) string

MakeConfigFile creates a config file from a S3Cli config struct

func MakeContentFile

func MakeContentFile(content string) string

MakeContentFile creates a temporary file with content to upload to S3

func RunS3CLI

func RunS3CLI(s3CLIPath string, configPath string, subcommand string, args ...string) (*gexec.Session, error)

RunS3CLI runs the s3cli and outputs the session after waiting for it to finish

Types

This section is empty.

Jump to

Keyboard shortcuts

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