Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ func handleWebSocket(w http.ResponseWriter, r *http.Request) {
log.Println(err)
return
}
defer conn.Close()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep. That's your problem right there.


var responseMessage string

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
input: websocket
skip:
reason: "Issues with unit state change (HEALTHY->DEGRADED) after latest metrics additions."
link: https://github.com/elastic/integrations/issues/14854
service: proofpoint_on_demand-websocket
vars:
url: ws://{{Hostname}}:{{Port}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
input: websocket
skip:
reason: "Issues with unit state change (HEALTHY->DEGRADED) after latest metrics additions."
link: https://github.com/elastic/integrations/issues/14854
service: proofpoint_on_demand-websocket
vars:
url: ws://{{Hostname}}:{{Port}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
input: websocket
skip:
reason: "Issues with unit state change (HEALTHY->DEGRADED) after latest metrics additions."
link: https://github.com/elastic/integrations/issues/14854
service: proofpoint_on_demand-websocket
vars:
url: ws://{{Hostname}}:{{Port}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ func main() {
}

func handleWebSocket(w http.ResponseWriter, r *http.Request) {

if r.URL.Path == "/health" {
return
}
Expand All @@ -41,7 +40,6 @@ func handleWebSocket(w http.ResponseWriter, r *http.Request) {
log.Println(err)
return
}
defer conn.Close()

var responseMessage []map[string]string

Expand Down
2 changes: 2 additions & 0 deletions packages/websocket/_dev/test/system/test-auth-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ vars:
bytes(state.response).decode_json().as(body,{
"events": body,
})
assert:
hit_count: 1
2 changes: 2 additions & 0 deletions packages/websocket/_dev/test/system/test-get-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ vars:
"max_ts": body.map(e, e.ts).max()
}
})
assert:
hit_count: 2