-
Context:My application is dependent on Amazon SecretsManager. On startup,
So for local development i can run Here's my test:
Approach 1 - use "automaticly created" Testcontainers:I set up dependencies and properties that runs localstack "automatically". Ofc i can do "secret checkup and creation" before every test, but that is not time and code efficient. Approach 2 - use my own Testcontainer:I turned off devservices and created a class that implements QuarkusTestResourceLifecycleManager and used it in the test with
But in this case SecretsManagerClient from LambdaSecurityProvider is not able to automatically get localstack address and it fails with 404 ( Conclusions:I have no idea how to proceed with this. Mby you could advice something? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Ok. Basically using approach 2 and adding But there must be a better way to do secrets creation using just configuration and devservices. I saw a PR that addressed this issue but it was closed without merging. #saddog.jpg |
Beta Was this translation helpful? Give feedback.
Ok. Basically using approach 2 and adding
System.setProperty("quarkus.secretsmanager.endpoint-override", localStackContainer.getEndpoint().toString());
fix the issue.But there must be a better way to do secrets creation using just configuration and devservices. I saw a PR that addressed this issue but it was closed without merging. #saddog.jpg
I'll cc it's author, mby he will know more about this topic @scrocquesel