diff options
author | Bryan Newbold <bnewbold@archive.org> | 2020-08-18 00:06:02 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2020-08-18 00:06:02 -0700 |
commit | 38d3f8143a26c448f9f4898962ceca3d3e877163 (patch) | |
tree | 2563070458c9f21f5c074615b554366eaa5f1c3e /tests/parse_es_requests.rs | |
parent | d1d925e55e8a75e72813a647fa2fe843023f8980 (diff) | |
download | es-public-proxy-38d3f8143a26c448f9f4898962ceca3d3e877163.tar.gz es-public-proxy-38d3f8143a26c448f9f4898962ceca3d3e877163.zip |
start of test infra
Diffstat (limited to 'tests/parse_es_requests.rs')
-rw-r--r-- | tests/parse_es_requests.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/parse_es_requests.rs b/tests/parse_es_requests.rs new file mode 100644 index 0000000..e918da9 --- /dev/null +++ b/tests/parse_es_requests.rs @@ -0,0 +1,16 @@ + +mod common; + +#[test] +fn basic_load() { + let request = common::load_request("GET_search"); + assert_eq!(request.method, "GET"); + assert_eq!(request.path_and_query, "/_search"); +} + +#[test] +fn basic_parse() { + let request = common::load_request("GET_search"); + assert_eq!(request.method, "GET"); + assert_eq!(request.path_and_query, "/_search"); +} |