s3test

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package s3test gives tests an S3 store:

  • MINIO set to a minio binary: a store started on a free port, with a bucket. The version CI uses: go install github.com/minio/minio@RELEASE.2025-09-07T16-13-09Z
  • or S3_TEST_ENDPOINT, S3_TEST_REGION, S3_TEST_BUCKET, S3_TEST_ACCESS_KEY and S3_TEST_SECRET_KEY for a store that runs already (the bucket must exist).

Without either the tests are skipped, or fail when S3_TEST_REQUIRED is set. Each test gets a prefix of its own, emptied when it ends.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Stop

func Stop()

Stop stops the store started, if any. TestMain calls it.

func Store

func Store(t testing.TB) (s3.Config, string)

Store is the test store and a prefix of the test's own, ending in "/".

Types

This section is empty.

Jump to

Keyboard shortcuts

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