From 76fb8c521d2f0dfa48b81998277ea17b33220620 Mon Sep 17 00:00:00 2001 From: Isaac Shoebottom Date: Sat, 2 Dec 2023 23:45:36 -0400 Subject: [PATCH] Add bruno api tests --- vimm/bruno-vimm/bruno.json | 5 +++++ vimm/bruno-vimm/test1.bru | 32 ++++++++++++++++++++++++++++++++ vimm/bruno-vimm/test2.bru | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 69 insertions(+) create mode 100644 vimm/bruno-vimm/bruno.json create mode 100644 vimm/bruno-vimm/test1.bru create mode 100644 vimm/bruno-vimm/test2.bru diff --git a/vimm/bruno-vimm/bruno.json b/vimm/bruno-vimm/bruno.json new file mode 100644 index 0000000..2a651d9 --- /dev/null +++ b/vimm/bruno-vimm/bruno.json @@ -0,0 +1,5 @@ +{ + "version": "1", + "name": "vimm", + "type": "collection" +} \ No newline at end of file diff --git a/vimm/bruno-vimm/test1.bru b/vimm/bruno-vimm/test1.bru new file mode 100644 index 0000000..55ab966 --- /dev/null +++ b/vimm/bruno-vimm/test1.bru @@ -0,0 +1,32 @@ +meta { + name: test1 + type: http + seq: 1 +} + +get { + url: https://download2.vimm.net/download/?mediaId=9709&alt=1 + body: none + auth: none +} + +query { + mediaId: 9709 + alt: 1 +} + +headers { + Referer: https://vimm.net/ + User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0 + ~Accept-Encoding: gzip, deflate, br + ~Connection: keep-alive + ~Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/jxl,image/webp,*/*;q=0.8 + ~Accept-Language: en,en-CA;q=0.7,en-US;q=0.3 + ~DNT: 1 + ~Sec-GPC: 1 + ~Upgrade-Insecure-Requests: 1 + ~Sec-Fetch-Dest: document + ~Sec-Fetch-Mode: navigate + ~Sec-Fetch-Site: same-site + ~Sec-Fetch-User: ?1 +} diff --git a/vimm/bruno-vimm/test2.bru b/vimm/bruno-vimm/test2.bru new file mode 100644 index 0000000..7cbdb24 --- /dev/null +++ b/vimm/bruno-vimm/test2.bru @@ -0,0 +1,32 @@ +meta { + name: test2 + type: http + seq: 2 +} + +get { + url: https://download2.vimm.net/download/?mediaId=9704&alt=1 + body: none + auth: none +} + +query { + mediaId: 9704 + alt: 1 +} + +headers { + User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0 + Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/jxl,image/webp,*/*;q=0.8 + Accept-Language: en,en-CA;q=0.7,en-US;q=0.3 + Accept-Encoding: gzip, deflate, br + DNT: 1 + Sec-GPC: 1 + Connection: keep-alive + Referer: https://vimm.net/ + Upgrade-Insecure-Requests: 1 + Sec-Fetch-Dest: document + Sec-Fetch-Mode: navigate + Sec-Fetch-Site: same-site + Sec-Fetch-User: ?1 +}