--- 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:20 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: - 3507dc48-4680-4e97-b856-2ac59c8253df X-Runtime: - '0.022251' Server: - WEBrick/1.3.1 (Ruby/2.1.5/2014-11-13) Date: - Sun, 17 May 2015 04:14:20 GMT Content-Length: - '2402' Connection: - Keep-Alive body: encoding: UTF-8 string: '{"data":{"id":"12","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:20.079Z","updated-at":"2015-05-17T04:14:20.079Z"},"links":{"self":"/api/v1/builds/12","commit":{"self":"/api/v1/builds/12/links/commit","related":"/api/v1/builds/12/commit","linkage":{"type":"commits","id":"1"}},"repo":{"self":"/api/v1/builds/12/links/repo","related":"/api/v1/builds/12/repo"},"base-build":{"self":"/api/v1/builds/12/links/base-build","related":"/api/v1/builds/12/base-build","linkage":{"type":"builds","id":"8"}},"approved-by":{"self":"/api/v1/builds/12/links/approved-by","related":"/api/v1/builds/12/approved-by"},"snapshots":{"self":"/api/v1/builds/12/links/snapshots","related":"/api/v1/builds/12/snapshots"},"comparisons":{"self":"/api/v1/builds/12/links/comparisons","related":"/api/v1/builds/12/comparisons"}},"meta":{"finalize-link":"/api/v1/builds/12/finalize","approve-link":"/api/v1/builds/12/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:20 GMT - request: method: post uri: http://localhost:3000/api/v1/builds/12/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},{"type":"resources","id":"7509e5bda0c762d2bac7f90d758b5b2263fa01ccbc542ab5e3df163be08e6ca9","resource-url":"/css/test.css","mimetype":null,"is-root":null}]}}}' headers: User-Agent: - Faraday v0.9.1 Accept: - "*/*" Date: - Sun, 17 May 2015 04:14:20 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: - 24f42185-48ad-4285-8bad-7dc43f2d4bea X-Runtime: - '0.040410' Server: - WEBrick/1.3.1 (Ruby/2.1.5/2014-11-13) Date: - Sun, 17 May 2015 04:14:20 GMT Content-Length: - '1477' Connection: - Keep-Alive body: encoding: UTF-8 string: '{"data":{"id":"7","type":"snapshots","attributes":{"name":"homepage","created-at":"2015-05-17T04:14:20.107Z","updated-at":"2015-05-17T04:14:20.107Z"},"links":{"self":"/api/v1/snapshots/7","build":{"self":"/api/v1/snapshots/7/links/build","related":"/api/v1/snapshots/7/build"},"screenshots":{"self":"/api/v1/snapshots/7/links/screenshots","related":"/api/v1/snapshots/7/screenshots"},"resources":{"self":"/api/v1/snapshots/7/links/resources","related":"/api/v1/snapshots/7/resources","linkage":[{"type":"resources","id":"7509e5bda0c762d2bac7f90d758b5b2263fa01ccbc542ab5e3df163be08e6ca9"},{"type":"resources","id":"7509e5bda0c762d2bac7f90d758b5b2263fa01ccbc542ab5e3df163be08e6ca9"}]},"missing-resources":{"self":"/api/v1/snapshots/7/links/missing-resources","related":"/api/v1/snapshots/7/missing-resources","linkage":[]}}},"included":[{"id":"7509e5bda0c762d2bac7f90d758b5b2263fa01ccbc542ab5e3df163be08e6ca9","type":"resources","attributes":{"is-root":true,"resource-url":"http://localhost/foo/test.html","mimetype":"text/html","uploaded-at":"2015-05-17T04:14:19.000Z","created-at":"2015-05-17T04:14:20.000Z","updated-at":"2015-05-17T04:14:20.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:20 GMT recorded_with: VCR 2.9.3