testcontainers / testcontainers-dotnet

A library to support tests with throwaway instances of Docker containers for all compatible .NET Standard versions.
https://dotnet.testcontainers.org
MIT License
3.65k stars 250 forks source link

feat: Add Gitlab CE module #1135

Open Peet-HD opened 4 months ago

Peet-HD commented 4 months ago

What does this PR do?

Implemented a TestContainer for Gitlab. This can be used to test projects that use the API of gitlab without relying on an actual instance of gitlab.

Why is it important?

This can be super useful to create integration tests for projects that need access to the Gitlab-API. For example this can be used to test a tool that generates an merge request after running a custom pipeline.

How to test this PR

This PR can be tested if someone generates a personal access token and uses it to authenticates against the gitlab testcontainer.

To run this test in your shell:

dotnet test "tests/Testcontainers.Gitlab.Tests/Testcontainers.Gitlab.Tests.csproj"
netlify[bot] commented 4 months ago

Deploy Preview for testcontainers-dotnet ready!

Name Link
Latest commit b9aab6010f192fdffc646868fa1dfacb7ff5a6e2
Latest deploy log https://app.netlify.com/sites/testcontainers-dotnet/deploys/66545a4d4f49aa00083f618f
Deploy Preview https://deploy-preview-1135--testcontainers-dotnet.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

HofmeisterAn commented 3 months ago

Sorry for the late response. I will try to review the module next week.