-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
System test for logstash module, xpack code path #12676
System test for logstash module, xpack code path #12676
Conversation
// specific language governing permissions and limitations | ||
// under the License. | ||
|
||
package node_stats |
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.
don't use an underscore in package name
I get the following:
|
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.
I had some trouble getting these tests to run without errors and put my comments in the main thread. It's possible these errors are local to me because it seems that the test suite doesn't even like it if Py3 is installed on the system and so I made some minor workarounds to try to get it to run at all.
@cachedout These tests are expected to fail at the moment. There are other PRs that need to be merged first before this PR can work. This is why I didn't put the |
Ah, OK. I was not aware we were using the label for that purpose. Thanks! |
5325d14
to
f63775e
Compare
Pinging @elastic/stack-monitoring |
f63775e
to
5bdb453
Compare
5bdb453
to
5c2ea8d
Compare
jenkins, test this |
The x-pack test failure here is legitimate. The tests run against Logstash 7.0.0 which, of course, doesn't contain the API changes needed for the
|
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.
LGTM
I wonder what happens if Metricbeat 7.3 is run against LS 7.2. Does the user get a good error?
Just found my answer: #12705 |
In case anybody comes across this...if you are using Anyhow, I was able to get this up and working and tests pass as expected. |
Similar to #12506 but for the
logstash
module.This PR introduces a system test to exercise the xpack code path (
xpack.enabled: true
) of the Logstash Metricbeat module.Testing this PR
Build and activate the virtual env for system tests.
Make sure
fields.yml
is present.Build the test binary.
Run the integration tests
Assert that there are no errors.