Documentation ¶
Index ¶
- func AssertDeleteNonexistentWorks(s3CLIPath string, cfg *config.S3Cli)
- func AssertGetNonexistentFails(s3CLIPath string, cfg *config.S3Cli)
- func AssertLifecycleWorks(s3CLIPath string, cfg *config.S3Cli)
- func GenerateRandomString() string
- func MakeConfigFile(cfg *config.S3Cli) string
- func MakeContentFile(content string) string
- func RunS3CLI(s3CLIPath string, configPath string, subcommand string, args ...string) (*gexec.Session, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertDeleteNonexistentWorks ¶
AssertDeleteNonexistentWorks asserts that `s3cli delete` on a non-existent object exits with status 0 (tests idempotency)
func AssertGetNonexistentFails ¶
AssertGetNonexistentFails asserts that `s3cli get` on a non-existent object will fail
func AssertLifecycleWorks ¶
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 ¶
MakeConfigFile creates a config file from a S3Cli config struct
func MakeContentFile ¶
MakeContentFile creates a temporary file with content to upload to S3
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.