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

Support for passing a system property #234

Open
filiphr opened this issue Jan 17, 2022 · 2 comments
Open

Support for passing a system property #234

filiphr opened this issue Jan 17, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@filiphr
Copy link

filiphr commented Jan 17, 2022

I would like to be able to pass a System property from the current execution to the new invocation.

Currently with @SystemProperty I can only provide a fix value.

Would you be interested in adding a new method (property) to SystemProperty and if it is set extract the value from that system property otherwise use the configured content. We are ready to work on this contribution to the project in case you are interested in this functionality.

@filiphr filiphr added the enhancement New feature or request label Jan 17, 2022
@khmarbaise
Copy link
Owner

The question is why do you need to pass a system property from the current execution to the integration test? Can you give a concrete example? Best would be a full working example...

@filiphr
Copy link
Author

filiphr commented Jan 18, 2022

We are using this extension to test different access policies to our artifacts. We create a pom.xml with a set of artifacts (same as our users will use), we then have a specific settings.xml (same as our users will use), this settings.xml needs access to a private repository, which means that we somehow need to pass the password property. We don't want to pass this password property as plain text in our source code, but we want to pass it through a secret as a system property to the test invocation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants