--- http_interactions: - request: method: post uri: http://localhost:3000/api/v1/repos/fotinakis/percy-examples/builds/ body: encoding: UTF-8 string: '{"data":{"type":"builds","attributes":{"commit-sha":"85e1b2fc5e80c462bb281d4a9b72b3d86e9f5e8f","commit-branch":"master","commit-committed-at":"2015-05-16 19:39:41 -0700","commit-author-name":"","commit-author-email":"","commit-committer-name":"","commit-committer-email":"","commit-message":"Checkpoint some initial resources and snapshots work.","pull-request-number":null}}}' headers: User-Agent: - Faraday v0.9.1 Accept: - "*/*" Date: - Sun, 17 May 2015 04:14:18 GMT Content-Type: - application/vnd.api+json Authorization: - Token token="" response: status: code: 201 message: 'Created ' headers: X-Frame-Options: - SAMEORIGIN X-Xss-Protection: - 1; mode=block X-Content-Type-Options: - nosniff Access-Control-Allow-Origin: - "*" Access-Control-Allow-Methods: - GET, POST, PUT, PATCH, DELETE, OPTIONS Access-Control-Allow-Headers: - Authorization, Content-Type Cache-Control: - no-cache, no-store, max-age=0, must-revalidate Expires: - Thu, 01 Jan 1970 00:00:00 GMT Content-Type: - application/json; charset=utf-8 X-Request-Id: - 4d7e129a-5fe9-406c-9356-68fb11cdfc35 X-Runtime: - '0.020852' Server: - WEBrick/1.3.1 (Ruby/2.1.5/2014-11-13) Date: - Sun, 17 May 2015 04:14:18 GMT Content-Length: - '2402' Connection: - Keep-Alive body: encoding: UTF-8 string: '{"data":{"id":"10","type":"builds","attributes":{"state":"pending","is-pull-request":false,"pull-request-number":0,"pull-request-title":null,"approved-at":null,"created-at":"2015-05-17T04:14:18.798Z","updated-at":"2015-05-17T04:14:18.798Z"},"links":{"self":"/api/v1/builds/10","commit":{"self":"/api/v1/builds/10/links/commit","related":"/api/v1/builds/10/commit","linkage":{"type":"commits","id":"1"}},"repo":{"self":"/api/v1/builds/10/links/repo","related":"/api/v1/builds/10/repo"},"base-build":{"self":"/api/v1/builds/10/links/base-build","related":"/api/v1/builds/10/base-build","linkage":{"type":"builds","id":"8"}},"approved-by":{"self":"/api/v1/builds/10/links/approved-by","related":"/api/v1/builds/10/approved-by"},"snapshots":{"self":"/api/v1/builds/10/links/snapshots","related":"/api/v1/builds/10/snapshots"},"comparisons":{"self":"/api/v1/builds/10/links/comparisons","related":"/api/v1/builds/10/comparisons"}},"meta":{"finalize-link":"/api/v1/builds/10/finalize","approve-link":"/api/v1/builds/10/approve"}},"included":[{"id":"1","type":"commits","attributes":{"sha":"85e1b2fc5e80c462bb281d4a9b72b3d86e9f5e8f","branch":"master","message":"Checkpoint some initial resources and snapshots work.","committed-at":"2015-05-16 19:39:41 -0700","author-name":"","committer-name":"","created-at":"2015-05-17T04:02:54.000Z","updated-at":"2015-05-17T04:02:54.000Z"},"links":{"self":"/api/v1/commits/1"}},{"id":"8","type":"builds","attributes":{"state":"finished","is-pull-request":false,"pull-request-number":0,"pull-request-title":null,"approved-at":null,"created-at":"2015-05-17T04:12:48.000Z","updated-at":"2015-05-17T04:12:48.000Z"},"links":{"self":"/api/v1/builds/8","commit":{"self":"/api/v1/builds/8/links/commit","related":"/api/v1/builds/8/commit","linkage":{"type":"commits","id":"1"}},"repo":{"self":"/api/v1/builds/8/links/repo","related":"/api/v1/builds/8/repo"},"base-build":{"self":"/api/v1/builds/8/links/base-build","related":"/api/v1/builds/8/base-build"},"approved-by":{"self":"/api/v1/builds/8/links/approved-by","related":"/api/v1/builds/8/approved-by"},"snapshots":{"self":"/api/v1/builds/8/links/snapshots","related":"/api/v1/builds/8/snapshots"},"comparisons":{"self":"/api/v1/builds/8/links/comparisons","related":"/api/v1/builds/8/comparisons"}},"meta":{"finalize-link":"/api/v1/builds/8/finalize","approve-link":"/api/v1/builds/8/approve"}}]}' http_version: recorded_at: Sun, 17 May 2015 04:14:18 GMT - request: method: post uri: http://localhost:3000/api/v1/builds/10/snapshots/ body: encoding: UTF-8 string: '{"data":{"type":"snapshots","attributes":{"name":"homepage"},"links":{"resources":[{"type":"resources","id":"7509e5bda0c762d2bac7f90d758b5b2263fa01ccbc542ab5e3df163be08e6ca9","resource-url":"/foo/test.html","mimetype":null,"is-root":true}]}}}' headers: User-Agent: - Faraday v0.9.1 Accept: - "*/*" Date: - Sun, 17 May 2015 04:14:18 GMT Content-Type: - application/vnd.api+json Authorization: - Token token="" response: status: code: 201 message: 'Created ' headers: X-Frame-Options: - SAMEORIGIN X-Xss-Protection: - 1; mode=block X-Content-Type-Options: - nosniff Access-Control-Allow-Origin: - "*" Access-Control-Allow-Methods: - GET, POST, PUT, PATCH, DELETE, OPTIONS Access-Control-Allow-Headers: - Authorization, Content-Type Cache-Control: - no-cache, no-store, max-age=0, must-revalidate Expires: - Thu, 01 Jan 1970 00:00:00 GMT Content-Type: - application/json; charset=utf-8 X-Request-Id: - c772c50b-f43f-4fcb-9f78-a554dbe70ad8 X-Runtime: - '0.040375' Server: - WEBrick/1.3.1 (Ruby/2.1.5/2014-11-13) Date: - Sun, 17 May 2015 04:14:18 GMT Content-Length: - '1454' Connection: - Keep-Alive body: encoding: UTF-8 string: '{"data":{"id":"6","type":"snapshots","attributes":{"name":"homepage","created-at":"2015-05-17T04:14:18.822Z","updated-at":"2015-05-17T04:14:18.822Z"},"links":{"self":"/api/v1/snapshots/6","build":{"self":"/api/v1/snapshots/6/links/build","related":"/api/v1/snapshots/6/build"},"screenshots":{"self":"/api/v1/snapshots/6/links/screenshots","related":"/api/v1/snapshots/6/screenshots"},"resources":{"self":"/api/v1/snapshots/6/links/resources","related":"/api/v1/snapshots/6/resources","linkage":[{"type":"resources","id":"7509e5bda0c762d2bac7f90d758b5b2263fa01ccbc542ab5e3df163be08e6ca9"}]},"missing-resources":{"self":"/api/v1/snapshots/6/links/missing-resources","related":"/api/v1/snapshots/6/missing-resources","linkage":[{"type":"resources","id":"7509e5bda0c762d2bac7f90d758b5b2263fa01ccbc542ab5e3df163be08e6ca9"}]}}},"included":[{"id":"7509e5bda0c762d2bac7f90d758b5b2263fa01ccbc542ab5e3df163be08e6ca9","type":"resources","attributes":{"is-root":true,"resource-url":"http://localhost/foo/test.html","mimetype":"text/html","uploaded-at":null,"created-at":"2015-05-17T04:14:18.000Z","updated-at":"2015-05-17T04:14:18.000Z"},"links":{"self":"/api/v1/resources/7509e5bda0c762d2bac7f90d758b5b2263fa01ccbc542ab5e3df163be08e6ca9","snapshot":{"self":"/api/v1/resources/7509e5bda0c762d2bac7f90d758b5b2263fa01ccbc542ab5e3df163be08e6ca9/links/snapshot","related":"/api/v1/resources/7509e5bda0c762d2bac7f90d758b5b2263fa01ccbc542ab5e3df163be08e6ca9/snapshot"}}}]}' http_version: recorded_at: Sun, 17 May 2015 04:14:18 GMT - request: method: post uri: http://localhost:3000/api/v1/builds/10/resources/ body: encoding: UTF-8 string: '{"data":{"type":"resources","attributes":{"id":"7509e5bda0c762d2bac7f90d758b5b2263fa01ccbc542ab5e3df163be08e6ca9","base64-content":"aGVsbG8gd29ybGQh"}}}' headers: User-Agent: - Faraday v0.9.1 Accept: - "*/*" Date: - Sun, 17 May 2015 04:14:18 GMT Content-Type: - application/vnd.api+json Authorization: - Token token="" response: status: code: 201 message: 'Created ' headers: X-Frame-Options: - SAMEORIGIN X-Xss-Protection: - 1; mode=block X-Content-Type-Options: - nosniff Access-Control-Allow-Origin: - "*" Access-Control-Allow-Methods: - GET, POST, PUT, PATCH, DELETE, OPTIONS Access-Control-Allow-Headers: - Authorization, Content-Type Cache-Control: - no-cache, no-store, max-age=0, must-revalidate Expires: - Thu, 01 Jan 1970 00:00:00 GMT Content-Type: - application/json; charset=utf-8 X-Request-Id: - 71fa2e8d-79c6-4d4c-a840-649a9eb89b5b X-Runtime: - '0.973812' Server: - WEBrick/1.3.1 (Ruby/2.1.5/2014-11-13) Date: - Sun, 17 May 2015 04:14:19 GMT Content-Length: - '16' Connection: - Keep-Alive body: encoding: UTF-8 string: '{"success":true}' http_version: recorded_at: Sun, 17 May 2015 04:14:19 GMT - request: method: post uri: http://localhost:3000/api/v1/builds/10/resources/ body: encoding: UTF-8 string: '{"data":{"type":"resources","attributes":{"id":"7509e5bda0c762d2bac7f90d758b5b2263fa01ccbc542ab5e3df163be08e6ca9","base64-content":"aGVsbG8gd29ybGQh"}}}' headers: User-Agent: - Faraday v0.9.1 Accept: - "*/*" Date: - Sun, 17 May 2015 04:14:19 GMT Content-Type: - application/vnd.api+json Authorization: - Token token="" response: status: code: 409 message: 'Conflict ' headers: X-Frame-Options: - SAMEORIGIN X-Xss-Protection: - 1; mode=block X-Content-Type-Options: - nosniff Access-Control-Allow-Origin: - "*" Access-Control-Allow-Methods: - GET, POST, PUT, PATCH, DELETE, OPTIONS Access-Control-Allow-Headers: - Authorization, Content-Type Cache-Control: - no-cache, no-store, max-age=0, must-revalidate Expires: - Thu, 01 Jan 1970 00:00:00 GMT Content-Type: - application/json; charset=utf-8 X-Request-Id: - fa3edaef-c7ce-4906-910a-ac1e32b436d7 X-Runtime: - '0.007507' Server: - WEBrick/1.3.1 (Ruby/2.1.5/2014-11-13) Date: - Sun, 17 May 2015 04:14:19 GMT Content-Length: - '165' Connection: - Keep-Alive body: encoding: UTF-8 string: '{"errors":[{"status":"conflict","detail":"Upload failed, resource with SHA-256 ''7509e5bda0c762d2bac7f90d758b5b2263fa01ccbc542ab5e3df163be08e6ca9'' already exists."}]}' http_version: recorded_at: Sun, 17 May 2015 04:14:19 GMT recorded_with: VCR 2.9.3