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

Pass SSL arg to all requests in DruidOperator #39066

Conversation

danielbe11
Copy link
Contributor

@danielbe11 danielbe11 commented Apr 16, 2024

  • We're currently only passing the verify kwarg in the first post request (the one assigning req_index var). We should be passing the arg to all the requests in the operator.
  • Note that request sets this True by default ref
  • For context, the original change was in Modify ssl verification in druid operator #37673

^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@danielbe11 danielbe11 marked this pull request as draft April 16, 2024 16:05
@danielbe11 danielbe11 marked this pull request as ready for review April 17, 2024 15:19
Copy link
Collaborator

@dirrao dirrao left a comment

Choose a reason for hiding this comment

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

LGTM. Can you add the test with verify is set to True?

Daniel Bell added 2 commits April 18, 2024 09:49
…thub.com:danielbe11/airflow into druid-operator-pass-ssl-arg-to-all-request-calls
@danielbe11
Copy link
Contributor Author

Thanks for the review @dirrao, added the other test

@danielbe11 danielbe11 force-pushed the druid-operator-pass-ssl-arg-to-all-request-calls branch from c181728 to 0172704 Compare April 18, 2024 10:11
@danielbe11 danielbe11 marked this pull request as draft April 19, 2024 08:07
@danielbe11 danielbe11 marked this pull request as ready for review April 20, 2024 17:12
@danielbe11 danielbe11 requested a review from dirrao May 4, 2024 06:40
@eladkal eladkal merged commit e396f06 into apache:main May 5, 2024
40 checks passed
@danielbe11 danielbe11 deleted the druid-operator-pass-ssl-arg-to-all-request-calls branch May 5, 2024 11:30
RodrigoGanancia pushed a commit to RodrigoGanancia/airflow that referenced this pull request May 10, 2024
* Pass SSL arg to all requests in DruidOperator

* Remove unneeded test

* Lint

* Fix test

* Fix tests

* Add true test as per dirrao's comment

* Use call_count == 1

---------

Co-authored-by: Daniel Bell <daniel.bell@skyscanner.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants