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

Citrus Framework: Spring vs Spring Boot / spring-cloud-azure-starter-keyvault-secrets Usage #1180

Closed
pablopaul opened this issue Jun 24, 2024 · 2 comments

Comments

@pablopaul
Copy link

pablopaul commented Jun 24, 2024

Citrus Version
4.1.0

Question

  1. My understanding is that Citrus Framework uses Spring, but not Spring Boot. Is that correct?

I want to use spring-cloud-azure-starter-keyvault-secrets to securely store and retrieve a test secret. With the mentioned package it should be possible that a value in the application.properties file get replaced automagically with the according secret in a Azure key vault.

  1. Do you think this package should work with a Citrus Framework project or is it not expected to work since it needs a Spring Boot application?

  2. Would it be sensible and would you suggest to convert a Citrus Framework Spring project into a Citrus Framework Spring Boot project or is this non sense?

What I've tried so far

I have tried to integrate "spring-cloud-azure-starter-keyvault-secrets" as described in the official docs under "Use Spring Key Vault PropertySource".
The value in the application.properties does not get replaced as expected.

Thank you!

@pablopaul pablopaul changed the title Citrus Framework: Spring vs Spring Boot Citrus Framework: Spring vs Spring Boot / spring-cloud-azure-starter-keyvault-secrets usage Jun 24, 2024
@pablopaul pablopaul changed the title Citrus Framework: Spring vs Spring Boot / spring-cloud-azure-starter-keyvault-secrets usage Citrus Framework: Spring vs Spring Boot / spring-cloud-azure-starter-keyvault-secrets Usage Jun 24, 2024
@bbortt
Copy link
Collaborator

bbortt commented Jul 9, 2024

sorry for the late answer, but there you go... let me know if that helps.

automagically

never heard that one 😆 gave me a good laugh.

My understanding is that Citrus Framework uses Spring, but not Spring Boot. Is that correct?

partly. the core (citrus-api and citrus-base) have been written in pure java. citrus-spring is just another connector, but not a necessity.

this is also documented in the Maven chapter.

Do you think this package should work with a Citrus Framework project or is it not expected to work since it needs a Spring Boot application?

I would expect it to work out of the box, with regards to the comment below...

Would it be sensible and would you suggest to convert a Citrus Framework Spring project into a Citrus Framework Spring Boot project or is this non sense?

That is a sensible decision. You could then do something like the below:

@SpringBootTest(classes = { AzureConfiguration.class })
class MyTest {

    // Continue with the test here...
}

We do this almost all the time in my company.

@pablopaul
Copy link
Author

@bbortt thank you very much for taking the time to answer my questions in detail. Much appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants