diff options
author | Valery Piashchynski <[email protected]> | 2021-05-28 13:19:02 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-05-28 13:19:02 +0300 |
commit | 0a64bb2a71ddb6b0ee5861e255a20df1327aa099 (patch) | |
tree | 98a607f517706174215b92be8f337d21f918b955 /tests/plugins/websockets/configs | |
parent | 5527b31b2da2b60ed8877b8c43badb73f98ec7bb (diff) |
- Tests for the ws-redis, ws-memory
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'tests/plugins/websockets/configs')
-rw-r--r-- | tests/plugins/websockets/configs/.rr-websockets-init.yaml | 3 | ||||
-rw-r--r-- | tests/plugins/websockets/configs/.rr-websockets-redis-memory.yaml | 39 |
2 files changed, 40 insertions, 2 deletions
diff --git a/tests/plugins/websockets/configs/.rr-websockets-init.yaml b/tests/plugins/websockets/configs/.rr-websockets-init.yaml index 1b60d3e7..dc073be3 100644 --- a/tests/plugins/websockets/configs/.rr-websockets-init.yaml +++ b/tests/plugins/websockets/configs/.rr-websockets-init.yaml @@ -25,14 +25,13 @@ redis: websockets: # pubsubs should implement PubSub interface to be collected via endure.Collects - # also, they should implement RPC methods to publish data into them # pubsubs might use general config section or its own pubsubs: [ "redis" ] path: "/ws" logs: mode: development - level: debug + level: error endure: grace_period: 120s diff --git a/tests/plugins/websockets/configs/.rr-websockets-redis-memory.yaml b/tests/plugins/websockets/configs/.rr-websockets-redis-memory.yaml new file mode 100644 index 00000000..eedf5377 --- /dev/null +++ b/tests/plugins/websockets/configs/.rr-websockets-redis-memory.yaml @@ -0,0 +1,39 @@ +rpc: + listen: tcp://127.0.0.1:6001 + +server: + command: "php ../../psr-worker-bench.php" + user: "" + group: "" + relay: "pipes" + relay_timeout: "20s" + +http: + address: 127.0.0.1:13235 + max_request_size: 1024 + middleware: [ "websockets" ] + trusted_subnets: [ "10.0.0.0/8", "127.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16", "::1/128", "fc00::/7", "fe80::/10" ] + pool: + num_workers: 2 + max_jobs: 0 + allocate_timeout: 60s + destroy_timeout: 60s + +redis: + addrs: + - "localhost:6379" + +websockets: + # pubsubs should implement PubSub interface to be collected via endure.Collects + # pubsubs might use general config section + pubsubs: [ "redis", "memory" ] + path: "/ws" + +logs: + mode: development + level: error + +endure: + grace_period: 120s + print_graph: false + log_level: error |