summaryrefslogtreecommitdiff
path: root/tests/plugins/http/configs
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-01-18 21:45:30 +0300
committerValery Piashchynski <[email protected]>2021-01-18 21:45:30 +0300
commit7e5d09e30986f7823b591c58eb858f100382b81f (patch)
tree887374374fc4aa91fe13df3b505273c8c858e12e /tests/plugins/http/configs
parenta9a206b31e272e0508fff496e9641c4db291ddb7 (diff)
Fix NPE when .rr.yaml didn't contain HTTP section
Add tests
Diffstat (limited to 'tests/plugins/http/configs')
-rw-r--r--tests/plugins/http/configs/.rr-no-http.yaml17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/plugins/http/configs/.rr-no-http.yaml b/tests/plugins/http/configs/.rr-no-http.yaml
new file mode 100644
index 00000000..6466c950
--- /dev/null
+++ b/tests/plugins/http/configs/.rr-no-http.yaml
@@ -0,0 +1,17 @@
+rpc:
+ listen: tcp://127.0.0.1:6001
+ disabled: false
+
+server:
+ command: "php ../../http/client.php echo pipes"
+ user: ""
+ group: ""
+ env:
+ "RR_HTTP": "true"
+ relay: "pipes"
+ relay_timeout: "20s"
+
+logs:
+ mode: development
+ level: error
+