You've already forked pgbackrest
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:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user