1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-12-13 23:02:14 +03:00

Added a pre-test check for AWS creds, will fail gracefully

if there are none.
This commit is contained in:
Patrick LeBlanc
2019-03-26 16:03:18 -05:00
parent ed6caeb830
commit c6648ce91e

View File

@@ -877,6 +877,12 @@ void metadataUpdateTest()
void s3storageTest1()
{
if (!getenv("AWS_ACCESS_KEY_ID") || !getenv("AWS_SECRET_ACCESS_KEY"))
{
cout << "s3storageTest1 requires exporting your AWS creds, AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY" << endl;
return;
}
S3Storage s3;
bool exists;
int err;