mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-05-24 08:40:31 -04:00
Update sync POST test to use encrypted payload string
This commit is contained in:
@@ -440,7 +440,7 @@ def test_sync_get(mock_handle, client, api_token):
|
||||
def test_sync_post(mock_handle, client, api_token):
|
||||
"""Test POST /sync."""
|
||||
mock_handle.return_value = ({"success": True}, 200)
|
||||
payload = {"data": {}, "node_name": "node1", "plugin": "test"}
|
||||
payload = {"data": "encrypted_payload_string", "node_name": "node1", "plugin": "test"}
|
||||
response = client.post('/sync',
|
||||
json=payload,
|
||||
headers=auth_headers(api_token))
|
||||
|
||||
Reference in New Issue
Block a user