-
Notifications
You must be signed in to change notification settings - Fork 3
Add authorization header to Elasticsearch query #100
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
base: develop
Are you sure you want to change the base?
Changes from all commits
f9a0f65
5e7547d
6d8af83
8831845
17b1492
54058f6
b6f0d7b
655b92d
3d1d4e8
b8349ac
3586cbc
73c6bfa
6bd4991
2268345
c883797
4a40c6c
6954f99
2092636
63662a2
6cfd89a
f91467a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -28,7 +28,7 @@ def start_service(app_url): | |
| stdout=container_out, | ||
| stderr=container_err, | ||
| cwd=cwd) | ||
| wait_for_service(app_url, "search2") | ||
| wait_for_service(app_url, "search2", {}) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How does this work without the headers?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because it already didn't send any headers when querying search2. Only elastic requires auth
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh, I'm dumb. I was thinking this function is exclusively for ES |
||
|
|
||
|
|
||
| def stop_service(): | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,7 +16,7 @@ def bad_url_with_timeout(name, url, timeout, caplog): | |
| with caplog.at_level(logging.INFO, logger='search2'): | ||
| start = time.time() | ||
| with pytest.raises(SystemExit) as se: | ||
| wait_for_service(url, 'foo', timeout=timeout) | ||
| wait_for_service(url, 'foo', {}, timeout=timeout) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same question - not sure how this can work without headers if auth is always on
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Auth is always on for elastic, not for any other services. |
||
|
|
||
| # Ensure it is attempting to exit. | ||
| assert se.type == SystemExit | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.