aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Shao <me@matshao.com>2017-05-19 10:17:06 +0800
committerMatthew Shao <me@matshao.com>2017-05-19 10:17:06 +0800
commit55a58c4c6f46e7bbe78d20c31b1ede4a1357ec82 (patch)
treef4069cdd8b9fdaa632abcb7160fd4bd50a8b7f05
parent369e1f1eeebf94951c592ac712f84086e0bc7b41 (diff)
downloadmitmproxy-55a58c4c6f46e7bbe78d20c31b1ede4a1357ec82.tar.gz
mitmproxy-55a58c4c6f46e7bbe78d20c31b1ede4a1357ec82.tar.bz2
mitmproxy-55a58c4c6f46e7bbe78d20c31b1ede4a1357ec82.zip
[web] Add js/__tests__/ducks/_tflow.js
-rw-r--r--web/src/js/__tests__/ducks/_tflow.js97
1 files changed, 97 insertions, 0 deletions
diff --git a/web/src/js/__tests__/ducks/_tflow.js b/web/src/js/__tests__/ducks/_tflow.js
new file mode 100644
index 00000000..8ff8c96c
--- /dev/null
+++ b/web/src/js/__tests__/ducks/_tflow.js
@@ -0,0 +1,97 @@
+export default function(){
+ return {
+ "client_conn": {
+ "address": [
+ "address",
+ 22
+ ],
+ "alpn_proto_negotiated": "http/1.1",
+ "cipher_name": "cipher",
+ "clientcert": null,
+ "id": "75bfd3cd-a084-4d84-a063-b0804dc91342",
+ "sni": "address",
+ "ssl_established": false,
+ "timestamp_end": 3.0,
+ "timestamp_ssl_setup": 2.0,
+ "timestamp_start": 1.0,
+ "tls_version": "TLSv1.2"
+ },
+ "error": {
+ "msg": "error",
+ "timestamp": 1495158272.596447
+ },
+ "id": "8035b342-c916-44f7-93fa-293b40a7d3ad",
+ "intercepted": false,
+ "marked": false,
+ "modified": false,
+ "request": {
+ "contentHash": "ed7002b439e9ac845f22357d822bac1444730fbdb6016d3ec9432297b9ec9f73",
+ "contentLength": 7,
+ "headers": [
+ [
+ "header",
+ "qvalue"
+ ],
+ [
+ "content-length",
+ "7"
+ ]
+ ],
+ "host": "address",
+ "http_version": "HTTP/1.1",
+ "is_replay": false,
+ "method": "GET",
+ "path": "/path",
+ "port": 22,
+ "pretty_host": "address",
+ "scheme": "http",
+ "timestamp_end": null,
+ "timestamp_start": null
+ },
+ "response": {
+ "contentHash": "ab530a13e45914982b79f9b7e3fba994cfd1f3fb22f71cea1afbf02b460c6d1d",
+ "contentLength": 7,
+ "headers": [
+ [
+ "header-response",
+ "svalue"
+ ],
+ [
+ "content-length",
+ "7"
+ ]
+ ],
+ "http_version": "HTTP/1.1",
+ "is_replay": false,
+ "reason": "OK",
+ "status_code": 200,
+ "timestamp_end": 1495158272.5964308,
+ "timestamp_start": 1495158272.5964305
+ },
+ "server_conn": {
+ "address": [
+ "address",
+ 22
+ ],
+ "alpn_proto_negotiated": null,
+ "id": "9a5d01d7-ede8-4409-b064-230305bfa29d",
+ "ip_address": [
+ "192.168.0.1",
+ 22
+ ],
+ "sni": "address",
+ "source_address": [
+ "address",
+ 22
+ ],
+ "ssl_established": false,
+ "timestamp_end": 4.0,
+ "timestamp_ssl_setup": 3.0,
+ "timestamp_start": 1.0,
+ "timestamp_tcp_setup": 2.0,
+ "tls_version": "TLSv1.2",
+ "via": null
+ },
+ "type": "http"
+}
+} \ No newline at end of file