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

Consider using a URI Template for test_config #373

Open
MartinFlores751 opened this issue Nov 21, 2024 · 0 comments
Open

Consider using a URI Template for test_config #373

MartinFlores751 opened this issue Nov 21, 2024 · 0 comments
Assignees
Labels
Milestone

Comments

@MartinFlores751
Copy link
Contributor

URI Template RFC for those curious: https://www.rfc-editor.org/info/rfc6570

The following three lines can be merged into one:

'host': 'localhost',
'port': 9000,
'url_base': '/irods-http-api/<version>',

The option would end up looking like the following:

'test_uri': 'http://localhost:9000/irods-http-api/{version}'

And can be validated using 'format': 'uri-template' in the JSON schema.

We can then substitute the version in code, if we desire for more automated tests as well.

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

No branches or pull requests

2 participants