-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implements [0] a new target to send datagrams to UDP unix socket. This has useful application with low latency to trigger external events. [0] #96
- Loading branch information
1 parent
de2a083
commit 83f4bc0
Showing
43 changed files
with
1,271 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import pytest | ||
import json | ||
from conftest import ADMIN_SOCKETS_URI, string2dict, SOCKET_MANAGER_PROVISION | ||
|
||
|
||
@pytest.mark.admin | ||
def test_001_i_want_to_get_process_sockets(h2ac_admin, admin_server_provision, h2ac_traffic): | ||
|
||
# Provision | ||
admin_server_provision(string2dict(SOCKET_MANAGER_PROVISION)) | ||
|
||
# Check file before traffic: skipped because the test could re-run | ||
#response = h2ac_admin.get(ADMIN_SOCKETS_URI) | ||
#assert response["status"] == 204 | ||
|
||
# Send GET | ||
response = h2ac_traffic.get("/app/v1/foo/bar") | ||
h2ac_admin.assert_response__status_body_headers(response, 200, "") | ||
|
||
# Check sockets json | ||
response = h2ac_admin.get(ADMIN_SOCKETS_URI) | ||
responseBodyRef = [{ "socket":0, "path": "/tmp/my_unix_socket2" }, { "socket":0, "path": "/tmp/my_unix_socket1" }] | ||
responseBodyRef[0]["socket"] = response["body"][0]["socket"] | ||
responseBodyRef[1]["socket"] = response["body"][1]["socket"] | ||
h2ac_admin.assert_response__status_body_headers(response, 200, responseBodyRef) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.