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
Unable to disable Spring Cloud Secret Manager in local tests #2512
Comments
Have you tried moving |
@meltsufin Yes, I get the same error mentioned above. |
I was able to repro. |
@meltsufin Yes that seems to work, thank you! However, I still get this warning log when starting the tests, is there a way to get rid of this as well (without changing the log-level):
|
I did this and then the warning disappeared: spring:
cloud:
gcp:
secretmanager:
enabled: false
core:
enabled: false Thanks for your help! |
This relates to a question I've asked at stackoverflow.
We're using spring boot 3.2 and we're trying to upgrade the spring-cloud-gcp-starter-secretmanager from version 3.2.1 to 4.9.0. When we do this, our integrations tests fails with:
This is because we're running the test locally and Spring can't access Secret Manager locally. In version 3.2.1, we could however add a file,
bootstrap.yaml
in our test resources folder, that included the following:This disabled the secret manager when running our tests. But this doesn't seem to work anymore when upgrading
spring-cloud-gcp-starter-secretmanager
to 4.9.0. In the docs, it says that one should removespring.cloud.gcp.secretmanager.enabled
from thebootstrap.yaml
, which I've tried, but I still get the same error. The configuration docs still says that the property is namedspring-cloud-gcp-starter-secretmanager
though.Is this a bug? How can I run my integration test locally with Spring Cloud Secret Manager disabled? I.e. I'm looking for something similar to adding a
bootstrap.yaml
file withspring.cloud.gcp.secretmanager.enabled: false
, that worked in version 3.2.1, but not in version 4.9.0.The text was updated successfully, but these errors were encountered: