summaryrefslogtreecommitdiff
path: root/test/polyjuice
diff options
context:
space:
mode:
authorHubert Chathi <hubert@uhoreg.ca>2020-10-22 22:08:46 -0400
committerHubert Chathi <hubert@uhoreg.ca>2020-10-22 22:08:46 -0400
commit3f94502e2d3aa544f4e32446783aa47b59d28b14 (patch)
treee3d7e501a6443cb1531f6d10c4d4d7a6e0bab2cd /test/polyjuice
parentadd a method to create delete requests (diff)
allow compressed server responses
Diffstat (limited to 'test/polyjuice')
-rw-r--r--test/polyjuice/client/endpoint/get_rooms_messages_test.exs6
-rw-r--r--test/polyjuice/client/endpoint/get_rooms_state_test.exs6
-rw-r--r--test/polyjuice/client/endpoint/get_sync_test.exs9
-rw-r--r--test/polyjuice/client/endpoint/post_join_test.exs2
-rw-r--r--test/polyjuice/client/endpoint/post_login_test.exs1
-rw-r--r--test/polyjuice/client/endpoint/post_logout_test.exs1
-rw-r--r--test/polyjuice/client/endpoint/post_rooms_forget_test.exs1
-rw-r--r--test/polyjuice/client/endpoint/post_rooms_leave_test.exs1
-rw-r--r--test/polyjuice/client/endpoint/post_rooms_receipt_test.exs1
-rw-r--r--test/polyjuice/client/endpoint/post_user_filter_test.exs1
-rw-r--r--test/polyjuice/client/endpoint/put_rooms_send_test.exs1
-rw-r--r--test/polyjuice/client/endpoint/put_rooms_state_test.exs1
12 files changed, 24 insertions, 7 deletions
diff --git a/test/polyjuice/client/endpoint/get_rooms_messages_test.exs b/test/polyjuice/client/endpoint/get_rooms_messages_test.exs
index f1d8787..34fbdb9 100644
--- a/test/polyjuice/client/endpoint/get_rooms_messages_test.exs
+++ b/test/polyjuice/client/endpoint/get_rooms_messages_test.exs
@@ -27,7 +27,8 @@ defmodule Polyjuice.Client.Endpoint.GetRoomsMessagesTest do
auth_required: true,
body: "",
headers: [
- {"Accept", "application/json"}
+ {"Accept", "application/json"},
+ {"Accept-Encoding", "gzip, deflate"}
],
method: :get,
path: "_matrix/client/r0/rooms/%21roomid/messages",
@@ -65,7 +66,8 @@ defmodule Polyjuice.Client.Endpoint.GetRoomsMessagesTest do
auth_required: true,
body: "",
headers: [
- {"Accept", "application/json"}
+ {"Accept", "application/json"},
+ {"Accept-Encoding", "gzip, deflate"}
],
method: :get,
path: "_matrix/client/r0/rooms/%21roomid/messages",
diff --git a/test/polyjuice/client/endpoint/get_rooms_state_test.exs b/test/polyjuice/client/endpoint/get_rooms_state_test.exs
index 3c59b80..8cdc312 100644
--- a/test/polyjuice/client/endpoint/get_rooms_state_test.exs
+++ b/test/polyjuice/client/endpoint/get_rooms_state_test.exs
@@ -28,7 +28,8 @@ defmodule Polyjuice.Client.Endpoint.GetRoomsStateTest do
auth_required: true,
body: "",
headers: [
- {"Accept", "application/json"}
+ {"Accept", "application/json"},
+ {"Accept-Encoding", "gzip, deflate"}
],
method: :get,
path: "_matrix/client/r0/rooms/%21room_id/state"
@@ -63,7 +64,8 @@ defmodule Polyjuice.Client.Endpoint.GetRoomsStateTest do
auth_required: true,
body: "",
headers: [
- {"Accept", "application/json"}
+ {"Accept", "application/json"},
+ {"Accept-Encoding", "gzip, deflate"}
],
method: :get,
path: "_matrix/client/r0/rooms/%21room_id/state/m.room.name/"
diff --git a/test/polyjuice/client/endpoint/get_sync_test.exs b/test/polyjuice/client/endpoint/get_sync_test.exs
index 02aa580..4f86041 100644
--- a/test/polyjuice/client/endpoint/get_sync_test.exs
+++ b/test/polyjuice/client/endpoint/get_sync_test.exs
@@ -23,7 +23,8 @@ defmodule Polyjuice.Client.Endpoint.GetSyncTest do
auth_required: true,
body: "",
headers: [
- {"Accept", "application/json"}
+ {"Accept", "application/json"},
+ {"Accept-Encoding", "gzip, deflate"}
],
method: :get,
path: "_matrix/client/r0/sync",
@@ -60,7 +61,8 @@ defmodule Polyjuice.Client.Endpoint.GetSyncTest do
auth_required: true,
body: "",
headers: [
- {"Accept", "application/json"}
+ {"Accept", "application/json"},
+ {"Accept-Encoding", "gzip, deflate"}
],
method: :get,
path: "_matrix/client/r0/sync",
@@ -84,7 +86,8 @@ defmodule Polyjuice.Client.Endpoint.GetSyncTest do
auth_required: true,
body: "",
headers: [
- {"Accept", "application/json"}
+ {"Accept", "application/json"},
+ {"Accept-Encoding", "gzip, deflate"}
],
method: :get,
path: "_matrix/client/r0/sync",
diff --git a/test/polyjuice/client/endpoint/post_join_test.exs b/test/polyjuice/client/endpoint/post_join_test.exs
index 9f21c52..abf9914 100644
--- a/test/polyjuice/client/endpoint/post_join_test.exs
+++ b/test/polyjuice/client/endpoint/post_join_test.exs
@@ -36,6 +36,7 @@ defmodule Polyjuice.Client.Endpoint.PostJoinTest do
body: nil,
headers: [
{"Accept", "application/json"},
+ {"Accept-Encoding", "gzip, deflate"},
{"Content-Type", "application/json"}
],
method: :post,
@@ -83,6 +84,7 @@ defmodule Polyjuice.Client.Endpoint.PostJoinTest do
body: "{}",
headers: [
{"Accept", "application/json"},
+ {"Accept-Encoding", "gzip, deflate"},
{"Content-Type", "application/json"}
],
method: :post,
diff --git a/test/polyjuice/client/endpoint/post_login_test.exs b/test/polyjuice/client/endpoint/post_login_test.exs
index 4a2fa96..8bc22d8 100644
--- a/test/polyjuice/client/endpoint/post_login_test.exs
+++ b/test/polyjuice/client/endpoint/post_login_test.exs
@@ -32,6 +32,7 @@ defmodule Polyjuice.Client.Endpoint.PostLoginTest do
body: nil,
headers: [
{"Accept", "application/json"},
+ {"Accept-Encoding", "gzip, deflate"},
{"Content-Type", "application/json"}
],
method: :post,
diff --git a/test/polyjuice/client/endpoint/post_logout_test.exs b/test/polyjuice/client/endpoint/post_logout_test.exs
index 7f7835c..536c523 100644
--- a/test/polyjuice/client/endpoint/post_logout_test.exs
+++ b/test/polyjuice/client/endpoint/post_logout_test.exs
@@ -25,6 +25,7 @@ defmodule Polyjuice.Client.Endpoint.PostLogoutTest do
body: "{}",
headers: [
{"Accept", "application/json"},
+ {"Accept-Encoding", "gzip, deflate"},
{"Content-Type", "application/json"}
],
method: :post,
diff --git a/test/polyjuice/client/endpoint/post_rooms_forget_test.exs b/test/polyjuice/client/endpoint/post_rooms_forget_test.exs
index a2ce841..e3300cd 100644
--- a/test/polyjuice/client/endpoint/post_rooms_forget_test.exs
+++ b/test/polyjuice/client/endpoint/post_rooms_forget_test.exs
@@ -24,6 +24,7 @@ defmodule Polyjuice.Client.Endpoint.PostRoomsForgetTest do
body: "{}",
headers: [
{"Accept", "application/json"},
+ {"Accept-Encoding", "gzip, deflate"},
{"Content-Type", "application/json"}
],
method: :post,
diff --git a/test/polyjuice/client/endpoint/post_rooms_leave_test.exs b/test/polyjuice/client/endpoint/post_rooms_leave_test.exs
index d3448ef..7b7b9e2 100644
--- a/test/polyjuice/client/endpoint/post_rooms_leave_test.exs
+++ b/test/polyjuice/client/endpoint/post_rooms_leave_test.exs
@@ -24,6 +24,7 @@ defmodule Polyjuice.Client.Endpoint.PostRoomsLeaveTest do
body: "{}",
headers: [
{"Accept", "application/json"},
+ {"Accept-Encoding", "gzip, deflate"},
{"Content-Type", "application/json"}
],
method: :post,
diff --git a/test/polyjuice/client/endpoint/post_rooms_receipt_test.exs b/test/polyjuice/client/endpoint/post_rooms_receipt_test.exs
index 1d126a2..e829167 100644
--- a/test/polyjuice/client/endpoint/post_rooms_receipt_test.exs
+++ b/test/polyjuice/client/endpoint/post_rooms_receipt_test.exs
@@ -28,6 +28,7 @@ defmodule Polyjuice.Client.Endpoint.PostRoomsReceiptTest do
body: "{}",
headers: [
{"Accept", "application/json"},
+ {"Accept-Encoding", "gzip, deflate"},
{"Content-Type", "application/json"}
],
method: :post,
diff --git a/test/polyjuice/client/endpoint/post_user_filter_test.exs b/test/polyjuice/client/endpoint/post_user_filter_test.exs
index 947aa1e..80f22e4 100644
--- a/test/polyjuice/client/endpoint/post_user_filter_test.exs
+++ b/test/polyjuice/client/endpoint/post_user_filter_test.exs
@@ -32,6 +32,7 @@ defmodule Polyjuice.Client.Endpoint.PostUserfilterTest do
body: ~s({"presence":{"types":[]}}),
headers: [
{"Accept", "application/json"},
+ {"Accept-Encoding", "gzip, deflate"},
{"Content-Type", "application/json"}
],
method: :post,
diff --git a/test/polyjuice/client/endpoint/put_rooms_send_test.exs b/test/polyjuice/client/endpoint/put_rooms_send_test.exs
index db4a4bc..98d5876 100644
--- a/test/polyjuice/client/endpoint/put_rooms_send_test.exs
+++ b/test/polyjuice/client/endpoint/put_rooms_send_test.exs
@@ -32,6 +32,7 @@ defmodule Polyjuice.Client.Endpoint.PutRoomsSendTest do
body: ~s({"body":"Hello World!"}),
headers: [
{"Accept", "application/json"},
+ {"Accept-Encoding", "gzip, deflate"},
{"Content-Type", "application/json"}
],
method: :put,
diff --git a/test/polyjuice/client/endpoint/put_rooms_state_test.exs b/test/polyjuice/client/endpoint/put_rooms_state_test.exs
index cb745e3..e541aee 100644
--- a/test/polyjuice/client/endpoint/put_rooms_state_test.exs
+++ b/test/polyjuice/client/endpoint/put_rooms_state_test.exs
@@ -32,6 +32,7 @@ defmodule Polyjuice.Client.Endpoint.PutRoomsStateTest do
body: ~s({"name":"foo"}),
headers: [
{"Accept", "application/json"},
+ {"Accept-Encoding", "gzip, deflate"},
{"Content-Type", "application/json"}
],
method: :put,