1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-07-15 01:04:37 +02:00

Add test function to create the S3 bucket instead of using aws cli.

Eventually the idea is to remove the dependency on aws cli since Python is a big install.
This commit is contained in:
David Steele
2019-06-26 15:02:30 -04:00
parent 4815752ccc
commit 4bffa0c5bb
5 changed files with 57 additions and 4 deletions

View File

@ -122,9 +122,6 @@ sub setup
if (defined($oHostS3))
{
$oHostGroup->hostAdd($oHostS3, {rstryHostName => ['pgbackrest-dev.s3.amazonaws.com', 's3.amazonaws.com']});
# Wait for server to start
$oHostS3->executeS3('mb s3://' . HOST_S3_BUCKET);
}
# Create db master config
@ -186,6 +183,12 @@ sub setup
$self->configTestLoad(CFGCMD_ARCHIVE_PUSH);
# Create S3 bucket
if (defined($oHostS3))
{
storageRepo()->{oStorageC}->bucketCreate();
}
return $oHostDbMaster, $oHostDbStandby, $oHostBackup, $oHostS3;
}