-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Consolidating logstash module integration tests (#9183)
This PR takes the separate `logstash/node/node_integration_test.go` and `logstash/node_stats/node_stats_integration_test.go` files and consolidates them into a single `logstash/logstash_integration_test.go` file, in the same vein as [`elasticsearch/elasticsearch_integration_test.go`](https://github.com/elastic/beats/blob/master/metricbeat/module/elasticsearch/elasticsearch_integration_test.go). For good measure, this PR also runs the consolidated integration test and re-generates `data.json` files for the `node` and `node_stats` metricsets.
- Loading branch information
1 parent
36f76a3
commit 4a7e73f
Showing
4 changed files
with
40 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,26 @@ | ||
{ | ||
"@timestamp": "2017-10-12T08:05:34.853Z", | ||
"beat": { | ||
"agent": { | ||
"hostname": "host.example.com", | ||
"name": "host.example.com" | ||
}, | ||
"logstash": { | ||
"node": { | ||
"host": "5256c6d0f05a", | ||
"host": "Shaunaks-MBP-2", | ||
"jvm": { | ||
"pid": 1, | ||
"version": "1.8.0_161" | ||
"pid": 3674, | ||
"version": "1.8.0_171" | ||
}, | ||
"version": "6.2.3" | ||
"version": "7.0.0-alpha1" | ||
} | ||
}, | ||
"metricset": { | ||
"host": "127.0.0.1:9600", | ||
"module": "logstash", | ||
"name": "node", | ||
"rtt": 115 | ||
}, | ||
"service": { | ||
"name": "logstash" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 0 additions & 56 deletions
56
metricbeat/module/logstash/node_stats/node_stats_integration_test.go
This file was deleted.
Oops, something went wrong.