Skip to content

Commit

Permalink
Fixed styles
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmatias committed Aug 28, 2024
1 parent 2507040 commit 6d3ad70
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion webhooks/falco/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,3 @@ This is an example of a payload sent by `falcosidekick`:
"hostname": "nixos"
}
```

2 changes: 1 addition & 1 deletion webhooks/falco/alerta_falco.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,4 +124,4 @@ def incoming(self, query_string, payload):
attributes=attributes,
event_type=event_type,
raw_data=payload
)
)
6 changes: 4 additions & 2 deletions webhooks/falco/test_falco.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,13 @@ def test_falcowebhook(self):
"""

# ack with missing fields
response = self.client.post('/webhooks/falco', data=payload_invalidcmd, content_type='application/json', headers=self.headers)
response = self.client.post('/webhooks/falco', data=payload_invalidcmd,
content_type='application/json', headers=self.headers)
self.assertEqual(response.status_code, 500)
data = json.loads(response.data.decode('utf-8'))

# ack
response = self.client.post('/webhooks/falco', data=payload_cmd, content_type='application/json', headers=self.headers)
response = self.client.post(
'/webhooks/falco', data=payload_cmd, content_type='application/json', headers=self.headers)
self.assertEqual(response.status_code, 201)
data = json.loads(response.data.decode('utf-8'))

0 comments on commit 6d3ad70

Please sign in to comment.