Skip to content

Implementation of the s3aws Go SDK outside of Docker DTR for testing

License

Notifications You must be signed in to change notification settings

squizzi/s3-dtr-tester

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

s3-dtr-tester

This tool is used to test Docker Trusted Registry's integration of S3 Functionality outside of the DTR UI itself. It recreates the same test call made by Docker DTR within the s3aws storageDriver using the same version of AWS Go SDK that the s3aws storageDriver utilizes.

Usage

Using the flags specify an AWS Access Key, Secret Key, Region, Endpoint URL and desired Bucket for testing. A PutObject call will be made to create a file named with a UUID, the file will be checked for existence and if the test succeeds the file will be deleted.

docker run --rm -it squizzi/s3test -a <AWS Access Key> \
    -s <AWS Secret Key> \
    -r <AWS Region> \
    -e <AWS Endpoint URL> \
    -b <AWS Bucket>

The expected functional output should look like:

Successfully PutObject
Cleaning up...

About

Implementation of the s3aws Go SDK outside of Docker DTR for testing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published