-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Also improve tests by using VHS for Pushover client
- Loading branch information
1 parent
afa3096
commit 75ac031
Showing
14 changed files
with
315 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
--- | ||
version: 2 | ||
interactions: | ||
- id: 0 | ||
request: | ||
proto: HTTP/1.1 | ||
proto_major: 1 | ||
proto_minor: 1 | ||
content_length: 131 | ||
transfer_encoding: [] | ||
trailer: {} | ||
host: api.pushover.net | ||
remote_addr: "" | ||
request_uri: "" | ||
body: message=watered+for+6s&priority=0&title=+finished+watering&token=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&user=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa | ||
form: | ||
message: | ||
- watered for 6s | ||
priority: | ||
- "0" | ||
title: | ||
- ' finished watering' | ||
token: | ||
- aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa | ||
user: | ||
- aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa | ||
headers: | ||
Content-Type: | ||
- application/x-www-form-urlencoded | ||
url: https://api.pushover.net/1/messages.json | ||
method: POST | ||
response: | ||
proto: HTTP/2.0 | ||
proto_major: 2 | ||
proto_minor: 0 | ||
transfer_encoding: [] | ||
trailer: {} | ||
content_length: -1 | ||
uncompressed: false | ||
body: '{"token":"invalid","errors":["application token is invalid, see https://pushover.net/api"],"status":0,"request":"85158a2e-3f89-456b-9262-d14915ad76bc"}' | ||
headers: | ||
Access-Control-Allow-Headers: | ||
- X-Requested-With, X-Prototype-Version, Origin, Accept, Content-Type, X-CSRF-Token, X-Pushover-App, Authorization | ||
Access-Control-Allow-Methods: | ||
- POST, OPTIONS | ||
Access-Control-Allow-Origin: | ||
- '*' | ||
Access-Control-Max-Age: | ||
- "1728000" | ||
Cache-Control: | ||
- no-cache | ||
Cf-Cache-Status: | ||
- DYNAMIC | ||
Cf-Ray: | ||
- 8a4749a09ad07c2d-LAX | ||
Content-Type: | ||
- application/json; charset=utf-8 | ||
Date: | ||
- Wed, 17 Jul 2024 03:53:54 GMT | ||
Referrer-Policy: | ||
- strict-origin-when-cross-origin | ||
Server: | ||
- cloudflare | ||
X-Content-Type-Options: | ||
- nosniff | ||
X-Download-Options: | ||
- noopen | ||
X-Frame-Options: | ||
- SAMEORIGIN | ||
X-Permitted-Cross-Domain-Policies: | ||
- none | ||
X-Request-Id: | ||
- 85158a2e-3f89-456b-9262-d14915ad76bc | ||
X-Runtime: | ||
- "0.007297" | ||
X-Xss-Protection: | ||
- 1; mode=block | ||
status: 400 Bad Request | ||
code: 400 | ||
duration: 308.7185ms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
--- | ||
version: 2 | ||
interactions: | ||
- id: 0 | ||
request: | ||
proto: HTTP/1.1 | ||
proto_major: 1 | ||
proto_minor: 1 | ||
content_length: 131 | ||
transfer_encoding: [] | ||
trailer: {} | ||
host: api.pushover.net | ||
remote_addr: "" | ||
request_uri: "" | ||
body: message=watered+for+6s&priority=0&title=+finished+watering&token=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&user=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa | ||
form: | ||
message: | ||
- watered for 6s | ||
priority: | ||
- "0" | ||
title: | ||
- " finished watering" | ||
token: | ||
- aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa | ||
user: | ||
- aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa | ||
headers: | ||
Content-Type: | ||
- application/x-www-form-urlencoded | ||
url: https://api.pushover.net/1/messages.json | ||
method: POST | ||
response: | ||
proto: HTTP/2.0 | ||
proto_major: 2 | ||
proto_minor: 0 | ||
transfer_encoding: [] | ||
trailer: {} | ||
content_length: -1 | ||
uncompressed: true | ||
body: '{"status":1,"request":"2e1d184d-da34-414c-ae3c-05022dc4a2f9"}' | ||
headers: | ||
Access-Control-Allow-Headers: | ||
- X-Requested-With, X-Prototype-Version, Origin, Accept, Content-Type, X-CSRF-Token, X-Pushover-App, Authorization | ||
Access-Control-Allow-Methods: | ||
- POST, OPTIONS | ||
Access-Control-Allow-Origin: | ||
- "*" | ||
Access-Control-Max-Age: | ||
- "1728000" | ||
Cache-Control: | ||
- max-age=0, private, must-revalidate | ||
Cf-Cache-Status: | ||
- DYNAMIC | ||
Cf-Ray: | ||
- 8a47468bac122b54-LAX | ||
Content-Type: | ||
- application/json; charset=utf-8 | ||
Date: | ||
- Wed, 17 Jul 2024 03:51:48 GMT | ||
Etag: | ||
- W/"fbf804824a9232da76ba211e79a0cd4a" | ||
Referrer-Policy: | ||
- strict-origin-when-cross-origin | ||
Server: | ||
- cloudflare | ||
Strict-Transport-Security: | ||
- max-age=31536000 | ||
X-Content-Type-Options: | ||
- nosniff | ||
X-Download-Options: | ||
- noopen | ||
X-Frame-Options: | ||
- SAMEORIGIN | ||
- DENY | ||
X-Limit-App-Limit: | ||
- "10000" | ||
X-Limit-App-Remaining: | ||
- "9937" | ||
X-Limit-App-Reset: | ||
- "1722488400" | ||
X-Permitted-Cross-Domain-Policies: | ||
- none | ||
X-Po-H: | ||
- a | ||
X-Request-Id: | ||
- 2e1d184d-da34-414c-ae3c-05022dc4a2f9 | ||
X-Runtime: | ||
- "0.056145" | ||
X-Xss-Protection: | ||
- 1; mode=block | ||
status: 200 OK | ||
code: 200 | ||
duration: 416.0575ms |
Oops, something went wrong.