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

chore: Remove PulsarContainer.CreateAuthenticationTokenAsync(TimeSpan) default arg #1195

Merged

Conversation

entvex
Copy link
Contributor

@entvex entvex commented Jun 12, 2024

What does this PR do?

This update modifies the CreateAuthenticationTokenAsync to accept an expiry time, including an option for infinite expiration. In addition, the PulsarContainerTest and Pulsar documentation have been updated accordingly.

Why is it important?

It’s essential for end users to have clarity about the lifespan of a token. By requiring them to set an expiry time, any uncertainty is eliminated. Additionally, we now offer support for tokens that never expire.

How to test this PR

This is covered by the updated tests

This update modifies the CreateAuthenticationTokenAsync function to accept an expiry time, including an option for infinite expiration. In addition, the PulsarContainerTest and Pulsar documentation have been updated accordingly. The function still warns of a known regression issue when image tags start with "3.2" or "latest", converting the expiry time unit improperly.
Copy link

netlify bot commented Jun 12, 2024

Deploy Preview for testcontainers-dotnet ready!

Name Link
🔨 Latest commit 13679a3
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-dotnet/deploys/6669603d7f073b00085e16a0
😎 Deploy Preview https://deploy-preview-1195--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 HofmeisterAn changed the title Pulsar Module Changed CreateAuthenticationTokenAsync method signature chore: Remove PulsarContainer.CreateAuthenticationTokenAsync(TimeSpan) default arg Jun 13, 2024
@HofmeisterAn HofmeisterAn added the chore A change that doesn't impact the existing functionality, e.g. internal refactorings or cleanups label Jun 13, 2024
Copy link
Collaborator

@HofmeisterAn HofmeisterAn left a comment

Choose a reason for hiding this comment

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

Thanks 💪.

@HofmeisterAn HofmeisterAn merged commit b5c926a into testcontainers:develop Jun 13, 2024
11 checks passed
@entvex entvex deleted the Apache-Pulsar-method-signatur branch August 12, 2024 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore A change that doesn't impact the existing functionality, e.g. internal refactorings or cleanups
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants