-
Notifications
You must be signed in to change notification settings - Fork 6
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
Update check_connection method to use empty document list index request #16
Update check_connection method to use empty document list index request #16
Conversation
f9bb9b9
to
ac8355c
Compare
ac8355c
to
615b4d2
Compare
Instead of relying on the private ws/org/sources/form_create endpoint to create a source, this commit switches to the combination of the public ones: - api/ws/v1/whoami to retrieve the access_token related to the basic authentication - api/ws/v1/sources to create a custom source to be usedby the integration test
@@ -8,6 +8,7 @@ COPY --chown=logstash:logstash *.gemspec VERSION* version* /usr/share/plugins/pl | |||
RUN cp /usr/share/logstash/logstash-core/versions-gem-copy.yml /usr/share/logstash/versions.yml | |||
ENV PATH="${PATH}:/usr/share/logstash/vendor/jruby/bin:/usr/share/logstash/jdk/bin" | |||
ENV LOGSTASH_SOURCE="1" | |||
ARG ELASTIC_STACK_VERSION |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note for reviewer:
without this the ENV['ELASTIC_STACK_VERSION']
doesn't contain value
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested locally. fixed the issue as it tells. LGTM
"Accept" => "application/json", | ||
"Authorization" => "Bearer #{access_token}"} | ||
) | ||
puts "DBG>> source_id response body: #{response.body}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you really want to print value here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, my bad I didn't remove it
Release notes
Change implementation of connectivity check method to be compatible with version
8.0
of Workplace.What does this PR do?
Change implementation of
check_connection!
method, replacing the call tolist_all_permissions
which doesn't have anymore a peer endpoint in8.0
to an empty document listindex_documents
.Fixes also the integration tests for Workplace Search version 8, switching API to retrieve the
access_token
Why is it important/What is the impact to the user?
Fixes a compatibility problem with Workplace Search
8.0
Checklist
I have made corresponding changes to the documentationI have made corresponding change to the default configuration files (and/or docker env variables)I have added tests that prove my fix is effective or that my feature worksAuthor's Checklist
How to test this PR locally
Related issues