Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
a QuotaReachedError is raised if you have reached your quota and you …
…try to create a new job
- Loading branch information
1 parent
5242a99
commit 35605cb
Showing
4 changed files
with
45 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
- !ruby/struct:VCR::HTTPInteraction | ||
request: !ruby/struct:VCR::Request | ||
method: :post | ||
uri: http://croniogemY:secret@api.cron.io:80/v1/crons | ||
body: ! '{"name":"fake job - can be purged","url":"http://example.com","schedule":"46 | ||
0 * * *"}' | ||
headers: | ||
content-type: | ||
- application/json | ||
authorization: | ||
- Basic Y3JvbmlvZ2VtWTpzZWNyZXQ= | ||
response: !ruby/struct:VCR::Response | ||
status: !ruby/struct:VCR::ResponseStatus | ||
code: 409 | ||
message: Conflict | ||
headers: | ||
content-type: | ||
- application/json | ||
transfer-encoding: | ||
- chunked | ||
body: ! '{"error":"The quota of 5 total crons has been reached for this account."}' | ||
http_version: '1.1' |