Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions packages/httpjson/_dev/deploy/docker/files/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,15 @@ rules:
- status_code: 200
body: |-
{"message": "success"}
- path: /testexpectedhits/api
methods: ["GET"]
request_headers:
Authorization:
- "Basic dGVzdDp0ZXN0"
responses:
- status_code: 200
headers:
Content-Type:
- "application/json; charset=utf-8"
body: |-
{"total":3,"hits":[{"message": "success"},{"message": "success"},{"message": "success"}]}
5 changes: 5 additions & 0 deletions packages/httpjson/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
- version: "1.6.2"
changes:
- description: Add test case for event count assertion
type: enhancement
link: https://github.com/elastic/integrations/pull/4152
- version: "1.6.1"
changes:
- description: Minor doc fix.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
input: httpjson
service: httpjson
data_stream:
vars:
data_stream.dataset: httpjson.generic
username: test
password: test
request_url: http://{{Hostname}}:{{Port}}/testexpectedhits/api
response_split: "target: body.hits\ntype: array\nkeep_parent: false "
assert:
hit_count: 3
2 changes: 1 addition & 1 deletion packages/httpjson/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: httpjson
title: Custom API
description: Collect custom events from an API endpoint with Elastic agent
type: integration
version: "1.6.1"
version: "1.6.2"
release: ga
conditions:
kibana.version: "^8.4.0"
Expand Down