Skip to content

Commit

Permalink
Cherry pick branch 'genexuslabs:storage-unittest-localstack' into beta
Browse files Browse the repository at this point in the history
  • Loading branch information
Gonzalo Gallotti Vazquez authored and Beta Bot committed Jan 8, 2025
1 parent 888a49b commit 574a87f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/External-Storage-Tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ jobs:
STORAGE_AWSS3_FOLDER_NAME: "gxclasses"
STORAGE_AWSS3_REGION: "us-east-1"
STORAGE_AWSS3_ENDPOINT: "custom"
S3_SKIP_URL_SIGNATURE_TEST: "true"
STORAGE_AWSS3_CUSTOM_ENDPOINT: "http://localhost:4566"
IBMCOS_TEST_ENABLED: "true"
STORAGE_IBMCOS_ACCESS_KEY: "${{ secrets.IBMCOS_ACCESS_KEY }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,15 @@ private static void Wait(int milliseconds)
private void EnsureUrl(String signedOrUnsignedUrl, GxFileType acl)
{
Assert.True(UrlExists(signedOrUnsignedUrl), "URL not found: " + signedOrUnsignedUrl);
if (IsPrivateFile(acl))

bool skipUrlSignatureTests = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("S3_SKIP_URL_SIGNATURE_TEST"));
if (skipUrlSignatureTests)
{
return;
}

if (IsPrivateFile(acl))
{
if (!(this is ExternalProviderMinioTest)) //Minio local installation not supported
{
Skip.If(this is ExternalProviderMinioTest);
Expand Down

0 comments on commit 574a87f

Please sign in to comment.