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

URL quoting for matrix parameters #409

Merged
merged 12 commits into from
Jun 22, 2023

Conversation

briantist
Copy link
Contributor

Fixes #408

Provides for quoting of matrix parameters to ensure their values (and names) end up in Artifactory correctly, but optionally.

  • actual implementation is in encode_matrix_parameters with a new required parameter quote_parameters (I consider this method not really part of the public API)
  • public-facing deploy method will take a parameter of the same name, to pass into the encode function
  • for now, the parameter has a default of None instead of False
    • this is so that we can detect when no value was passed, and warn about the planned change of default in v0.10.0
    • that change will require some minor implementation changes to be made, and I've added TODOs to help find those leading up to the change
  • unit tests added or changed for the new functionality
    • test True, False, and None (ensure warnings; None tests should be removed when the default changes)
    • some unit tests changed in order to avoid littering the test output with warnings (with TODOs to remove later)

Still left to do:

  • integration tests: I don't have a pro license key to use locally, so unfortunately I'll probably rely on CI for the integration runs

@briantist
Copy link
Contributor Author

@allburov would appreciate you approving the CI run so I can work on the integration tests 🙏

@briantist
Copy link
Contributor Author

I now realize the integration tests are not run in CI 🤦 I tried to run them locally but without a license key it seems impossible :(
I'd rather not sign up for a trial right now...

I'm not sure how you want to proceed on that. I can make guesses on changes to the integration tests but it seems dangerous to do so.

Are you able to run integration and either make the changes in my branch, or show me the warnings/errors and I can try to make changes (this will probably only work if small changes are needed, our back-and-forth will be somewhat slow I think)

@allburov
Copy link
Member

@briantist sorry, I don't have an Artifactory license too right now :(

@beliaev-maksim Could you help us with running integration tests for the PR?

@beliaev-maksim
Copy link
Member

beliaev-maksim commented Mar 16, 2023

@allburov I also lost access to artifactory..

give me a couple of days. I will try to catch up with some people inside JFrog on the topic of license

@briantist
Copy link
Contributor Author

Re: integration tests: of course I would prefer to have coverage in them, but I also don't believe they will be failing right now. I think they will simply show warnings until v0.10.0.

If we can get a license that would be great, but if not, I don't think I should modify the tests without someone being able to run them; greater chance that I will break something than help.

@briantist
Copy link
Contributor Author

Hi @allburov & @beliaev-maksim just wanted to check in on this

@beliaev-maksim
Copy link
Member

@allburov
we might have an instance. I got some contacts. However, this will take time. So, please decide based on the urgency vs risk

@briantist briantist marked this pull request as ready for review June 10, 2023 15:10
@briantist briantist requested a review from allburov June 10, 2023 15:10
@allburov
Copy link
Member

It affects the actions too #419

Copy link
Member

@allburov allburov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, we need to make sure it works with a real Artifactory instance before we merge it. I don't have an instance, if anyone has - please give us a feedback about the changes!

@kohodono
Copy link

@allburov checked on 7.31.13 - it works!

@allburov allburov merged commit 7d787cf into devopshq:master Jun 22, 2023
@briantist
Copy link
Contributor Author

@kohodono @allburov thank you!

@briantist
Copy link
Contributor Author

@allburov do you have an idea when 0.9.0 might be released?

@allburov
Copy link
Member

@briantist hi! I'm releasing it on the next Tuesday, 27 June
Thanks for the help!

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

Successfully merging this pull request may close these issues.

Property values are not URL quoted for matrix parameters
4 participants