diff options
Diffstat (limited to 'tests/cassettes/test_filter_create.yaml')
-rw-r--r-- | tests/cassettes/test_filter_create.yaml | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/tests/cassettes/test_filter_create.yaml b/tests/cassettes/test_filter_create.yaml index 626d665..af8ee31 100644 --- a/tests/cassettes/test_filter_create.yaml +++ b/tests/cassettes/test_filter_create.yaml | |||
@@ -12,11 +12,11 @@ interactions: | |||
12 | method: POST | 12 | method: POST |
13 | uri: http://localhost:3000/api/v1/filters | 13 | uri: http://localhost:3000/api/v1/filters |
14 | response: | 14 | response: |
15 | body: {string: '{"id":19,"phrase":"anime","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false}'} | 15 | body: {string: '{"id":37,"phrase":"anime","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false}'} |
16 | headers: | 16 | headers: |
17 | Cache-Control: ['max-age=0, private, must-revalidate'] | 17 | Cache-Control: ['max-age=0, private, must-revalidate'] |
18 | Content-Type: [application/json; charset=utf-8] | 18 | Content-Type: [application/json; charset=utf-8] |
19 | ETag: [W/"1cc3da37e6a9f5aa88132ddc5b7b063d"] | 19 | ETag: [W/"3d6994baffdea8caa5d91fc5d2a1efc0"] |
20 | Referrer-Policy: [strict-origin-when-cross-origin] | 20 | Referrer-Policy: [strict-origin-when-cross-origin] |
21 | Transfer-Encoding: [chunked] | 21 | Transfer-Encoding: [chunked] |
22 | Vary: ['Accept-Encoding, Origin'] | 22 | Vary: ['Accept-Encoding, Origin'] |
@@ -24,8 +24,8 @@ interactions: | |||
24 | X-Download-Options: [noopen] | 24 | X-Download-Options: [noopen] |
25 | X-Frame-Options: [SAMEORIGIN] | 25 | X-Frame-Options: [SAMEORIGIN] |
26 | X-Permitted-Cross-Domain-Policies: [none] | 26 | X-Permitted-Cross-Domain-Policies: [none] |
27 | X-Request-Id: [7047db02-fe84-4c31-84d5-3da343408027] | 27 | X-Request-Id: [b27015d9-55e5-4f2a-9231-8db9702a73ce] |
28 | X-Runtime: ['0.038570'] | 28 | X-Runtime: ['0.034108'] |
29 | X-XSS-Protection: [1; mode=block] | 29 | X-XSS-Protection: [1; mode=block] |
30 | content-length: ['111'] | 30 | content-length: ['111'] |
31 | status: {code: 200, message: OK} | 31 | status: {code: 200, message: OK} |
@@ -40,11 +40,11 @@ interactions: | |||
40 | method: GET | 40 | method: GET |
41 | uri: http://localhost:3000/api/v1/filters | 41 | uri: http://localhost:3000/api/v1/filters |
42 | response: | 42 | response: |
43 | body: {string: '[{"id":1,"phrase":"anime","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":true},{"id":19,"phrase":"anime","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false}]'} | 43 | body: {string: '[{"id":1,"phrase":"anime","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":true},{"id":27,"phrase":"japanimation","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false},{"id":30,"phrase":"japanimation","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false},{"id":34,"phrase":"anime","context":["home"],"whole_word":false,"expires_at":null,"irreversible":false},{"id":35,"phrase":"girugamesh","context":["home"],"whole_word":true,"expires_at":null,"irreversible":false},{"id":36,"phrase":"japanimation","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false},{"id":37,"phrase":"anime","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false}]'} |
44 | headers: | 44 | headers: |
45 | Cache-Control: ['max-age=0, private, must-revalidate'] | 45 | Cache-Control: ['max-age=0, private, must-revalidate'] |
46 | Content-Type: [application/json; charset=utf-8] | 46 | Content-Type: [application/json; charset=utf-8] |
47 | ETag: [W/"8c26a5b6dd365532b24a068190d326b6"] | 47 | ETag: [W/"edbbd56d6a098ed450465fe480624fab"] |
48 | Referrer-Policy: [strict-origin-when-cross-origin] | 48 | Referrer-Policy: [strict-origin-when-cross-origin] |
49 | Transfer-Encoding: [chunked] | 49 | Transfer-Encoding: [chunked] |
50 | Vary: ['Accept-Encoding, Origin'] | 50 | Vary: ['Accept-Encoding, Origin'] |
@@ -52,10 +52,10 @@ interactions: | |||
52 | X-Download-Options: [noopen] | 52 | X-Download-Options: [noopen] |
53 | X-Frame-Options: [SAMEORIGIN] | 53 | X-Frame-Options: [SAMEORIGIN] |
54 | X-Permitted-Cross-Domain-Policies: [none] | 54 | X-Permitted-Cross-Domain-Policies: [none] |
55 | X-Request-Id: [e7994444-9983-4e61-91ea-9ecd18cf2de6] | 55 | X-Request-Id: [4bbd6c23-662c-41bb-8192-76fd47356fab] |
56 | X-Runtime: ['0.018644'] | 56 | X-Runtime: ['0.020769'] |
57 | X-XSS-Protection: [1; mode=block] | 57 | X-XSS-Protection: [1; mode=block] |
58 | content-length: ['223'] | 58 | content-length: ['792'] |
59 | status: {code: 200, message: OK} | 59 | status: {code: 200, message: OK} |
60 | - request: | 60 | - request: |
61 | body: null | 61 | body: null |
@@ -66,13 +66,13 @@ interactions: | |||
66 | Connection: [keep-alive] | 66 | Connection: [keep-alive] |
67 | User-Agent: [python-requests/2.18.4] | 67 | User-Agent: [python-requests/2.18.4] |
68 | method: GET | 68 | method: GET |
69 | uri: http://localhost:3000/api/v1/filters/19 | 69 | uri: http://localhost:3000/api/v1/filters/37 |
70 | response: | 70 | response: |
71 | body: {string: '{"id":19,"phrase":"anime","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false}'} | 71 | body: {string: '{"id":37,"phrase":"anime","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false}'} |
72 | headers: | 72 | headers: |
73 | Cache-Control: ['max-age=0, private, must-revalidate'] | 73 | Cache-Control: ['max-age=0, private, must-revalidate'] |
74 | Content-Type: [application/json; charset=utf-8] | 74 | Content-Type: [application/json; charset=utf-8] |
75 | ETag: [W/"1cc3da37e6a9f5aa88132ddc5b7b063d"] | 75 | ETag: [W/"3d6994baffdea8caa5d91fc5d2a1efc0"] |
76 | Referrer-Policy: [strict-origin-when-cross-origin] | 76 | Referrer-Policy: [strict-origin-when-cross-origin] |
77 | Transfer-Encoding: [chunked] | 77 | Transfer-Encoding: [chunked] |
78 | Vary: ['Accept-Encoding, Origin'] | 78 | Vary: ['Accept-Encoding, Origin'] |
@@ -80,8 +80,8 @@ interactions: | |||
80 | X-Download-Options: [noopen] | 80 | X-Download-Options: [noopen] |
81 | X-Frame-Options: [SAMEORIGIN] | 81 | X-Frame-Options: [SAMEORIGIN] |
82 | X-Permitted-Cross-Domain-Policies: [none] | 82 | X-Permitted-Cross-Domain-Policies: [none] |
83 | X-Request-Id: [beaa5303-23ff-42db-ac05-088421eae737] | 83 | X-Request-Id: [b3d107a7-cb56-40a1-9bd9-0e79ee16f832] |
84 | X-Runtime: ['0.024738'] | 84 | X-Runtime: ['0.023702'] |
85 | X-XSS-Protection: [1; mode=block] | 85 | X-XSS-Protection: [1; mode=block] |
86 | content-length: ['111'] | 86 | content-length: ['111'] |
87 | status: {code: 200, message: OK} | 87 | status: {code: 200, message: OK} |
@@ -95,13 +95,13 @@ interactions: | |||
95 | Content-Length: ['0'] | 95 | Content-Length: ['0'] |
96 | User-Agent: [python-requests/2.18.4] | 96 | User-Agent: [python-requests/2.18.4] |
97 | method: DELETE | 97 | method: DELETE |
98 | uri: http://localhost:3000/api/v1/filters/19 | 98 | uri: http://localhost:3000/api/v1/filters/37 |
99 | response: | 99 | response: |
100 | body: {string: '{}'} | 100 | body: {string: '{}'} |
101 | headers: | 101 | headers: |
102 | Cache-Control: ['max-age=0, private, must-revalidate'] | 102 | Cache-Control: ['max-age=0, private, must-revalidate'] |
103 | Content-Type: [application/json; charset=utf-8] | 103 | Content-Type: [application/json; charset=utf-8] |
104 | ETag: [W/"65c2866b436b8d37236fba79638e73d5"] | 104 | ETag: [W/"e4127e970a50339ddd95e5e919b70642"] |
105 | Referrer-Policy: [strict-origin-when-cross-origin] | 105 | Referrer-Policy: [strict-origin-when-cross-origin] |
106 | Transfer-Encoding: [chunked] | 106 | Transfer-Encoding: [chunked] |
107 | Vary: ['Accept-Encoding, Origin'] | 107 | Vary: ['Accept-Encoding, Origin'] |
@@ -109,8 +109,8 @@ interactions: | |||
109 | X-Download-Options: [noopen] | 109 | X-Download-Options: [noopen] |
110 | X-Frame-Options: [SAMEORIGIN] | 110 | X-Frame-Options: [SAMEORIGIN] |
111 | X-Permitted-Cross-Domain-Policies: [none] | 111 | X-Permitted-Cross-Domain-Policies: [none] |
112 | X-Request-Id: [c55605aa-c532-4e80-b7eb-2a2001245a37] | 112 | X-Request-Id: [efb38983-7b67-4bb1-8a53-bd2a2b8596b7] |
113 | X-Runtime: ['0.032768'] | 113 | X-Runtime: ['0.033148'] |
114 | X-XSS-Protection: [1; mode=block] | 114 | X-XSS-Protection: [1; mode=block] |
115 | content-length: ['2'] | 115 | content-length: ['2'] |
116 | status: {code: 200, message: OK} | 116 | status: {code: 200, message: OK} |
@@ -127,11 +127,11 @@ interactions: | |||
127 | method: POST | 127 | method: POST |
128 | uri: http://localhost:3000/api/v1/filters | 128 | uri: http://localhost:3000/api/v1/filters |
129 | response: | 129 | response: |
130 | body: {string: '{"id":20,"phrase":"anime","context":["notifications"],"whole_word":false,"expires_at":null,"irreversible":false}'} | 130 | body: {string: '{"id":38,"phrase":"anime","context":["notifications"],"whole_word":false,"expires_at":null,"irreversible":false}'} |
131 | headers: | 131 | headers: |
132 | Cache-Control: ['max-age=0, private, must-revalidate'] | 132 | Cache-Control: ['max-age=0, private, must-revalidate'] |
133 | Content-Type: [application/json; charset=utf-8] | 133 | Content-Type: [application/json; charset=utf-8] |
134 | ETag: [W/"7c314c3f632dfc88cf3900669c341d1d"] | 134 | ETag: [W/"cae02e13e377c3adb0b76489a56fadb8"] |
135 | Referrer-Policy: [strict-origin-when-cross-origin] | 135 | Referrer-Policy: [strict-origin-when-cross-origin] |
136 | Transfer-Encoding: [chunked] | 136 | Transfer-Encoding: [chunked] |
137 | Vary: ['Accept-Encoding, Origin'] | 137 | Vary: ['Accept-Encoding, Origin'] |
@@ -139,8 +139,8 @@ interactions: | |||
139 | X-Download-Options: [noopen] | 139 | X-Download-Options: [noopen] |
140 | X-Frame-Options: [SAMEORIGIN] | 140 | X-Frame-Options: [SAMEORIGIN] |
141 | X-Permitted-Cross-Domain-Policies: [none] | 141 | X-Permitted-Cross-Domain-Policies: [none] |
142 | X-Request-Id: [d75504c9-52ae-442a-a9b1-d32e221e66da] | 142 | X-Request-Id: [b239ccd2-eead-4876-b62c-4d0a174971e5] |
143 | X-Runtime: ['0.029893'] | 143 | X-Runtime: ['0.033069'] |
144 | X-XSS-Protection: [1; mode=block] | 144 | X-XSS-Protection: [1; mode=block] |
145 | content-length: ['112'] | 145 | content-length: ['112'] |
146 | status: {code: 200, message: OK} | 146 | status: {code: 200, message: OK} |
@@ -155,11 +155,11 @@ interactions: | |||
155 | method: GET | 155 | method: GET |
156 | uri: http://localhost:3000/api/v1/filters | 156 | uri: http://localhost:3000/api/v1/filters |
157 | response: | 157 | response: |
158 | body: {string: '[{"id":1,"phrase":"anime","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":true},{"id":20,"phrase":"anime","context":["notifications"],"whole_word":false,"expires_at":null,"irreversible":false}]'} | 158 | body: {string: '[{"id":1,"phrase":"anime","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":true},{"id":27,"phrase":"japanimation","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false},{"id":30,"phrase":"japanimation","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false},{"id":34,"phrase":"anime","context":["home"],"whole_word":false,"expires_at":null,"irreversible":false},{"id":35,"phrase":"girugamesh","context":["home"],"whole_word":true,"expires_at":null,"irreversible":false},{"id":36,"phrase":"japanimation","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false},{"id":38,"phrase":"anime","context":["notifications"],"whole_word":false,"expires_at":null,"irreversible":false}]'} |
159 | headers: | 159 | headers: |
160 | Cache-Control: ['max-age=0, private, must-revalidate'] | 160 | Cache-Control: ['max-age=0, private, must-revalidate'] |
161 | Content-Type: [application/json; charset=utf-8] | 161 | Content-Type: [application/json; charset=utf-8] |
162 | ETag: [W/"90390dfa2fbd844349196815a458d7d1"] | 162 | ETag: [W/"3869f2ed416e1a8c2a0374d33e45625e"] |
163 | Referrer-Policy: [strict-origin-when-cross-origin] | 163 | Referrer-Policy: [strict-origin-when-cross-origin] |
164 | Transfer-Encoding: [chunked] | 164 | Transfer-Encoding: [chunked] |
165 | Vary: ['Accept-Encoding, Origin'] | 165 | Vary: ['Accept-Encoding, Origin'] |
@@ -167,10 +167,10 @@ interactions: | |||
167 | X-Download-Options: [noopen] | 167 | X-Download-Options: [noopen] |
168 | X-Frame-Options: [SAMEORIGIN] | 168 | X-Frame-Options: [SAMEORIGIN] |
169 | X-Permitted-Cross-Domain-Policies: [none] | 169 | X-Permitted-Cross-Domain-Policies: [none] |
170 | X-Request-Id: [a3bfd49a-cb6f-4316-bc0c-f92f50577aa7] | 170 | X-Request-Id: [be361b44-e614-475a-b64a-d09c3ae36330] |
171 | X-Runtime: ['0.024577'] | 171 | X-Runtime: ['0.020416'] |
172 | X-XSS-Protection: [1; mode=block] | 172 | X-XSS-Protection: [1; mode=block] |
173 | content-length: ['224'] | 173 | content-length: ['793'] |
174 | status: {code: 200, message: OK} | 174 | status: {code: 200, message: OK} |
175 | - request: | 175 | - request: |
176 | body: null | 176 | body: null |
@@ -181,13 +181,13 @@ interactions: | |||
181 | Connection: [keep-alive] | 181 | Connection: [keep-alive] |
182 | User-Agent: [python-requests/2.18.4] | 182 | User-Agent: [python-requests/2.18.4] |
183 | method: GET | 183 | method: GET |
184 | uri: http://localhost:3000/api/v1/filters/20 | 184 | uri: http://localhost:3000/api/v1/filters/38 |
185 | response: | 185 | response: |
186 | body: {string: '{"id":20,"phrase":"anime","context":["notifications"],"whole_word":false,"expires_at":null,"irreversible":false}'} | 186 | body: {string: '{"id":38,"phrase":"anime","context":["notifications"],"whole_word":false,"expires_at":null,"irreversible":false}'} |
187 | headers: | 187 | headers: |
188 | Cache-Control: ['max-age=0, private, must-revalidate'] | 188 | Cache-Control: ['max-age=0, private, must-revalidate'] |
189 | Content-Type: [application/json; charset=utf-8] | 189 | Content-Type: [application/json; charset=utf-8] |
190 | ETag: [W/"7c314c3f632dfc88cf3900669c341d1d"] | 190 | ETag: [W/"cae02e13e377c3adb0b76489a56fadb8"] |
191 | Referrer-Policy: [strict-origin-when-cross-origin] | 191 | Referrer-Policy: [strict-origin-when-cross-origin] |
192 | Transfer-Encoding: [chunked] | 192 | Transfer-Encoding: [chunked] |
193 | Vary: ['Accept-Encoding, Origin'] | 193 | Vary: ['Accept-Encoding, Origin'] |
@@ -195,8 +195,8 @@ interactions: | |||
195 | X-Download-Options: [noopen] | 195 | X-Download-Options: [noopen] |
196 | X-Frame-Options: [SAMEORIGIN] | 196 | X-Frame-Options: [SAMEORIGIN] |
197 | X-Permitted-Cross-Domain-Policies: [none] | 197 | X-Permitted-Cross-Domain-Policies: [none] |
198 | X-Request-Id: [7340bbb7-708b-4ceb-892c-491587b42a58] | 198 | X-Request-Id: [e26dcff6-7e5c-43f3-ba4a-7c4a036ea445] |
199 | X-Runtime: ['0.021185'] | 199 | X-Runtime: ['0.025813'] |
200 | X-XSS-Protection: [1; mode=block] | 200 | X-XSS-Protection: [1; mode=block] |
201 | content-length: ['112'] | 201 | content-length: ['112'] |
202 | status: {code: 200, message: OK} | 202 | status: {code: 200, message: OK} |
@@ -210,13 +210,13 @@ interactions: | |||
210 | Content-Length: ['0'] | 210 | Content-Length: ['0'] |
211 | User-Agent: [python-requests/2.18.4] | 211 | User-Agent: [python-requests/2.18.4] |
212 | method: DELETE | 212 | method: DELETE |
213 | uri: http://localhost:3000/api/v1/filters/20 | 213 | uri: http://localhost:3000/api/v1/filters/38 |
214 | response: | 214 | response: |
215 | body: {string: '{}'} | 215 | body: {string: '{}'} |
216 | headers: | 216 | headers: |
217 | Cache-Control: ['max-age=0, private, must-revalidate'] | 217 | Cache-Control: ['max-age=0, private, must-revalidate'] |
218 | Content-Type: [application/json; charset=utf-8] | 218 | Content-Type: [application/json; charset=utf-8] |
219 | ETag: [W/"65c2866b436b8d37236fba79638e73d5"] | 219 | ETag: [W/"e4127e970a50339ddd95e5e919b70642"] |
220 | Referrer-Policy: [strict-origin-when-cross-origin] | 220 | Referrer-Policy: [strict-origin-when-cross-origin] |
221 | Transfer-Encoding: [chunked] | 221 | Transfer-Encoding: [chunked] |
222 | Vary: ['Accept-Encoding, Origin'] | 222 | Vary: ['Accept-Encoding, Origin'] |
@@ -224,8 +224,8 @@ interactions: | |||
224 | X-Download-Options: [noopen] | 224 | X-Download-Options: [noopen] |
225 | X-Frame-Options: [SAMEORIGIN] | 225 | X-Frame-Options: [SAMEORIGIN] |
226 | X-Permitted-Cross-Domain-Policies: [none] | 226 | X-Permitted-Cross-Domain-Policies: [none] |
227 | X-Request-Id: [b9d0bff4-9b9e-4e7f-a4d2-9b2ab26de77f] | 227 | X-Request-Id: [28e0d549-bd9f-498e-b3a5-c0950d2eb9a8] |
228 | X-Runtime: ['0.031029'] | 228 | X-Runtime: ['0.033591'] |
229 | X-XSS-Protection: [1; mode=block] | 229 | X-XSS-Protection: [1; mode=block] |
230 | content-length: ['2'] | 230 | content-length: ['2'] |
231 | status: {code: 200, message: OK} | 231 | status: {code: 200, message: OK} |