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

Implement test resources control panel #15

Open
melix opened this issue Jul 5, 2023 · 4 comments
Open

Implement test resources control panel #15

melix opened this issue Jul 5, 2023 · 4 comments
Labels
type: enhancement New feature or request

Comments

@melix
Copy link

melix commented Jul 5, 2023

Feature description

It would be good to have a panel which allows listing the properties that test resources can resolve, and also their value. This can typically be useful if a user wants to connect to a test resources database from the IDE: they would need to know about the URL/username/password.

@alvarosanchez
Copy link
Member

This was implemented in Test Resources itself: micronaut-projects/micronaut-test-resources#432

What I wonder is: would it make sense to integrate both? @melix is there a way to know the TR control panel URL? to at least provide a link?

@alvarosanchez alvarosanchez added type: enhancement New feature or request and removed enhancement New feature or request labels Feb 21, 2024
@melix
Copy link
Author

melix commented Feb 21, 2024

is there a way to know the TR control panel URL? to at least provide a link?

A link to the control panel is displayed when the test resources service starts. Are you thinking of something different?

@alvarosanchez
Copy link
Member

Yes, what I was thinking is to provide a link in the application control panel to the TR control panel. Is there a way for this module to know the panel URL? Perhaps I could query a property and TR can resolve it?

@melix
Copy link
Author

melix commented Feb 21, 2024

Ah I see. I'm not sure there's an easy way to do this. The test resources control panel basically displays the list of resolvers. So if you add a control panel resolver, then it will be indeed added as a card that users can click on to get the URL. However this would mean that the control panel asks for a property to the test resources service. But what if the control panel module is not loaded in test resources? Another possible problem is that the URL will only be known once the app is started (because of the random port strategy for example).

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

No branches or pull requests

2 participants