Closed Blind-Striker closed 19 hours ago
Hey @bentsku, thank you for your quick response and effort, much appreciated 🙏 Can I test this fix using the localstack/localstack:latest container image?
Hi @Blind-Striker! No worries, sorry for not catching this issue in the first place. You should be able to test the fix with the latest
now, yes, the image has been published. Thanks again for your report, the reproducer was very appreciated 🙏
Hey @bentsku,
If you find it necessary or believe it would be useful, I’d be happy to contribute integration tests for at least the core AWS services in the LocalStack repo using the AWS SDK for .NET. Let me know if that sounds helpful!
Hey @Blind-Striker, it does sounds really nice! We don't really have other languages tests in our core repo at the moment, so I'm not sure what shape it would take, but I'd like to rope in @alexrashed and @silv-io for their opinions on this, as it would be really useful.
I know we've had other repos where we ran some pipelines against LocalStack to look for regression, with Terraform for example.
That's a great idea, and something we are missing. We do have some non-python integration tests using Lambdas as you can see here. And we do have some completely separated tests which run bash script tests for our helpers here.
I think it would make sense to run tests with other SDKs, maybe we could bootstrap a new pipeline / set of tests explicitly aiming at testing non-python SDKs? If this should become an acceptance criteria, we can move it into our main pipeline to block pushes of faulty images.
Is there an existing issue for this?
Current Behavior
Hello, I'm the maintainer of the LocalStack.NET client library. LocalStack.NET is a thin wrapper around the official aws-sdk-net just like localstack-python-client.
I've discovered issues related to any SNS-related operation when testing against LocalStack versions 3.7.2 and 3.8.0.
Notably, these operations are successful with the following previous version;
Description of the Problem: The operation fails when attempting any SN-related operation using the LocalStack.NET library. I think the logs provided below might offer more insight.
Test Scenario
Scenario Link: SnsService_Should_Create_A_Sns_Topic_Async
The test scenario above generates a GUID and uses it as the topic name when creating a SNS topic. The above is just an example. All other SNS-related operations also fail.
LocalStack Testcontainer setup
Mitmproxy raw request
Localstack container logs
AWS SDK.NET Exception
The
No moto route for service sns on path /ttp://sns.eu-central-1.amazonaws.com/ found.
exception message is interestingExpected Behavior
Using the LocalStack.NET library, all SNS-related operations should be successful, consistent with the behavior observed on LocalStack versions between 3.4.0 and 3.7.1
How are you starting LocalStack?
Custom (please describe below)
Steps To Reproduce
How are you starting localstack (e.g.,
bin/localstack
command, arguments, ordocker-compose.yml
)Using TestContainers with the specific configurations mentioned above.
Client commands (e.g., AWS SDK code snippet, or sequence of "awslocal" commands)
I’ve created an example repository to demonstrate this bug. Please follow the instructions in the README to reproduce it.
Environment
Anything else?
In the past, I had submitted two issues related to similar URL related problems: #8924 and #8928. These were resolved with PR #8962. I wanted to mention this in case it might be a similar problem.