Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Local Stack for External Storage UnitTesting #1095

Merged
merged 18 commits into from
Jan 9, 2025

Conversation

ggallotti
Copy link
Member

@ggallotti ggallotti commented Jan 7, 2025

This PR integrates LocalStack into the GitHub Actions pipeline for testing purposes. It adds the following steps:

  1. Install Docker: Ensures Docker is set up to run containers.
  2. Start LocalStack: Runs LocalStack in a Docker container, simulating AWS services locally (e.g., S3, DynamoDB).
  3. Configure AWS CLI: Configures the AWS CLI to interact with the LocalStack instance, including fake AWS credentials and the custom LocalStack endpoint (http://localhost:4566).
  4. Create S3 Bucket: Creates an S3 bucket in LocalStack for testing purposes.
  5. Install .NET 8: Installs .NET 8 SDK to build and test .NET applications.
  6. Restore and Build .NET Project: Restores packages and builds the solution.
  7. Run Tests: Executes tests on the solution, with environment variables configured for AWS S3 through LocalStack.

This setup enables testing of cloud storage interactions in a local environment without needing access to real AWS services.

@ggallotti ggallotti requested a review from a team as a code owner January 7, 2025 19:29
@ggallotti ggallotti had a problem deploying to external-storage-tests January 7, 2025 19:29 — with GitHub Actions Failure
@genexusbot
Copy link
Collaborator

Cherry pick to beta success

@ggallotti ggallotti had a problem deploying to external-storage-tests January 7, 2025 19:33 — with GitHub Actions Failure
@genexusbot
Copy link
Collaborator

Cherry pick to beta success

@ggallotti ggallotti had a problem deploying to external-storage-tests January 7, 2025 19:35 — with GitHub Actions Failure
@genexusbot
Copy link
Collaborator

Cherry pick to beta success

@genexusbot
Copy link
Collaborator

Cherry pick to beta success

@genexusbot
Copy link
Collaborator

Cherry pick to beta success

@genexusbot
Copy link
Collaborator

Cherry pick to beta success

@genexusbot
Copy link
Collaborator

Cherry pick to beta success

@genexusbot
Copy link
Collaborator

Cherry pick to beta success

…separators in the DumpProjectsAndCoreTests MSBuild task.
@genexusbot
Copy link
Collaborator

Cherry pick to beta success

Fix System.TypeInitializationException : The type initializer for 'Gdip' threw an exception.
System.DllNotFoundException : Unable to load shared library 'libgdiplus' or one of its dependencies. In order to help diagnose loading problems, consider using a tool like strace. If you're using glibc,
@genexusbot
Copy link
Collaborator

Cherry pick to beta success

@genexusbot
Copy link
Collaborator

Cherry pick to beta success

@genexusbot
Copy link
Collaborator

Cherry pick to beta success

@genexusbot
Copy link
Collaborator

Cherry pick to beta success

@genexusbot
Copy link
Collaborator

Cherry pick to beta success

@ggallotti ggallotti had a problem deploying to external-storage-tests January 8, 2025 14:28 — with GitHub Actions Failure
@genexusbot
Copy link
Collaborator

Cherry pick to beta success

@ggallotti ggallotti had a problem deploying to external-storage-tests January 8, 2025 14:47 — with GitHub Actions Failure
@genexusbot
Copy link
Collaborator

Cherry pick to beta success

@ggallotti ggallotti temporarily deployed to external-storage-tests January 8, 2025 14:56 — with GitHub Actions Inactive
@genexusbot
Copy link
Collaborator

Cherry pick to beta success

@claudiamurialdo claudiamurialdo temporarily deployed to external-storage-tests January 8, 2025 15:57 — with GitHub Actions Inactive
@genexusbot
Copy link
Collaborator

Cherry pick to beta success

Copy link
Collaborator

@claudiamurialdo claudiamurialdo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎊

@claudiamurialdo claudiamurialdo merged commit 93a6392 into master Jan 9, 2025
9 checks passed
@claudiamurialdo claudiamurialdo deleted the storage-unittest-localstack branch January 9, 2025 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants