Skip to content

Commit

Permalink
fix e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
jpinsonneau committed Jan 30, 2025
1 parent 267ec6d commit 50187d3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions e2e/script_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,13 @@ func TestHelpCommand(t *testing.T) {
assert.Contains(t, str, "version Print software version.")
// ensure help to display examples
assert.Contains(t, str, "basic examples:")
assert.Contains(t, str, "netobserv flows --drops # Capture dropped flows on all nodes")
assert.Contains(t, str, "netobserv packets --port=8080 # Capture packets on port 8080")
assert.Contains(t, str, "netobserv metrics --enable_all # Capture all cluster metrics including packet drop, dns, rtt, network events packet translation and UDN mapping features informations")
assert.Contains(t, str, "netobserv flows --drops # Capture dropped flows on all nodes")
assert.Contains(t, str, "netobserv flows --regexes=SrcK8S_Namespace~app-.* # Capture flows from any namespace starting by app-")
assert.Contains(t, str, "netobserv packets --port=8080 # Capture packets on port 8080")
assert.Contains(t, str, "netobserv metrics --enable_all # Capture all cluster metrics including packet drop, dns, rtt, network events packet translation and UDN mapping features informations")
assert.Contains(t, str, "advanced examples:")
assert.Contains(t, str, "Capture drops in background and copy output locally")
assert.Contains(t, str, "Capture flows from a specific pod")
assert.Contains(t, str, "Capture packets on specific nodes and port")

})
Expand Down

0 comments on commit 50187d3

Please sign in to comment.