percy-client 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0887149e63b5fd87582fb37a82c6b3deda06b8ef
4
- data.tar.gz: 7ad138203c7e719e754fd320162e7c442f87ea3e
3
+ metadata.gz: e254b456d41fa6938dc166b8c385f7c1dfc7f52e
4
+ data.tar.gz: 5af65a8a5cd85fb8b1ffaeb8a4a48ce9c1195038
5
5
  SHA512:
6
- metadata.gz: 12dea291d0fab49b98b4c6e0c1408b6c482d9f7384b99c215fabee64c1590662ff45e91bc60f04f614e0a936dc84351f6b63826b8f51dff03854bf8644d05d46
7
- data.tar.gz: ace7abce75c6426c925956be37144ad81dd3f07782153e396aacd2c6e24a76b3f4bb729c66141f0aec407be0a1629267f3d304e736db1656aa7796414c3e838a
6
+ metadata.gz: 316652c9b3d64f932cc591f34d6ba87516ec07f1c7539105653e15c4862945779553ed24a96bf5f42c3475123a23176cd33cdc8aceafed44f3af6e4b1235cb47
7
+ data.tar.gz: ab05b3201073e9ee858df2063536ac6b485bd1bf51f748a05a72cb3d67b0822cf5bef936b929d8373539c0e2df1f4292de252169ccc305ffd5101bd1bcc36f3c
@@ -22,6 +22,10 @@ module Percy
22
22
  }
23
23
  post("#{config.api_url}/builds/#{build_id}/snapshots/", data)
24
24
  end
25
+
26
+ def finalize_snapshot(snapshot_id)
27
+ post("#{config.api_url}/snapshots/#{snapshot_id}/finalize", {})
28
+ end
25
29
  end
26
30
  end
27
31
  end
@@ -1,5 +1,5 @@
1
1
  module Percy
2
2
  class Client
3
- VERSION = '0.2.3'
3
+ VERSION = '0.2.4'
4
4
  end
5
5
  end
@@ -5,16 +5,16 @@ http_interactions:
5
5
  uri: http://localhost:3000/api/v1/repos/fotinakis/percy-examples/builds/
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"data":{"type":"builds","attributes":{"commit-sha":"65478abc7f79b22365c261076cb44478714c4751","commit-branch":"master","commit-committed-at":"2015-06-08
9
- 16:33:11 -0700","commit-author-name":"<COMMIT_AUTHOR_NAME>","commit-author-email":"<COMMIT_AUTHOR_EMAIL>","commit-committer-name":"<COMMIT_AUTHOR_NAME>","commit-committer-email":"<COMMIT_AUTHOR_EMAIL>","commit-message":"Bump
10
- client version.","pull-request-number":"123"},"relationships":{"resources":{"data":[{"type":"resources","id":"ab9ff0a3cf38ce2c95215a9545f89d7a30c28612d0df9762cba33f72006388d9","attributes":{"resource-url":"/css/test.css","mimetype":null,"is-root":null}}]}}}}'
8
+ string: '{"data":{"type":"builds","attributes":{"commit-sha":"fc4d2c2e6b55d995a005dba2d071e2f2fca5e04b","commit-branch":"master","commit-committed-at":"2015-06-09
9
+ 23:22:31 -0700","commit-author-name":"<COMMIT_AUTHOR_NAME>","commit-author-email":"<COMMIT_AUTHOR_EMAIL>","commit-committer-name":"<COMMIT_AUTHOR_NAME>","commit-committer-email":"<COMMIT_AUTHOR_EMAIL>","commit-message":"Fix
10
+ test environment issue.","pull-request-number":"123"},"relationships":{"resources":{"data":[{"type":"resources","id":"5909034bd2f101fdfdbc552fdddf5a53df463e05d49f4f93f9bb5bee93a49017","attributes":{"resource-url":"/css/test.css","mimetype":null,"is-root":null}}]}}}}'
11
11
  headers:
12
12
  User-Agent:
13
13
  - Faraday v0.9.1
14
14
  Accept:
15
15
  - "*/*"
16
16
  Date:
17
- - Wed, 10 Jun 2015 05:47:47 GMT
17
+ - Thu, 11 Jun 2015 00:20:38 GMT
18
18
  Content-Type:
19
19
  - application/vnd.api+json
20
20
  Authorization:
@@ -25,7 +25,7 @@ http_interactions:
25
25
  message: Created
26
26
  headers:
27
27
  Date:
28
- - Wed, 10 Jun 2015 05:47:47 GMT
28
+ - Thu, 11 Jun 2015 00:20:38 GMT
29
29
  Status:
30
30
  - 201 Created
31
31
  Connection:
@@ -49,15 +49,15 @@ http_interactions:
49
49
  Content-Type:
50
50
  - application/json; charset=utf-8
51
51
  X-Request-Id:
52
- - bd7dd2cb-e92b-46c7-9b41-a41998b3a783
52
+ - 2a782298-d885-45aa-bf97-1f55a002eb63
53
53
  X-Runtime:
54
- - '0.518396'
54
+ - '0.510551'
55
55
  Transfer-Encoding:
56
56
  - chunked
57
57
  body:
58
58
  encoding: UTF-8
59
- string: '{"data":{"id":"31422","type":"builds","attributes":{"build-number":2,"state":"pending","is-pull-request":true,"pull-request-number":123,"pull-request-title":null,"approved-at":null,"created-at":"2015-06-10T05:47:47.124Z","updated-at":"2015-06-10T05:47:47.124Z"},"links":{"self":"/api/v1/builds/31422"},"relationships":{"commit":{"links":{"self":"/api/v1/builds/31422/relationships/commit","related":"/api/v1/builds/31422/commit"},"data":{"type":"commits","id":"2"}},"repo":{"links":{"self":"/api/v1/builds/31422/relationships/repo","related":"/api/v1/builds/31422/repo"}},"base-build":{"links":{"self":"/api/v1/builds/31422/relationships/base-build","related":"/api/v1/builds/31422/base-build"},"data":{"type":"builds","id":"31421"}},"approved-by":{"links":{"self":"/api/v1/builds/31422/relationships/approved-by","related":"/api/v1/builds/31422/approved-by"}},"snapshots":{"links":{"self":"/api/v1/builds/31422/relationships/snapshots","related":"/api/v1/builds/31422/snapshots"}},"comparisons":{"links":{"self":"/api/v1/builds/31422/relationships/comparisons","related":"/api/v1/builds/31422/comparisons"}},"missing-resources":{"links":{"self":"/api/v1/builds/31422/relationships/missing-resources","related":"/api/v1/builds/31422/missing-resources"},"data":[{"type":"resources","id":"ab9ff0a3cf38ce2c95215a9545f89d7a30c28612d0df9762cba33f72006388d9"}]}},"meta":{"finalize-link":"/api/v1/builds/31422/finalize","approve-link":"/api/v1/builds/31422/approve"}},"included":[{"id":"2","type":"commits","attributes":{"sha":"65478abc7f79b22365c261076cb44478714c4751","branch":"master","message":"Bump
60
- client version.","committed-at":"2015-06-08 16:33:11 -0700","author-name":"<COMMIT_AUTHOR_NAME>","committer-name":"<COMMIT_AUTHOR_NAME>","created-at":"2015-06-10T05:47:46.000Z","updated-at":"2015-06-10T05:47:46.000Z"},"links":{"self":"/api/v1/commits/2"}},{"id":"31421","type":"builds","attributes":{"build-number":1,"state":"finished","is-pull-request":false,"pull-request-number":0,"pull-request-title":null,"approved-at":null,"created-at":"2015-06-10T05:47:46.000Z","updated-at":"2015-06-10T05:47:47.000Z"},"links":{"self":"/api/v1/builds/31421"},"relationships":{"commit":{"links":{"self":"/api/v1/builds/31421/relationships/commit","related":"/api/v1/builds/31421/commit"},"data":{"type":"commits","id":"2"}},"repo":{"links":{"self":"/api/v1/builds/31421/relationships/repo","related":"/api/v1/builds/31421/repo"}},"base-build":{"links":{"self":"/api/v1/builds/31421/relationships/base-build","related":"/api/v1/builds/31421/base-build"}},"approved-by":{"links":{"self":"/api/v1/builds/31421/relationships/approved-by","related":"/api/v1/builds/31421/approved-by"}},"snapshots":{"links":{"self":"/api/v1/builds/31421/relationships/snapshots","related":"/api/v1/builds/31421/snapshots"}},"comparisons":{"links":{"self":"/api/v1/builds/31421/relationships/comparisons","related":"/api/v1/builds/31421/comparisons"}},"missing-resources":{"links":{"self":"/api/v1/builds/31421/relationships/missing-resources","related":"/api/v1/builds/31421/missing-resources"}}},"meta":{"finalize-link":"/api/v1/builds/31421/finalize","approve-link":"/api/v1/builds/31421/approve"}},{"id":"ab9ff0a3cf38ce2c95215a9545f89d7a30c28612d0df9762cba33f72006388d9","type":"resources","attributes":{},"links":{"self":"/api/v1/resources/ab9ff0a3cf38ce2c95215a9545f89d7a30c28612d0df9762cba33f72006388d9"}}]}'
59
+ string: '{"data":{"id":"30","type":"builds","attributes":{"build-number":30,"state":"pending","is-pull-request":true,"pull-request-number":123,"pull-request-title":null,"approved-at":null,"created-at":"2015-06-11T00:20:38.388Z","updated-at":"2015-06-11T00:20:38.388Z"},"links":{"self":"/api/v1/builds/30"},"relationships":{"commit":{"links":{"self":"/api/v1/builds/30/relationships/commit","related":"/api/v1/builds/30/commit"},"data":{"type":"commits","id":"2"}},"repo":{"links":{"self":"/api/v1/builds/30/relationships/repo","related":"/api/v1/builds/30/repo"}},"base-build":{"links":{"self":"/api/v1/builds/30/relationships/base-build","related":"/api/v1/builds/30/base-build"},"data":{"type":"builds","id":"29"}},"approved-by":{"links":{"self":"/api/v1/builds/30/relationships/approved-by","related":"/api/v1/builds/30/approved-by"}},"snapshots":{"links":{"self":"/api/v1/builds/30/relationships/snapshots","related":"/api/v1/builds/30/snapshots"}},"comparisons":{"links":{"self":"/api/v1/builds/30/relationships/comparisons","related":"/api/v1/builds/30/comparisons"}},"missing-resources":{"links":{"self":"/api/v1/builds/30/relationships/missing-resources","related":"/api/v1/builds/30/missing-resources"},"data":[{"type":"resources","id":"5909034bd2f101fdfdbc552fdddf5a53df463e05d49f4f93f9bb5bee93a49017"}]}},"meta":{"finalize-link":"/api/v1/builds/30/finalize","approve-link":"/api/v1/builds/30/approve"}},"included":[{"id":"2","type":"commits","attributes":{"sha":"fc4d2c2e6b55d995a005dba2d071e2f2fca5e04b","branch":"master","message":"Fix
60
+ test environment issue.","committed-at":"2015-06-09 23:22:31 -0700","author-name":"<COMMIT_AUTHOR_NAME>","committer-name":"<COMMIT_AUTHOR_NAME>","created-at":"2015-06-11T00:15:24.000Z","updated-at":"2015-06-11T00:15:24.000Z"},"links":{"self":"/api/v1/commits/2"}},{"id":"29","type":"builds","attributes":{"build-number":29,"state":"finished","is-pull-request":false,"pull-request-number":0,"pull-request-title":null,"approved-at":null,"created-at":"2015-06-11T00:20:38.000Z","updated-at":"2015-06-11T00:20:38.000Z"},"links":{"self":"/api/v1/builds/29"},"relationships":{"commit":{"links":{"self":"/api/v1/builds/29/relationships/commit","related":"/api/v1/builds/29/commit"},"data":{"type":"commits","id":"2"}},"repo":{"links":{"self":"/api/v1/builds/29/relationships/repo","related":"/api/v1/builds/29/repo"}},"base-build":{"links":{"self":"/api/v1/builds/29/relationships/base-build","related":"/api/v1/builds/29/base-build"}},"approved-by":{"links":{"self":"/api/v1/builds/29/relationships/approved-by","related":"/api/v1/builds/29/approved-by"}},"snapshots":{"links":{"self":"/api/v1/builds/29/relationships/snapshots","related":"/api/v1/builds/29/snapshots"}},"comparisons":{"links":{"self":"/api/v1/builds/29/relationships/comparisons","related":"/api/v1/builds/29/comparisons"}},"missing-resources":{"links":{"self":"/api/v1/builds/29/relationships/missing-resources","related":"/api/v1/builds/29/missing-resources"}}},"meta":{"finalize-link":"/api/v1/builds/29/finalize","approve-link":"/api/v1/builds/29/approve"}},{"id":"5909034bd2f101fdfdbc552fdddf5a53df463e05d49f4f93f9bb5bee93a49017","type":"resources","attributes":{},"links":{"self":"/api/v1/resources/5909034bd2f101fdfdbc552fdddf5a53df463e05d49f4f93f9bb5bee93a49017"}}]}'
61
61
  http_version:
62
- recorded_at: Wed, 10 Jun 2015 05:47:47 GMT
62
+ recorded_at: Thu, 11 Jun 2015 00:20:38 GMT
63
63
  recorded_with: VCR 2.9.3
@@ -5,16 +5,16 @@ http_interactions:
5
5
  uri: http://localhost:3000/api/v1/repos/fotinakis/percy-examples/builds/
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"data":{"type":"builds","attributes":{"commit-sha":"65478abc7f79b22365c261076cb44478714c4751","commit-branch":"master","commit-committed-at":"2015-06-08
9
- 16:33:11 -0700","commit-author-name":"<COMMIT_AUTHOR_NAME>","commit-author-email":"<COMMIT_AUTHOR_EMAIL>","commit-committer-name":"<COMMIT_AUTHOR_NAME>","commit-committer-email":"<COMMIT_AUTHOR_EMAIL>","commit-message":"Bump
10
- client version.","pull-request-number":"123"}}}'
8
+ string: '{"data":{"type":"builds","attributes":{"commit-sha":"fc4d2c2e6b55d995a005dba2d071e2f2fca5e04b","commit-branch":"master","commit-committed-at":"2015-06-09
9
+ 23:22:31 -0700","commit-author-name":"<COMMIT_AUTHOR_NAME>","commit-author-email":"<COMMIT_AUTHOR_EMAIL>","commit-committer-name":"<COMMIT_AUTHOR_NAME>","commit-committer-email":"<COMMIT_AUTHOR_EMAIL>","commit-message":"Fix
10
+ test environment issue.","pull-request-number":"123"}}}'
11
11
  headers:
12
12
  User-Agent:
13
13
  - Faraday v0.9.1
14
14
  Accept:
15
15
  - "*/*"
16
16
  Date:
17
- - Wed, 10 Jun 2015 05:47:47 GMT
17
+ - Thu, 11 Jun 2015 00:20:38 GMT
18
18
  Content-Type:
19
19
  - application/vnd.api+json
20
20
  Authorization:
@@ -25,7 +25,7 @@ http_interactions:
25
25
  message: Created
26
26
  headers:
27
27
  Date:
28
- - Wed, 10 Jun 2015 05:47:48 GMT
28
+ - Thu, 11 Jun 2015 00:20:39 GMT
29
29
  Status:
30
30
  - 201 Created
31
31
  Connection:
@@ -49,15 +49,15 @@ http_interactions:
49
49
  Content-Type:
50
50
  - application/json; charset=utf-8
51
51
  X-Request-Id:
52
- - 1aff50d1-46bc-4c99-bd95-fbc9af6697fa
52
+ - 446304d0-e682-46b1-b0c0-39eefc375c40
53
53
  X-Runtime:
54
- - '0.437441'
54
+ - '0.422910'
55
55
  Transfer-Encoding:
56
56
  - chunked
57
57
  body:
58
58
  encoding: UTF-8
59
- string: '{"data":{"id":"31423","type":"builds","attributes":{"build-number":3,"state":"pending","is-pull-request":true,"pull-request-number":123,"pull-request-title":null,"approved-at":null,"created-at":"2015-06-10T05:47:47.682Z","updated-at":"2015-06-10T05:47:47.682Z"},"links":{"self":"/api/v1/builds/31423"},"relationships":{"commit":{"links":{"self":"/api/v1/builds/31423/relationships/commit","related":"/api/v1/builds/31423/commit"},"data":{"type":"commits","id":"2"}},"repo":{"links":{"self":"/api/v1/builds/31423/relationships/repo","related":"/api/v1/builds/31423/repo"}},"base-build":{"links":{"self":"/api/v1/builds/31423/relationships/base-build","related":"/api/v1/builds/31423/base-build"},"data":{"type":"builds","id":"31421"}},"approved-by":{"links":{"self":"/api/v1/builds/31423/relationships/approved-by","related":"/api/v1/builds/31423/approved-by"}},"snapshots":{"links":{"self":"/api/v1/builds/31423/relationships/snapshots","related":"/api/v1/builds/31423/snapshots"}},"comparisons":{"links":{"self":"/api/v1/builds/31423/relationships/comparisons","related":"/api/v1/builds/31423/comparisons"}},"missing-resources":{"links":{"self":"/api/v1/builds/31423/relationships/missing-resources","related":"/api/v1/builds/31423/missing-resources"}}},"meta":{"finalize-link":"/api/v1/builds/31423/finalize","approve-link":"/api/v1/builds/31423/approve"}},"included":[{"id":"2","type":"commits","attributes":{"sha":"65478abc7f79b22365c261076cb44478714c4751","branch":"master","message":"Bump
60
- client version.","committed-at":"2015-06-08 16:33:11 -0700","author-name":"<COMMIT_AUTHOR_NAME>","committer-name":"<COMMIT_AUTHOR_NAME>","created-at":"2015-06-10T05:47:46.000Z","updated-at":"2015-06-10T05:47:46.000Z"},"links":{"self":"/api/v1/commits/2"}},{"id":"31421","type":"builds","attributes":{"build-number":1,"state":"finished","is-pull-request":false,"pull-request-number":0,"pull-request-title":null,"approved-at":null,"created-at":"2015-06-10T05:47:46.000Z","updated-at":"2015-06-10T05:47:47.000Z"},"links":{"self":"/api/v1/builds/31421"},"relationships":{"commit":{"links":{"self":"/api/v1/builds/31421/relationships/commit","related":"/api/v1/builds/31421/commit"},"data":{"type":"commits","id":"2"}},"repo":{"links":{"self":"/api/v1/builds/31421/relationships/repo","related":"/api/v1/builds/31421/repo"}},"base-build":{"links":{"self":"/api/v1/builds/31421/relationships/base-build","related":"/api/v1/builds/31421/base-build"}},"approved-by":{"links":{"self":"/api/v1/builds/31421/relationships/approved-by","related":"/api/v1/builds/31421/approved-by"}},"snapshots":{"links":{"self":"/api/v1/builds/31421/relationships/snapshots","related":"/api/v1/builds/31421/snapshots"}},"comparisons":{"links":{"self":"/api/v1/builds/31421/relationships/comparisons","related":"/api/v1/builds/31421/comparisons"}},"missing-resources":{"links":{"self":"/api/v1/builds/31421/relationships/missing-resources","related":"/api/v1/builds/31421/missing-resources"}}},"meta":{"finalize-link":"/api/v1/builds/31421/finalize","approve-link":"/api/v1/builds/31421/approve"}}]}'
59
+ string: '{"data":{"id":"31","type":"builds","attributes":{"build-number":31,"state":"pending","is-pull-request":true,"pull-request-number":123,"pull-request-title":null,"approved-at":null,"created-at":"2015-06-11T00:20:38.926Z","updated-at":"2015-06-11T00:20:38.926Z"},"links":{"self":"/api/v1/builds/31"},"relationships":{"commit":{"links":{"self":"/api/v1/builds/31/relationships/commit","related":"/api/v1/builds/31/commit"},"data":{"type":"commits","id":"2"}},"repo":{"links":{"self":"/api/v1/builds/31/relationships/repo","related":"/api/v1/builds/31/repo"}},"base-build":{"links":{"self":"/api/v1/builds/31/relationships/base-build","related":"/api/v1/builds/31/base-build"},"data":{"type":"builds","id":"29"}},"approved-by":{"links":{"self":"/api/v1/builds/31/relationships/approved-by","related":"/api/v1/builds/31/approved-by"}},"snapshots":{"links":{"self":"/api/v1/builds/31/relationships/snapshots","related":"/api/v1/builds/31/snapshots"}},"comparisons":{"links":{"self":"/api/v1/builds/31/relationships/comparisons","related":"/api/v1/builds/31/comparisons"}},"missing-resources":{"links":{"self":"/api/v1/builds/31/relationships/missing-resources","related":"/api/v1/builds/31/missing-resources"}}},"meta":{"finalize-link":"/api/v1/builds/31/finalize","approve-link":"/api/v1/builds/31/approve"}},"included":[{"id":"2","type":"commits","attributes":{"sha":"fc4d2c2e6b55d995a005dba2d071e2f2fca5e04b","branch":"master","message":"Fix
60
+ test environment issue.","committed-at":"2015-06-09 23:22:31 -0700","author-name":"<COMMIT_AUTHOR_NAME>","committer-name":"<COMMIT_AUTHOR_NAME>","created-at":"2015-06-11T00:15:24.000Z","updated-at":"2015-06-11T00:15:24.000Z"},"links":{"self":"/api/v1/commits/2"}},{"id":"29","type":"builds","attributes":{"build-number":29,"state":"finished","is-pull-request":false,"pull-request-number":0,"pull-request-title":null,"approved-at":null,"created-at":"2015-06-11T00:20:38.000Z","updated-at":"2015-06-11T00:20:38.000Z"},"links":{"self":"/api/v1/builds/29"},"relationships":{"commit":{"links":{"self":"/api/v1/builds/29/relationships/commit","related":"/api/v1/builds/29/commit"},"data":{"type":"commits","id":"2"}},"repo":{"links":{"self":"/api/v1/builds/29/relationships/repo","related":"/api/v1/builds/29/repo"}},"base-build":{"links":{"self":"/api/v1/builds/29/relationships/base-build","related":"/api/v1/builds/29/base-build"}},"approved-by":{"links":{"self":"/api/v1/builds/29/relationships/approved-by","related":"/api/v1/builds/29/approved-by"}},"snapshots":{"links":{"self":"/api/v1/builds/29/relationships/snapshots","related":"/api/v1/builds/29/snapshots"}},"comparisons":{"links":{"self":"/api/v1/builds/29/relationships/comparisons","related":"/api/v1/builds/29/comparisons"}},"missing-resources":{"links":{"self":"/api/v1/builds/29/relationships/missing-resources","related":"/api/v1/builds/29/missing-resources"}}},"meta":{"finalize-link":"/api/v1/builds/29/finalize","approve-link":"/api/v1/builds/29/approve"}}]}'
61
61
  http_version:
62
- recorded_at: Wed, 10 Jun 2015 05:47:48 GMT
62
+ recorded_at: Thu, 11 Jun 2015 00:20:39 GMT
63
63
  recorded_with: VCR 2.9.3
@@ -5,16 +5,16 @@ http_interactions:
5
5
  uri: http://localhost:3000/api/v1/repos/fotinakis/percy-examples/builds/
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"data":{"type":"builds","attributes":{"commit-sha":"65478abc7f79b22365c261076cb44478714c4751","commit-branch":"master","commit-committed-at":"2015-06-08
9
- 16:33:11 -0700","commit-author-name":"<COMMIT_AUTHOR_NAME>","commit-author-email":"<COMMIT_AUTHOR_EMAIL>","commit-committer-name":"<COMMIT_AUTHOR_NAME>","commit-committer-email":"<COMMIT_AUTHOR_EMAIL>","commit-message":"Bump
10
- client version.","pull-request-number":null}}}'
8
+ string: '{"data":{"type":"builds","attributes":{"commit-sha":"fc4d2c2e6b55d995a005dba2d071e2f2fca5e04b","commit-branch":"master","commit-committed-at":"2015-06-09
9
+ 23:22:31 -0700","commit-author-name":"<COMMIT_AUTHOR_NAME>","commit-author-email":"<COMMIT_AUTHOR_EMAIL>","commit-committer-name":"<COMMIT_AUTHOR_NAME>","commit-committer-email":"<COMMIT_AUTHOR_EMAIL>","commit-message":"Fix
10
+ test environment issue.","pull-request-number":null}}}'
11
11
  headers:
12
12
  User-Agent:
13
13
  - Faraday v0.9.1
14
14
  Accept:
15
15
  - "*/*"
16
16
  Date:
17
- - Wed, 10 Jun 2015 05:47:46 GMT
17
+ - Thu, 11 Jun 2015 00:20:38 GMT
18
18
  Content-Type:
19
19
  - application/vnd.api+json
20
20
  Authorization:
@@ -25,7 +25,7 @@ http_interactions:
25
25
  message: Created
26
26
  headers:
27
27
  Date:
28
- - Wed, 10 Jun 2015 05:47:46 GMT
28
+ - Thu, 11 Jun 2015 00:20:38 GMT
29
29
  Status:
30
30
  - 201 Created
31
31
  Connection:
@@ -49,20 +49,20 @@ http_interactions:
49
49
  Content-Type:
50
50
  - application/json; charset=utf-8
51
51
  X-Request-Id:
52
- - 3041884c-5f5f-48cd-9760-76da566aeeed
52
+ - 89c61b81-82f7-46e9-a787-17c3b28a9811
53
53
  X-Runtime:
54
- - '0.105519'
54
+ - '0.035421'
55
55
  Transfer-Encoding:
56
56
  - chunked
57
57
  body:
58
58
  encoding: UTF-8
59
- string: '{"data":{"id":"31421","type":"builds","attributes":{"build-number":1,"state":"pending","is-pull-request":false,"pull-request-number":0,"pull-request-title":null,"approved-at":null,"created-at":"2015-06-10T05:47:46.952Z","updated-at":"2015-06-10T05:47:46.952Z"},"links":{"self":"/api/v1/builds/31421"},"relationships":{"commit":{"links":{"self":"/api/v1/builds/31421/relationships/commit","related":"/api/v1/builds/31421/commit"},"data":{"type":"commits","id":"2"}},"repo":{"links":{"self":"/api/v1/builds/31421/relationships/repo","related":"/api/v1/builds/31421/repo"}},"base-build":{"links":{"self":"/api/v1/builds/31421/relationships/base-build","related":"/api/v1/builds/31421/base-build"},"data":null},"approved-by":{"links":{"self":"/api/v1/builds/31421/relationships/approved-by","related":"/api/v1/builds/31421/approved-by"}},"snapshots":{"links":{"self":"/api/v1/builds/31421/relationships/snapshots","related":"/api/v1/builds/31421/snapshots"}},"comparisons":{"links":{"self":"/api/v1/builds/31421/relationships/comparisons","related":"/api/v1/builds/31421/comparisons"}},"missing-resources":{"links":{"self":"/api/v1/builds/31421/relationships/missing-resources","related":"/api/v1/builds/31421/missing-resources"}}},"meta":{"finalize-link":"/api/v1/builds/31421/finalize","approve-link":"/api/v1/builds/31421/approve"}},"included":[{"id":"2","type":"commits","attributes":{"sha":"65478abc7f79b22365c261076cb44478714c4751","branch":"master","message":"Bump
60
- client version.","committed-at":"2015-06-08 16:33:11 -0700","author-name":"<COMMIT_AUTHOR_NAME>","committer-name":"<COMMIT_AUTHOR_NAME>","created-at":"2015-06-10T05:47:46.944Z","updated-at":"2015-06-10T05:47:46.944Z"},"links":{"self":"/api/v1/commits/2"}}]}'
59
+ string: '{"data":{"id":"29","type":"builds","attributes":{"build-number":29,"state":"pending","is-pull-request":false,"pull-request-number":0,"pull-request-title":null,"approved-at":null,"created-at":"2015-06-11T00:20:38.233Z","updated-at":"2015-06-11T00:20:38.233Z"},"links":{"self":"/api/v1/builds/29"},"relationships":{"commit":{"links":{"self":"/api/v1/builds/29/relationships/commit","related":"/api/v1/builds/29/commit"},"data":{"type":"commits","id":"2"}},"repo":{"links":{"self":"/api/v1/builds/29/relationships/repo","related":"/api/v1/builds/29/repo"}},"base-build":{"links":{"self":"/api/v1/builds/29/relationships/base-build","related":"/api/v1/builds/29/base-build"},"data":{"type":"builds","id":"22"}},"approved-by":{"links":{"self":"/api/v1/builds/29/relationships/approved-by","related":"/api/v1/builds/29/approved-by"}},"snapshots":{"links":{"self":"/api/v1/builds/29/relationships/snapshots","related":"/api/v1/builds/29/snapshots"}},"comparisons":{"links":{"self":"/api/v1/builds/29/relationships/comparisons","related":"/api/v1/builds/29/comparisons"}},"missing-resources":{"links":{"self":"/api/v1/builds/29/relationships/missing-resources","related":"/api/v1/builds/29/missing-resources"}}},"meta":{"finalize-link":"/api/v1/builds/29/finalize","approve-link":"/api/v1/builds/29/approve"}},"included":[{"id":"2","type":"commits","attributes":{"sha":"fc4d2c2e6b55d995a005dba2d071e2f2fca5e04b","branch":"master","message":"Fix
60
+ test environment issue.","committed-at":"2015-06-09 23:22:31 -0700","author-name":"<COMMIT_AUTHOR_NAME>","committer-name":"<COMMIT_AUTHOR_NAME>","created-at":"2015-06-11T00:15:24.000Z","updated-at":"2015-06-11T00:15:24.000Z"},"links":{"self":"/api/v1/commits/2"}},{"id":"22","type":"builds","attributes":{"build-number":22,"state":"finished","is-pull-request":false,"pull-request-number":0,"pull-request-title":null,"approved-at":null,"created-at":"2015-06-11T00:17:46.000Z","updated-at":"2015-06-11T00:17:46.000Z"},"links":{"self":"/api/v1/builds/22"},"relationships":{"commit":{"links":{"self":"/api/v1/builds/22/relationships/commit","related":"/api/v1/builds/22/commit"},"data":{"type":"commits","id":"2"}},"repo":{"links":{"self":"/api/v1/builds/22/relationships/repo","related":"/api/v1/builds/22/repo"}},"base-build":{"links":{"self":"/api/v1/builds/22/relationships/base-build","related":"/api/v1/builds/22/base-build"}},"approved-by":{"links":{"self":"/api/v1/builds/22/relationships/approved-by","related":"/api/v1/builds/22/approved-by"}},"snapshots":{"links":{"self":"/api/v1/builds/22/relationships/snapshots","related":"/api/v1/builds/22/snapshots"}},"comparisons":{"links":{"self":"/api/v1/builds/22/relationships/comparisons","related":"/api/v1/builds/22/comparisons"}},"missing-resources":{"links":{"self":"/api/v1/builds/22/relationships/missing-resources","related":"/api/v1/builds/22/missing-resources"}}},"meta":{"finalize-link":"/api/v1/builds/22/finalize","approve-link":"/api/v1/builds/22/approve"}}]}'
61
61
  http_version:
62
- recorded_at: Wed, 10 Jun 2015 05:47:46 GMT
62
+ recorded_at: Thu, 11 Jun 2015 00:20:38 GMT
63
63
  - request:
64
64
  method: post
65
- uri: http://localhost:3000/api/v1/builds/31421/finalize
65
+ uri: http://localhost:3000/api/v1/builds/29/finalize
66
66
  body:
67
67
  encoding: UTF-8
68
68
  string: "{}"
@@ -72,7 +72,7 @@ http_interactions:
72
72
  Accept:
73
73
  - "*/*"
74
74
  Date:
75
- - Wed, 10 Jun 2015 05:47:46 GMT
75
+ - Thu, 11 Jun 2015 00:20:38 GMT
76
76
  Content-Type:
77
77
  - application/vnd.api+json
78
78
  Authorization:
@@ -83,7 +83,7 @@ http_interactions:
83
83
  message: OK
84
84
  headers:
85
85
  Date:
86
- - Wed, 10 Jun 2015 05:47:47 GMT
86
+ - Thu, 11 Jun 2015 00:20:38 GMT
87
87
  Status:
88
88
  - 200 OK
89
89
  Connection:
@@ -107,14 +107,14 @@ http_interactions:
107
107
  Content-Type:
108
108
  - application/json; charset=utf-8
109
109
  X-Request-Id:
110
- - e7683121-641a-4b3e-8131-c6f2a4b296b7
110
+ - 35f847a0-8fc1-4b07-bef2-04ea63ee6e1c
111
111
  X-Runtime:
112
- - '0.059485'
112
+ - '0.033964'
113
113
  Transfer-Encoding:
114
114
  - chunked
115
115
  body:
116
116
  encoding: UTF-8
117
117
  string: '{"success":true}'
118
118
  http_version:
119
- recorded_at: Wed, 10 Jun 2015 05:47:47 GMT
119
+ recorded_at: Thu, 11 Jun 2015 00:20:38 GMT
120
120
  recorded_with: VCR 2.9.3
@@ -5,16 +5,16 @@ http_interactions:
5
5
  uri: http://localhost:3000/api/v1/repos/fotinakis/percy-examples/builds/
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"data":{"type":"builds","attributes":{"commit-sha":"65478abc7f79b22365c261076cb44478714c4751","commit-branch":"master","commit-committed-at":"2015-06-08
9
- 16:33:11 -0700","commit-author-name":"<COMMIT_AUTHOR_NAME>","commit-author-email":"<COMMIT_AUTHOR_EMAIL>","commit-committer-name":"<COMMIT_AUTHOR_NAME>","commit-committer-email":"<COMMIT_AUTHOR_EMAIL>","commit-message":"Bump
10
- client version.","pull-request-number":null}}}'
8
+ string: '{"data":{"type":"builds","attributes":{"commit-sha":"fc4d2c2e6b55d995a005dba2d071e2f2fca5e04b","commit-branch":"master","commit-committed-at":"2015-06-09
9
+ 23:22:31 -0700","commit-author-name":"<COMMIT_AUTHOR_NAME>","commit-author-email":"<COMMIT_AUTHOR_EMAIL>","commit-committer-name":"<COMMIT_AUTHOR_NAME>","commit-committer-email":"<COMMIT_AUTHOR_EMAIL>","commit-message":"Fix
10
+ test environment issue.","pull-request-number":null}}}'
11
11
  headers:
12
12
  User-Agent:
13
13
  - Faraday v0.9.1
14
14
  Accept:
15
15
  - "*/*"
16
16
  Date:
17
- - Wed, 10 Jun 2015 05:47:48 GMT
17
+ - Thu, 11 Jun 2015 00:20:36 GMT
18
18
  Content-Type:
19
19
  - application/vnd.api+json
20
20
  Authorization:
@@ -25,7 +25,7 @@ http_interactions:
25
25
  message: Created
26
26
  headers:
27
27
  Date:
28
- - Wed, 10 Jun 2015 05:47:48 GMT
28
+ - Thu, 11 Jun 2015 00:20:36 GMT
29
29
  Status:
30
30
  - 201 Created
31
31
  Connection:
@@ -49,30 +49,30 @@ http_interactions:
49
49
  Content-Type:
50
50
  - application/json; charset=utf-8
51
51
  X-Request-Id:
52
- - 7366b3ff-cf23-4afc-8a03-57c7145faa15
52
+ - 2680d68e-d8b3-4b0d-8d5f-d8fe9810a080
53
53
  X-Runtime:
54
- - '0.067419'
54
+ - '0.198242'
55
55
  Transfer-Encoding:
56
56
  - chunked
57
57
  body:
58
58
  encoding: UTF-8
59
- string: '{"data":{"id":"31424","type":"builds","attributes":{"build-number":4,"state":"pending","is-pull-request":false,"pull-request-number":0,"pull-request-title":null,"approved-at":null,"created-at":"2015-06-10T05:47:48.210Z","updated-at":"2015-06-10T05:47:48.210Z"},"links":{"self":"/api/v1/builds/31424"},"relationships":{"commit":{"links":{"self":"/api/v1/builds/31424/relationships/commit","related":"/api/v1/builds/31424/commit"},"data":{"type":"commits","id":"2"}},"repo":{"links":{"self":"/api/v1/builds/31424/relationships/repo","related":"/api/v1/builds/31424/repo"}},"base-build":{"links":{"self":"/api/v1/builds/31424/relationships/base-build","related":"/api/v1/builds/31424/base-build"},"data":{"type":"builds","id":"31421"}},"approved-by":{"links":{"self":"/api/v1/builds/31424/relationships/approved-by","related":"/api/v1/builds/31424/approved-by"}},"snapshots":{"links":{"self":"/api/v1/builds/31424/relationships/snapshots","related":"/api/v1/builds/31424/snapshots"}},"comparisons":{"links":{"self":"/api/v1/builds/31424/relationships/comparisons","related":"/api/v1/builds/31424/comparisons"}},"missing-resources":{"links":{"self":"/api/v1/builds/31424/relationships/missing-resources","related":"/api/v1/builds/31424/missing-resources"}}},"meta":{"finalize-link":"/api/v1/builds/31424/finalize","approve-link":"/api/v1/builds/31424/approve"}},"included":[{"id":"2","type":"commits","attributes":{"sha":"65478abc7f79b22365c261076cb44478714c4751","branch":"master","message":"Bump
60
- client version.","committed-at":"2015-06-08 16:33:11 -0700","author-name":"<COMMIT_AUTHOR_NAME>","committer-name":"<COMMIT_AUTHOR_NAME>","created-at":"2015-06-10T05:47:46.000Z","updated-at":"2015-06-10T05:47:46.000Z"},"links":{"self":"/api/v1/commits/2"}},{"id":"31421","type":"builds","attributes":{"build-number":1,"state":"finished","is-pull-request":false,"pull-request-number":0,"pull-request-title":null,"approved-at":null,"created-at":"2015-06-10T05:47:46.000Z","updated-at":"2015-06-10T05:47:47.000Z"},"links":{"self":"/api/v1/builds/31421"},"relationships":{"commit":{"links":{"self":"/api/v1/builds/31421/relationships/commit","related":"/api/v1/builds/31421/commit"},"data":{"type":"commits","id":"2"}},"repo":{"links":{"self":"/api/v1/builds/31421/relationships/repo","related":"/api/v1/builds/31421/repo"}},"base-build":{"links":{"self":"/api/v1/builds/31421/relationships/base-build","related":"/api/v1/builds/31421/base-build"}},"approved-by":{"links":{"self":"/api/v1/builds/31421/relationships/approved-by","related":"/api/v1/builds/31421/approved-by"}},"snapshots":{"links":{"self":"/api/v1/builds/31421/relationships/snapshots","related":"/api/v1/builds/31421/snapshots"}},"comparisons":{"links":{"self":"/api/v1/builds/31421/relationships/comparisons","related":"/api/v1/builds/31421/comparisons"}},"missing-resources":{"links":{"self":"/api/v1/builds/31421/relationships/missing-resources","related":"/api/v1/builds/31421/missing-resources"}}},"meta":{"finalize-link":"/api/v1/builds/31421/finalize","approve-link":"/api/v1/builds/31421/approve"}}]}'
59
+ string: '{"data":{"id":"25","type":"builds","attributes":{"build-number":25,"state":"pending","is-pull-request":false,"pull-request-number":0,"pull-request-title":null,"approved-at":null,"created-at":"2015-06-11T00:20:36.192Z","updated-at":"2015-06-11T00:20:36.192Z"},"links":{"self":"/api/v1/builds/25"},"relationships":{"commit":{"links":{"self":"/api/v1/builds/25/relationships/commit","related":"/api/v1/builds/25/commit"},"data":{"type":"commits","id":"2"}},"repo":{"links":{"self":"/api/v1/builds/25/relationships/repo","related":"/api/v1/builds/25/repo"}},"base-build":{"links":{"self":"/api/v1/builds/25/relationships/base-build","related":"/api/v1/builds/25/base-build"},"data":{"type":"builds","id":"22"}},"approved-by":{"links":{"self":"/api/v1/builds/25/relationships/approved-by","related":"/api/v1/builds/25/approved-by"}},"snapshots":{"links":{"self":"/api/v1/builds/25/relationships/snapshots","related":"/api/v1/builds/25/snapshots"}},"comparisons":{"links":{"self":"/api/v1/builds/25/relationships/comparisons","related":"/api/v1/builds/25/comparisons"}},"missing-resources":{"links":{"self":"/api/v1/builds/25/relationships/missing-resources","related":"/api/v1/builds/25/missing-resources"}}},"meta":{"finalize-link":"/api/v1/builds/25/finalize","approve-link":"/api/v1/builds/25/approve"}},"included":[{"id":"2","type":"commits","attributes":{"sha":"fc4d2c2e6b55d995a005dba2d071e2f2fca5e04b","branch":"master","message":"Fix
60
+ test environment issue.","committed-at":"2015-06-09 23:22:31 -0700","author-name":"<COMMIT_AUTHOR_NAME>","committer-name":"<COMMIT_AUTHOR_NAME>","created-at":"2015-06-11T00:15:24.000Z","updated-at":"2015-06-11T00:15:24.000Z"},"links":{"self":"/api/v1/commits/2"}},{"id":"22","type":"builds","attributes":{"build-number":22,"state":"finished","is-pull-request":false,"pull-request-number":0,"pull-request-title":null,"approved-at":null,"created-at":"2015-06-11T00:17:46.000Z","updated-at":"2015-06-11T00:17:46.000Z"},"links":{"self":"/api/v1/builds/22"},"relationships":{"commit":{"links":{"self":"/api/v1/builds/22/relationships/commit","related":"/api/v1/builds/22/commit"},"data":{"type":"commits","id":"2"}},"repo":{"links":{"self":"/api/v1/builds/22/relationships/repo","related":"/api/v1/builds/22/repo"}},"base-build":{"links":{"self":"/api/v1/builds/22/relationships/base-build","related":"/api/v1/builds/22/base-build"}},"approved-by":{"links":{"self":"/api/v1/builds/22/relationships/approved-by","related":"/api/v1/builds/22/approved-by"}},"snapshots":{"links":{"self":"/api/v1/builds/22/relationships/snapshots","related":"/api/v1/builds/22/snapshots"}},"comparisons":{"links":{"self":"/api/v1/builds/22/relationships/comparisons","related":"/api/v1/builds/22/comparisons"}},"missing-resources":{"links":{"self":"/api/v1/builds/22/relationships/missing-resources","related":"/api/v1/builds/22/missing-resources"}}},"meta":{"finalize-link":"/api/v1/builds/22/finalize","approve-link":"/api/v1/builds/22/approve"}}]}'
61
61
  http_version:
62
- recorded_at: Wed, 10 Jun 2015 05:47:48 GMT
62
+ recorded_at: Thu, 11 Jun 2015 00:20:36 GMT
63
63
  - request:
64
64
  method: post
65
- uri: http://localhost:3000/api/v1/builds/31424/snapshots/
65
+ uri: http://localhost:3000/api/v1/builds/25/snapshots/
66
66
  body:
67
67
  encoding: UTF-8
68
- string: '{"data":{"type":"snapshots","attributes":{"name":"homepage"},"relationships":{"resources":{"data":[{"type":"resources","id":"b53960b166ed18f5ef9c65e387ce43f31b3e233b2732dd9e8e143058a7271369","attributes":{"resource-url":"/foo/test.html","mimetype":null,"is-root":true}}]}}}}'
68
+ string: '{"data":{"type":"snapshots","attributes":{"name":"homepage"},"relationships":{"resources":{"data":[{"type":"resources","id":"0ae24db123b4b8b506d27ccd61fb20de2d29e71ca6c2737dee6078db0f716602","attributes":{"resource-url":"/foo/test.html","mimetype":null,"is-root":true}}]}}}}'
69
69
  headers:
70
70
  User-Agent:
71
71
  - Faraday v0.9.1
72
72
  Accept:
73
73
  - "*/*"
74
74
  Date:
75
- - Wed, 10 Jun 2015 05:47:48 GMT
75
+ - Thu, 11 Jun 2015 00:20:36 GMT
76
76
  Content-Type:
77
77
  - application/vnd.api+json
78
78
  Authorization:
@@ -83,7 +83,7 @@ http_interactions:
83
83
  message: Created
84
84
  headers:
85
85
  Date:
86
- - Wed, 10 Jun 2015 05:47:48 GMT
86
+ - Thu, 11 Jun 2015 00:20:36 GMT
87
87
  Status:
88
88
  - 201 Created
89
89
  Connection:
@@ -107,29 +107,29 @@ http_interactions:
107
107
  Content-Type:
108
108
  - application/json; charset=utf-8
109
109
  X-Request-Id:
110
- - 07ca2efe-71bc-4770-a2e7-b422be5e9e3b
110
+ - 760611ed-20eb-4f5f-b77a-643662f9bec8
111
111
  X-Runtime:
112
- - '0.024594'
112
+ - '0.051560'
113
113
  Transfer-Encoding:
114
114
  - chunked
115
115
  body:
116
116
  encoding: UTF-8
117
- string: '{"data":{"id":"3","type":"snapshots","attributes":{"name":"homepage","created-at":"2015-06-10T05:47:48.251Z","updated-at":"2015-06-10T05:47:48.251Z","finished-processing-at":null},"links":{"self":"/api/v1/snapshots/3"},"relationships":{"build":{"links":{"self":"/api/v1/snapshots/3/relationships/build","related":"/api/v1/snapshots/3/build"}},"screenshots":{"links":{"self":"/api/v1/snapshots/3/relationships/screenshots","related":"/api/v1/snapshots/3/screenshots"}},"missing-resources":{"links":{"self":"/api/v1/snapshots/3/relationships/missing-resources","related":"/api/v1/snapshots/3/missing-resources"},"data":[{"type":"resources","id":"b53960b166ed18f5ef9c65e387ce43f31b3e233b2732dd9e8e143058a7271369"}]}}},"included":[{"id":"b53960b166ed18f5ef9c65e387ce43f31b3e233b2732dd9e8e143058a7271369","type":"resources","attributes":{},"links":{"self":"/api/v1/resources/b53960b166ed18f5ef9c65e387ce43f31b3e233b2732dd9e8e143058a7271369"}}]}'
117
+ string: '{"data":{"id":"1108","type":"snapshots","attributes":{"name":"homepage","created-at":"2015-06-11T00:20:36.248Z","updated-at":"2015-06-11T00:20:36.248Z","finished-processing-at":null},"links":{"self":"/api/v1/snapshots/1108"},"relationships":{"build":{"links":{"self":"/api/v1/snapshots/1108/relationships/build","related":"/api/v1/snapshots/1108/build"}},"screenshots":{"links":{"self":"/api/v1/snapshots/1108/relationships/screenshots","related":"/api/v1/snapshots/1108/screenshots"}},"missing-resources":{"links":{"self":"/api/v1/snapshots/1108/relationships/missing-resources","related":"/api/v1/snapshots/1108/missing-resources"},"data":[{"type":"resources","id":"0ae24db123b4b8b506d27ccd61fb20de2d29e71ca6c2737dee6078db0f716602"}]}}},"included":[{"id":"0ae24db123b4b8b506d27ccd61fb20de2d29e71ca6c2737dee6078db0f716602","type":"resources","attributes":{},"links":{"self":"/api/v1/resources/0ae24db123b4b8b506d27ccd61fb20de2d29e71ca6c2737dee6078db0f716602"}}]}'
118
118
  http_version:
119
- recorded_at: Wed, 10 Jun 2015 05:47:48 GMT
119
+ recorded_at: Thu, 11 Jun 2015 00:20:36 GMT
120
120
  - request:
121
121
  method: post
122
- uri: http://localhost:3000/api/v1/builds/31424/resources/
122
+ uri: http://localhost:3000/api/v1/builds/25/resources/
123
123
  body:
124
124
  encoding: UTF-8
125
- string: '{"data":{"type":"resources","attributes":{"id":"b53960b166ed18f5ef9c65e387ce43f31b3e233b2732dd9e8e143058a7271369","base64-content":"aGVsbG8gd29ybGQhIC9Vc2Vycy9mb3RpbmFraXMvc3JjL3BlcmN5LWNsaWVudC9zcGVjL2xpYi9wZXJjeS9jbGllbnQvcmVzb3VyY2VzX3NwZWMucmI="}}}'
125
+ string: '{"data":{"type":"resources","attributes":{"id":"0ae24db123b4b8b506d27ccd61fb20de2d29e71ca6c2737dee6078db0f716602","base64-content":"aGVsbG8gd29ybGQhIFBlcmN5OjpDbGllbnQ6OlJlc291cmNlcw=="}}}'
126
126
  headers:
127
127
  User-Agent:
128
128
  - Faraday v0.9.1
129
129
  Accept:
130
130
  - "*/*"
131
131
  Date:
132
- - Wed, 10 Jun 2015 05:47:48 GMT
132
+ - Thu, 11 Jun 2015 00:20:36 GMT
133
133
  Content-Type:
134
134
  - application/vnd.api+json
135
135
  Authorization:
@@ -140,7 +140,7 @@ http_interactions:
140
140
  message: Created
141
141
  headers:
142
142
  Date:
143
- - Wed, 10 Jun 2015 05:47:49 GMT
143
+ - Thu, 11 Jun 2015 00:20:37 GMT
144
144
  Status:
145
145
  - 201 Created
146
146
  Connection:
@@ -164,29 +164,29 @@ http_interactions:
164
164
  Content-Type:
165
165
  - application/json; charset=utf-8
166
166
  X-Request-Id:
167
- - 40daddeb-0add-4f2a-8d14-758b43be8589
167
+ - edc5ac12-5b5a-410f-b94e-a46166a3b218
168
168
  X-Runtime:
169
- - '1.314255'
169
+ - '1.109584'
170
170
  Transfer-Encoding:
171
171
  - chunked
172
172
  body:
173
173
  encoding: UTF-8
174
174
  string: '{"success":true}'
175
175
  http_version:
176
- recorded_at: Wed, 10 Jun 2015 05:47:49 GMT
176
+ recorded_at: Thu, 11 Jun 2015 00:20:37 GMT
177
177
  - request:
178
178
  method: post
179
- uri: http://localhost:3000/api/v1/builds/31424/resources/
179
+ uri: http://localhost:3000/api/v1/builds/25/resources/
180
180
  body:
181
181
  encoding: UTF-8
182
- string: '{"data":{"type":"resources","attributes":{"id":"b53960b166ed18f5ef9c65e387ce43f31b3e233b2732dd9e8e143058a7271369","base64-content":"aGVsbG8gd29ybGQhIC9Vc2Vycy9mb3RpbmFraXMvc3JjL3BlcmN5LWNsaWVudC9zcGVjL2xpYi9wZXJjeS9jbGllbnQvcmVzb3VyY2VzX3NwZWMucmI="}}}'
182
+ string: '{"data":{"type":"resources","attributes":{"id":"0ae24db123b4b8b506d27ccd61fb20de2d29e71ca6c2737dee6078db0f716602","base64-content":"aGVsbG8gd29ybGQhIFBlcmN5OjpDbGllbnQ6OlJlc291cmNlcw=="}}}'
183
183
  headers:
184
184
  User-Agent:
185
185
  - Faraday v0.9.1
186
186
  Accept:
187
187
  - "*/*"
188
188
  Date:
189
- - Wed, 10 Jun 2015 05:47:49 GMT
189
+ - Thu, 11 Jun 2015 00:20:37 GMT
190
190
  Content-Type:
191
191
  - application/vnd.api+json
192
192
  Authorization:
@@ -197,7 +197,7 @@ http_interactions:
197
197
  message: Conflict
198
198
  headers:
199
199
  Date:
200
- - Wed, 10 Jun 2015 05:47:49 GMT
200
+ - Thu, 11 Jun 2015 00:20:37 GMT
201
201
  Status:
202
202
  - 409 Conflict
203
203
  Connection:
@@ -221,16 +221,16 @@ http_interactions:
221
221
  Content-Type:
222
222
  - application/json; charset=utf-8
223
223
  X-Request-Id:
224
- - 30a89483-bcda-4254-9fec-a8ad52c0cace
224
+ - f08955d9-c4b2-4bb8-af7d-377049445251
225
225
  X-Runtime:
226
- - '0.028442'
226
+ - '0.025972'
227
227
  Transfer-Encoding:
228
228
  - chunked
229
229
  body:
230
230
  encoding: UTF-8
231
231
  string: '{"errors":[{"status":"conflict","detail":"Upload failed, resource with
232
- SHA-256 ''b53960b166ed18f5ef9c65e387ce43f31b3e233b2732dd9e8e143058a7271369''
232
+ SHA-256 ''0ae24db123b4b8b506d27ccd61fb20de2d29e71ca6c2737dee6078db0f716602''
233
233
  already exists."}]}'
234
234
  http_version:
235
- recorded_at: Wed, 10 Jun 2015 05:47:49 GMT
235
+ recorded_at: Thu, 11 Jun 2015 00:20:37 GMT
236
236
  recorded_with: VCR 2.9.3
@@ -0,0 +1,120 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://localhost:3000/api/v1/repos/fotinakis/percy-examples/builds/
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"data":{"type":"builds","attributes":{"commit-sha":"fc4d2c2e6b55d995a005dba2d071e2f2fca5e04b","commit-branch":"master","commit-committed-at":"2015-06-09
9
+ 23:22:31 -0700","commit-author-name":"<COMMIT_AUTHOR_NAME>","commit-author-email":"<COMMIT_AUTHOR_EMAIL>","commit-committer-name":"<COMMIT_AUTHOR_NAME>","commit-committer-email":"<COMMIT_AUTHOR_EMAIL>","commit-message":"Fix
10
+ test environment issue.","pull-request-number":null}}}'
11
+ headers:
12
+ User-Agent:
13
+ - Faraday v0.9.1
14
+ Accept:
15
+ - "*/*"
16
+ Date:
17
+ - Thu, 11 Jun 2015 00:20:37 GMT
18
+ Content-Type:
19
+ - application/vnd.api+json
20
+ Authorization:
21
+ - Token token="<FILTERED_PERCY_TOKEN>"
22
+ response:
23
+ status:
24
+ code: 201
25
+ message: Created
26
+ headers:
27
+ Date:
28
+ - Thu, 11 Jun 2015 00:20:37 GMT
29
+ Status:
30
+ - 201 Created
31
+ Connection:
32
+ - close
33
+ X-Frame-Options:
34
+ - SAMEORIGIN
35
+ X-Xss-Protection:
36
+ - 1; mode=block
37
+ X-Content-Type-Options:
38
+ - nosniff
39
+ Access-Control-Allow-Origin:
40
+ - "*"
41
+ Access-Control-Allow-Methods:
42
+ - GET, POST, PUT, PATCH, DELETE, OPTIONS
43
+ Access-Control-Allow-Headers:
44
+ - Authorization, Content-Type
45
+ Cache-Control:
46
+ - no-cache, no-store, max-age=0, must-revalidate
47
+ Expires:
48
+ - Thu, 01 Jan 1970 00:00:00 GMT
49
+ Content-Type:
50
+ - application/json; charset=utf-8
51
+ X-Request-Id:
52
+ - 998e5483-89b7-4118-aa43-63883455d31b
53
+ X-Runtime:
54
+ - '0.042738'
55
+ Transfer-Encoding:
56
+ - chunked
57
+ body:
58
+ encoding: UTF-8
59
+ string: '{"data":{"id":"28","type":"builds","attributes":{"build-number":28,"state":"pending","is-pull-request":false,"pull-request-number":0,"pull-request-title":null,"approved-at":null,"created-at":"2015-06-11T00:20:37.863Z","updated-at":"2015-06-11T00:20:37.863Z"},"links":{"self":"/api/v1/builds/28"},"relationships":{"commit":{"links":{"self":"/api/v1/builds/28/relationships/commit","related":"/api/v1/builds/28/commit"},"data":{"type":"commits","id":"2"}},"repo":{"links":{"self":"/api/v1/builds/28/relationships/repo","related":"/api/v1/builds/28/repo"}},"base-build":{"links":{"self":"/api/v1/builds/28/relationships/base-build","related":"/api/v1/builds/28/base-build"},"data":{"type":"builds","id":"22"}},"approved-by":{"links":{"self":"/api/v1/builds/28/relationships/approved-by","related":"/api/v1/builds/28/approved-by"}},"snapshots":{"links":{"self":"/api/v1/builds/28/relationships/snapshots","related":"/api/v1/builds/28/snapshots"}},"comparisons":{"links":{"self":"/api/v1/builds/28/relationships/comparisons","related":"/api/v1/builds/28/comparisons"}},"missing-resources":{"links":{"self":"/api/v1/builds/28/relationships/missing-resources","related":"/api/v1/builds/28/missing-resources"}}},"meta":{"finalize-link":"/api/v1/builds/28/finalize","approve-link":"/api/v1/builds/28/approve"}},"included":[{"id":"2","type":"commits","attributes":{"sha":"fc4d2c2e6b55d995a005dba2d071e2f2fca5e04b","branch":"master","message":"Fix
60
+ test environment issue.","committed-at":"2015-06-09 23:22:31 -0700","author-name":"<COMMIT_AUTHOR_NAME>","committer-name":"<COMMIT_AUTHOR_NAME>","created-at":"2015-06-11T00:15:24.000Z","updated-at":"2015-06-11T00:15:24.000Z"},"links":{"self":"/api/v1/commits/2"}},{"id":"22","type":"builds","attributes":{"build-number":22,"state":"finished","is-pull-request":false,"pull-request-number":0,"pull-request-title":null,"approved-at":null,"created-at":"2015-06-11T00:17:46.000Z","updated-at":"2015-06-11T00:17:46.000Z"},"links":{"self":"/api/v1/builds/22"},"relationships":{"commit":{"links":{"self":"/api/v1/builds/22/relationships/commit","related":"/api/v1/builds/22/commit"},"data":{"type":"commits","id":"2"}},"repo":{"links":{"self":"/api/v1/builds/22/relationships/repo","related":"/api/v1/builds/22/repo"}},"base-build":{"links":{"self":"/api/v1/builds/22/relationships/base-build","related":"/api/v1/builds/22/base-build"}},"approved-by":{"links":{"self":"/api/v1/builds/22/relationships/approved-by","related":"/api/v1/builds/22/approved-by"}},"snapshots":{"links":{"self":"/api/v1/builds/22/relationships/snapshots","related":"/api/v1/builds/22/snapshots"}},"comparisons":{"links":{"self":"/api/v1/builds/22/relationships/comparisons","related":"/api/v1/builds/22/comparisons"}},"missing-resources":{"links":{"self":"/api/v1/builds/22/relationships/missing-resources","related":"/api/v1/builds/22/missing-resources"}}},"meta":{"finalize-link":"/api/v1/builds/22/finalize","approve-link":"/api/v1/builds/22/approve"}}]}'
61
+ http_version:
62
+ recorded_at: Thu, 11 Jun 2015 00:20:37 GMT
63
+ - request:
64
+ method: post
65
+ uri: http://localhost:3000/api/v1/builds/28/snapshots/
66
+ body:
67
+ encoding: UTF-8
68
+ string: '{"data":{"type":"snapshots","attributes":{"name":"homepage"},"relationships":{"resources":{"data":[{"type":"resources","id":"8d68af40ce7ee4591a7df49d1a40db8bf0b6535a37c896eda504f963c622535a","attributes":{"resource-url":"/foo/test.html","mimetype":null,"is-root":true}},{"type":"resources","id":"8d68af40ce7ee4591a7df49d1a40db8bf0b6535a37c896eda504f963c622535a","attributes":{"resource-url":"/css/test.css","mimetype":null,"is-root":null}}]}}}}'
69
+ headers:
70
+ User-Agent:
71
+ - Faraday v0.9.1
72
+ Accept:
73
+ - "*/*"
74
+ Date:
75
+ - Thu, 11 Jun 2015 00:20:37 GMT
76
+ Content-Type:
77
+ - application/vnd.api+json
78
+ Authorization:
79
+ - Token token="<FILTERED_PERCY_TOKEN>"
80
+ response:
81
+ status:
82
+ code: 201
83
+ message: Created
84
+ headers:
85
+ Date:
86
+ - Thu, 11 Jun 2015 00:20:38 GMT
87
+ Status:
88
+ - 201 Created
89
+ Connection:
90
+ - close
91
+ X-Frame-Options:
92
+ - SAMEORIGIN
93
+ X-Xss-Protection:
94
+ - 1; mode=block
95
+ X-Content-Type-Options:
96
+ - nosniff
97
+ Access-Control-Allow-Origin:
98
+ - "*"
99
+ Access-Control-Allow-Methods:
100
+ - GET, POST, PUT, PATCH, DELETE, OPTIONS
101
+ Access-Control-Allow-Headers:
102
+ - Authorization, Content-Type
103
+ Cache-Control:
104
+ - no-cache, no-store, max-age=0, must-revalidate
105
+ Expires:
106
+ - Thu, 01 Jan 1970 00:00:00 GMT
107
+ Content-Type:
108
+ - application/json; charset=utf-8
109
+ X-Request-Id:
110
+ - 54eed09b-c2ca-4378-a52b-5d5003f6f7ec
111
+ X-Runtime:
112
+ - '0.212265'
113
+ Transfer-Encoding:
114
+ - chunked
115
+ body:
116
+ encoding: UTF-8
117
+ string: '{"data":{"id":"1110","type":"snapshots","attributes":{"name":"homepage","created-at":"2015-06-11T00:20:38.085Z","updated-at":"2015-06-11T00:20:38.085Z","finished-processing-at":null},"links":{"self":"/api/v1/snapshots/1110"},"relationships":{"build":{"links":{"self":"/api/v1/snapshots/1110/relationships/build","related":"/api/v1/snapshots/1110/build"}},"screenshots":{"links":{"self":"/api/v1/snapshots/1110/relationships/screenshots","related":"/api/v1/snapshots/1110/screenshots"}},"missing-resources":{"links":{"self":"/api/v1/snapshots/1110/relationships/missing-resources","related":"/api/v1/snapshots/1110/missing-resources"},"data":[{"type":"resources","id":"8d68af40ce7ee4591a7df49d1a40db8bf0b6535a37c896eda504f963c622535a"}]}}},"included":[{"id":"8d68af40ce7ee4591a7df49d1a40db8bf0b6535a37c896eda504f963c622535a","type":"resources","attributes":{},"links":{"self":"/api/v1/resources/8d68af40ce7ee4591a7df49d1a40db8bf0b6535a37c896eda504f963c622535a"}}]}'
118
+ http_version:
119
+ recorded_at: Thu, 11 Jun 2015 00:20:38 GMT
120
+ recorded_with: VCR 2.9.3
@@ -5,16 +5,16 @@ http_interactions:
5
5
  uri: http://localhost:3000/api/v1/repos/fotinakis/percy-examples/builds/
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"data":{"type":"builds","attributes":{"commit-sha":"65478abc7f79b22365c261076cb44478714c4751","commit-branch":"master","commit-committed-at":"2015-06-08
9
- 16:33:11 -0700","commit-author-name":"<COMMIT_AUTHOR_NAME>","commit-author-email":"<COMMIT_AUTHOR_EMAIL>","commit-committer-name":"<COMMIT_AUTHOR_NAME>","commit-committer-email":"<COMMIT_AUTHOR_EMAIL>","commit-message":"Bump
10
- client version.","pull-request-number":null}}}'
8
+ string: '{"data":{"type":"builds","attributes":{"commit-sha":"fc4d2c2e6b55d995a005dba2d071e2f2fca5e04b","commit-branch":"master","commit-committed-at":"2015-06-09
9
+ 23:22:31 -0700","commit-author-name":"<COMMIT_AUTHOR_NAME>","commit-author-email":"<COMMIT_AUTHOR_EMAIL>","commit-committer-name":"<COMMIT_AUTHOR_NAME>","commit-committer-email":"<COMMIT_AUTHOR_EMAIL>","commit-message":"Fix
10
+ test environment issue.","pull-request-number":null}}}'
11
11
  headers:
12
12
  User-Agent:
13
13
  - Faraday v0.9.1
14
14
  Accept:
15
15
  - "*/*"
16
16
  Date:
17
- - Wed, 10 Jun 2015 05:47:49 GMT
17
+ - Thu, 11 Jun 2015 00:20:37 GMT
18
18
  Content-Type:
19
19
  - application/vnd.api+json
20
20
  Authorization:
@@ -25,7 +25,7 @@ http_interactions:
25
25
  message: Created
26
26
  headers:
27
27
  Date:
28
- - Wed, 10 Jun 2015 05:47:49 GMT
28
+ - Thu, 11 Jun 2015 00:20:37 GMT
29
29
  Status:
30
30
  - 201 Created
31
31
  Connection:
@@ -49,20 +49,20 @@ http_interactions:
49
49
  Content-Type:
50
50
  - application/json; charset=utf-8
51
51
  X-Request-Id:
52
- - 561536a7-61d8-40ab-8c76-a6c7ba827f5b
52
+ - 30b2e83e-e33e-475d-87e8-5e937cc7a092
53
53
  X-Runtime:
54
- - '0.049243'
54
+ - '0.028035'
55
55
  Transfer-Encoding:
56
56
  - chunked
57
57
  body:
58
58
  encoding: UTF-8
59
- string: '{"data":{"id":"31425","type":"builds","attributes":{"build-number":5,"state":"pending","is-pull-request":false,"pull-request-number":0,"pull-request-title":null,"approved-at":null,"created-at":"2015-06-10T05:47:49.763Z","updated-at":"2015-06-10T05:47:49.763Z"},"links":{"self":"/api/v1/builds/31425"},"relationships":{"commit":{"links":{"self":"/api/v1/builds/31425/relationships/commit","related":"/api/v1/builds/31425/commit"},"data":{"type":"commits","id":"2"}},"repo":{"links":{"self":"/api/v1/builds/31425/relationships/repo","related":"/api/v1/builds/31425/repo"}},"base-build":{"links":{"self":"/api/v1/builds/31425/relationships/base-build","related":"/api/v1/builds/31425/base-build"},"data":{"type":"builds","id":"31421"}},"approved-by":{"links":{"self":"/api/v1/builds/31425/relationships/approved-by","related":"/api/v1/builds/31425/approved-by"}},"snapshots":{"links":{"self":"/api/v1/builds/31425/relationships/snapshots","related":"/api/v1/builds/31425/snapshots"}},"comparisons":{"links":{"self":"/api/v1/builds/31425/relationships/comparisons","related":"/api/v1/builds/31425/comparisons"}},"missing-resources":{"links":{"self":"/api/v1/builds/31425/relationships/missing-resources","related":"/api/v1/builds/31425/missing-resources"}}},"meta":{"finalize-link":"/api/v1/builds/31425/finalize","approve-link":"/api/v1/builds/31425/approve"}},"included":[{"id":"2","type":"commits","attributes":{"sha":"65478abc7f79b22365c261076cb44478714c4751","branch":"master","message":"Bump
60
- client version.","committed-at":"2015-06-08 16:33:11 -0700","author-name":"<COMMIT_AUTHOR_NAME>","committer-name":"<COMMIT_AUTHOR_NAME>","created-at":"2015-06-10T05:47:46.000Z","updated-at":"2015-06-10T05:47:46.000Z"},"links":{"self":"/api/v1/commits/2"}},{"id":"31421","type":"builds","attributes":{"build-number":1,"state":"finished","is-pull-request":false,"pull-request-number":0,"pull-request-title":null,"approved-at":null,"created-at":"2015-06-10T05:47:46.000Z","updated-at":"2015-06-10T05:47:47.000Z"},"links":{"self":"/api/v1/builds/31421"},"relationships":{"commit":{"links":{"self":"/api/v1/builds/31421/relationships/commit","related":"/api/v1/builds/31421/commit"},"data":{"type":"commits","id":"2"}},"repo":{"links":{"self":"/api/v1/builds/31421/relationships/repo","related":"/api/v1/builds/31421/repo"}},"base-build":{"links":{"self":"/api/v1/builds/31421/relationships/base-build","related":"/api/v1/builds/31421/base-build"}},"approved-by":{"links":{"self":"/api/v1/builds/31421/relationships/approved-by","related":"/api/v1/builds/31421/approved-by"}},"snapshots":{"links":{"self":"/api/v1/builds/31421/relationships/snapshots","related":"/api/v1/builds/31421/snapshots"}},"comparisons":{"links":{"self":"/api/v1/builds/31421/relationships/comparisons","related":"/api/v1/builds/31421/comparisons"}},"missing-resources":{"links":{"self":"/api/v1/builds/31421/relationships/missing-resources","related":"/api/v1/builds/31421/missing-resources"}}},"meta":{"finalize-link":"/api/v1/builds/31421/finalize","approve-link":"/api/v1/builds/31421/approve"}}]}'
59
+ string: '{"data":{"id":"27","type":"builds","attributes":{"build-number":27,"state":"pending","is-pull-request":false,"pull-request-number":0,"pull-request-title":null,"approved-at":null,"created-at":"2015-06-11T00:20:37.746Z","updated-at":"2015-06-11T00:20:37.746Z"},"links":{"self":"/api/v1/builds/27"},"relationships":{"commit":{"links":{"self":"/api/v1/builds/27/relationships/commit","related":"/api/v1/builds/27/commit"},"data":{"type":"commits","id":"2"}},"repo":{"links":{"self":"/api/v1/builds/27/relationships/repo","related":"/api/v1/builds/27/repo"}},"base-build":{"links":{"self":"/api/v1/builds/27/relationships/base-build","related":"/api/v1/builds/27/base-build"},"data":{"type":"builds","id":"22"}},"approved-by":{"links":{"self":"/api/v1/builds/27/relationships/approved-by","related":"/api/v1/builds/27/approved-by"}},"snapshots":{"links":{"self":"/api/v1/builds/27/relationships/snapshots","related":"/api/v1/builds/27/snapshots"}},"comparisons":{"links":{"self":"/api/v1/builds/27/relationships/comparisons","related":"/api/v1/builds/27/comparisons"}},"missing-resources":{"links":{"self":"/api/v1/builds/27/relationships/missing-resources","related":"/api/v1/builds/27/missing-resources"}}},"meta":{"finalize-link":"/api/v1/builds/27/finalize","approve-link":"/api/v1/builds/27/approve"}},"included":[{"id":"2","type":"commits","attributes":{"sha":"fc4d2c2e6b55d995a005dba2d071e2f2fca5e04b","branch":"master","message":"Fix
60
+ test environment issue.","committed-at":"2015-06-09 23:22:31 -0700","author-name":"<COMMIT_AUTHOR_NAME>","committer-name":"<COMMIT_AUTHOR_NAME>","created-at":"2015-06-11T00:15:24.000Z","updated-at":"2015-06-11T00:15:24.000Z"},"links":{"self":"/api/v1/commits/2"}},{"id":"22","type":"builds","attributes":{"build-number":22,"state":"finished","is-pull-request":false,"pull-request-number":0,"pull-request-title":null,"approved-at":null,"created-at":"2015-06-11T00:17:46.000Z","updated-at":"2015-06-11T00:17:46.000Z"},"links":{"self":"/api/v1/builds/22"},"relationships":{"commit":{"links":{"self":"/api/v1/builds/22/relationships/commit","related":"/api/v1/builds/22/commit"},"data":{"type":"commits","id":"2"}},"repo":{"links":{"self":"/api/v1/builds/22/relationships/repo","related":"/api/v1/builds/22/repo"}},"base-build":{"links":{"self":"/api/v1/builds/22/relationships/base-build","related":"/api/v1/builds/22/base-build"}},"approved-by":{"links":{"self":"/api/v1/builds/22/relationships/approved-by","related":"/api/v1/builds/22/approved-by"}},"snapshots":{"links":{"self":"/api/v1/builds/22/relationships/snapshots","related":"/api/v1/builds/22/snapshots"}},"comparisons":{"links":{"self":"/api/v1/builds/22/relationships/comparisons","related":"/api/v1/builds/22/comparisons"}},"missing-resources":{"links":{"self":"/api/v1/builds/22/relationships/missing-resources","related":"/api/v1/builds/22/missing-resources"}}},"meta":{"finalize-link":"/api/v1/builds/22/finalize","approve-link":"/api/v1/builds/22/approve"}}]}'
61
61
  http_version:
62
- recorded_at: Wed, 10 Jun 2015 05:47:49 GMT
62
+ recorded_at: Thu, 11 Jun 2015 00:20:37 GMT
63
63
  - request:
64
64
  method: post
65
- uri: http://localhost:3000/api/v1/builds/31425/snapshots/
65
+ uri: http://localhost:3000/api/v1/builds/27/snapshots/
66
66
  body:
67
67
  encoding: UTF-8
68
68
  string: '{"data":{"type":"snapshots","attributes":{"name":null},"relationships":{"resources":{"data":[]}}}}'
@@ -72,7 +72,7 @@ http_interactions:
72
72
  Accept:
73
73
  - "*/*"
74
74
  Date:
75
- - Wed, 10 Jun 2015 05:47:49 GMT
75
+ - Thu, 11 Jun 2015 00:20:37 GMT
76
76
  Content-Type:
77
77
  - application/vnd.api+json
78
78
  Authorization:
@@ -83,7 +83,7 @@ http_interactions:
83
83
  message: Bad Request
84
84
  headers:
85
85
  Date:
86
- - Wed, 10 Jun 2015 05:47:49 GMT
86
+ - Thu, 11 Jun 2015 00:20:37 GMT
87
87
  Status:
88
88
  - 400 Bad Request
89
89
  Connection:
@@ -107,9 +107,9 @@ http_interactions:
107
107
  Content-Type:
108
108
  - application/json; charset=utf-8
109
109
  X-Request-Id:
110
- - 944a3cee-8161-47fc-b4f9-a0531a571334
110
+ - 9d073ca2-3028-40e0-b8f6-0637e20470c8
111
111
  X-Runtime:
112
- - '0.018033'
112
+ - '0.014258'
113
113
  Transfer-Encoding:
114
114
  - chunked
115
115
  body:
@@ -118,5 +118,5 @@ http_interactions:
118
118
  ''is-root'': true must be present in the ''resources'' array. Found 0 root
119
119
  resources in 0 total resources."}]}'
120
120
  http_version:
121
- recorded_at: Wed, 10 Jun 2015 05:47:49 GMT
121
+ recorded_at: Thu, 11 Jun 2015 00:20:37 GMT
122
122
  recorded_with: VCR 2.9.3
@@ -0,0 +1,177 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://localhost:3000/api/v1/repos/fotinakis/percy-examples/builds/
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"data":{"type":"builds","attributes":{"commit-sha":"fc4d2c2e6b55d995a005dba2d071e2f2fca5e04b","commit-branch":"master","commit-committed-at":"2015-06-09
9
+ 23:22:31 -0700","commit-author-name":"<COMMIT_AUTHOR_NAME>","commit-author-email":"<COMMIT_AUTHOR_EMAIL>","commit-committer-name":"<COMMIT_AUTHOR_NAME>","commit-committer-email":"<COMMIT_AUTHOR_EMAIL>","commit-message":"Fix
10
+ test environment issue.","pull-request-number":null}}}'
11
+ headers:
12
+ User-Agent:
13
+ - Faraday v0.9.1
14
+ Accept:
15
+ - "*/*"
16
+ Date:
17
+ - Thu, 11 Jun 2015 00:20:37 GMT
18
+ Content-Type:
19
+ - application/vnd.api+json
20
+ Authorization:
21
+ - Token token="<FILTERED_PERCY_TOKEN>"
22
+ response:
23
+ status:
24
+ code: 201
25
+ message: Created
26
+ headers:
27
+ Date:
28
+ - Thu, 11 Jun 2015 00:20:37 GMT
29
+ Status:
30
+ - 201 Created
31
+ Connection:
32
+ - close
33
+ X-Frame-Options:
34
+ - SAMEORIGIN
35
+ X-Xss-Protection:
36
+ - 1; mode=block
37
+ X-Content-Type-Options:
38
+ - nosniff
39
+ Access-Control-Allow-Origin:
40
+ - "*"
41
+ Access-Control-Allow-Methods:
42
+ - GET, POST, PUT, PATCH, DELETE, OPTIONS
43
+ Access-Control-Allow-Headers:
44
+ - Authorization, Content-Type
45
+ Cache-Control:
46
+ - no-cache, no-store, max-age=0, must-revalidate
47
+ Expires:
48
+ - Thu, 01 Jan 1970 00:00:00 GMT
49
+ Content-Type:
50
+ - application/json; charset=utf-8
51
+ X-Request-Id:
52
+ - 6bba4cc8-573d-48e1-b1be-5633b1bb7ac1
53
+ X-Runtime:
54
+ - '0.027920'
55
+ Transfer-Encoding:
56
+ - chunked
57
+ body:
58
+ encoding: UTF-8
59
+ string: '{"data":{"id":"26","type":"builds","attributes":{"build-number":26,"state":"pending","is-pull-request":false,"pull-request-number":0,"pull-request-title":null,"approved-at":null,"created-at":"2015-06-11T00:20:37.546Z","updated-at":"2015-06-11T00:20:37.546Z"},"links":{"self":"/api/v1/builds/26"},"relationships":{"commit":{"links":{"self":"/api/v1/builds/26/relationships/commit","related":"/api/v1/builds/26/commit"},"data":{"type":"commits","id":"2"}},"repo":{"links":{"self":"/api/v1/builds/26/relationships/repo","related":"/api/v1/builds/26/repo"}},"base-build":{"links":{"self":"/api/v1/builds/26/relationships/base-build","related":"/api/v1/builds/26/base-build"},"data":{"type":"builds","id":"22"}},"approved-by":{"links":{"self":"/api/v1/builds/26/relationships/approved-by","related":"/api/v1/builds/26/approved-by"}},"snapshots":{"links":{"self":"/api/v1/builds/26/relationships/snapshots","related":"/api/v1/builds/26/snapshots"}},"comparisons":{"links":{"self":"/api/v1/builds/26/relationships/comparisons","related":"/api/v1/builds/26/comparisons"}},"missing-resources":{"links":{"self":"/api/v1/builds/26/relationships/missing-resources","related":"/api/v1/builds/26/missing-resources"}}},"meta":{"finalize-link":"/api/v1/builds/26/finalize","approve-link":"/api/v1/builds/26/approve"}},"included":[{"id":"2","type":"commits","attributes":{"sha":"fc4d2c2e6b55d995a005dba2d071e2f2fca5e04b","branch":"master","message":"Fix
60
+ test environment issue.","committed-at":"2015-06-09 23:22:31 -0700","author-name":"<COMMIT_AUTHOR_NAME>","committer-name":"<COMMIT_AUTHOR_NAME>","created-at":"2015-06-11T00:15:24.000Z","updated-at":"2015-06-11T00:15:24.000Z"},"links":{"self":"/api/v1/commits/2"}},{"id":"22","type":"builds","attributes":{"build-number":22,"state":"finished","is-pull-request":false,"pull-request-number":0,"pull-request-title":null,"approved-at":null,"created-at":"2015-06-11T00:17:46.000Z","updated-at":"2015-06-11T00:17:46.000Z"},"links":{"self":"/api/v1/builds/22"},"relationships":{"commit":{"links":{"self":"/api/v1/builds/22/relationships/commit","related":"/api/v1/builds/22/commit"},"data":{"type":"commits","id":"2"}},"repo":{"links":{"self":"/api/v1/builds/22/relationships/repo","related":"/api/v1/builds/22/repo"}},"base-build":{"links":{"self":"/api/v1/builds/22/relationships/base-build","related":"/api/v1/builds/22/base-build"}},"approved-by":{"links":{"self":"/api/v1/builds/22/relationships/approved-by","related":"/api/v1/builds/22/approved-by"}},"snapshots":{"links":{"self":"/api/v1/builds/22/relationships/snapshots","related":"/api/v1/builds/22/snapshots"}},"comparisons":{"links":{"self":"/api/v1/builds/22/relationships/comparisons","related":"/api/v1/builds/22/comparisons"}},"missing-resources":{"links":{"self":"/api/v1/builds/22/relationships/missing-resources","related":"/api/v1/builds/22/missing-resources"}}},"meta":{"finalize-link":"/api/v1/builds/22/finalize","approve-link":"/api/v1/builds/22/approve"}}]}'
61
+ http_version:
62
+ recorded_at: Thu, 11 Jun 2015 00:20:37 GMT
63
+ - request:
64
+ method: post
65
+ uri: http://localhost:3000/api/v1/builds/26/snapshots/
66
+ body:
67
+ encoding: UTF-8
68
+ string: '{"data":{"type":"snapshots","attributes":{"name":"homepage"},"relationships":{"resources":{"data":[{"type":"resources","id":"8d68af40ce7ee4591a7df49d1a40db8bf0b6535a37c896eda504f963c622535a","attributes":{"resource-url":"/foo/test.html","mimetype":null,"is-root":true}},{"type":"resources","id":"8d68af40ce7ee4591a7df49d1a40db8bf0b6535a37c896eda504f963c622535a","attributes":{"resource-url":"/css/test.css","mimetype":null,"is-root":null}}]}}}}'
69
+ headers:
70
+ User-Agent:
71
+ - Faraday v0.9.1
72
+ Accept:
73
+ - "*/*"
74
+ Date:
75
+ - Thu, 11 Jun 2015 00:20:37 GMT
76
+ Content-Type:
77
+ - application/vnd.api+json
78
+ Authorization:
79
+ - Token token="<FILTERED_PERCY_TOKEN>"
80
+ response:
81
+ status:
82
+ code: 201
83
+ message: Created
84
+ headers:
85
+ Date:
86
+ - Thu, 11 Jun 2015 00:20:37 GMT
87
+ Status:
88
+ - 201 Created
89
+ Connection:
90
+ - close
91
+ X-Frame-Options:
92
+ - SAMEORIGIN
93
+ X-Xss-Protection:
94
+ - 1; mode=block
95
+ X-Content-Type-Options:
96
+ - nosniff
97
+ Access-Control-Allow-Origin:
98
+ - "*"
99
+ Access-Control-Allow-Methods:
100
+ - GET, POST, PUT, PATCH, DELETE, OPTIONS
101
+ Access-Control-Allow-Headers:
102
+ - Authorization, Content-Type
103
+ Cache-Control:
104
+ - no-cache, no-store, max-age=0, must-revalidate
105
+ Expires:
106
+ - Thu, 01 Jan 1970 00:00:00 GMT
107
+ Content-Type:
108
+ - application/json; charset=utf-8
109
+ X-Request-Id:
110
+ - c26224dd-5fd3-4d43-b7fa-0749f5a5f57e
111
+ X-Runtime:
112
+ - '0.041955'
113
+ Transfer-Encoding:
114
+ - chunked
115
+ body:
116
+ encoding: UTF-8
117
+ string: '{"data":{"id":"1109","type":"snapshots","attributes":{"name":"homepage","created-at":"2015-06-11T00:20:37.582Z","updated-at":"2015-06-11T00:20:37.582Z","finished-processing-at":null},"links":{"self":"/api/v1/snapshots/1109"},"relationships":{"build":{"links":{"self":"/api/v1/snapshots/1109/relationships/build","related":"/api/v1/snapshots/1109/build"}},"screenshots":{"links":{"self":"/api/v1/snapshots/1109/relationships/screenshots","related":"/api/v1/snapshots/1109/screenshots"}},"missing-resources":{"links":{"self":"/api/v1/snapshots/1109/relationships/missing-resources","related":"/api/v1/snapshots/1109/missing-resources"},"data":[{"type":"resources","id":"8d68af40ce7ee4591a7df49d1a40db8bf0b6535a37c896eda504f963c622535a"}]}}},"included":[{"id":"8d68af40ce7ee4591a7df49d1a40db8bf0b6535a37c896eda504f963c622535a","type":"resources","attributes":{},"links":{"self":"/api/v1/resources/8d68af40ce7ee4591a7df49d1a40db8bf0b6535a37c896eda504f963c622535a"}}]}'
118
+ http_version:
119
+ recorded_at: Thu, 11 Jun 2015 00:20:37 GMT
120
+ - request:
121
+ method: post
122
+ uri: http://localhost:3000/api/v1/snapshots/1109/finalize
123
+ body:
124
+ encoding: UTF-8
125
+ string: "{}"
126
+ headers:
127
+ User-Agent:
128
+ - Faraday v0.9.1
129
+ Accept:
130
+ - "*/*"
131
+ Date:
132
+ - Thu, 11 Jun 2015 00:20:37 GMT
133
+ Content-Type:
134
+ - application/vnd.api+json
135
+ Authorization:
136
+ - Token token="<FILTERED_PERCY_TOKEN>"
137
+ response:
138
+ status:
139
+ code: 200
140
+ message: OK
141
+ headers:
142
+ Date:
143
+ - Thu, 11 Jun 2015 00:20:37 GMT
144
+ Status:
145
+ - 200 OK
146
+ Connection:
147
+ - close
148
+ X-Frame-Options:
149
+ - SAMEORIGIN
150
+ X-Xss-Protection:
151
+ - 1; mode=block
152
+ X-Content-Type-Options:
153
+ - nosniff
154
+ Access-Control-Allow-Origin:
155
+ - "*"
156
+ Access-Control-Allow-Methods:
157
+ - GET, POST, PUT, PATCH, DELETE, OPTIONS
158
+ Access-Control-Allow-Headers:
159
+ - Authorization, Content-Type
160
+ Cache-Control:
161
+ - no-cache, no-store, max-age=0, must-revalidate
162
+ Expires:
163
+ - Thu, 01 Jan 1970 00:00:00 GMT
164
+ Content-Type:
165
+ - application/json; charset=utf-8
166
+ X-Request-Id:
167
+ - bcccbfcc-0675-441e-8097-30bc50b55038
168
+ X-Runtime:
169
+ - '0.030553'
170
+ Transfer-Encoding:
171
+ - chunked
172
+ body:
173
+ encoding: UTF-8
174
+ string: '{"success":true}'
175
+ http_version:
176
+ recorded_at: Thu, 11 Jun 2015 00:20:37 GMT
177
+ recorded_with: VCR 2.9.3
@@ -1,5 +1,5 @@
1
1
  RSpec.describe Percy::Client::Builds, :vcr do
2
- let(:content) { "hello world! #{__FILE__}" }
2
+ let(:content) { "hello world! #{described_class.name}" }
3
3
  let(:sha) { Digest::SHA256.hexdigest(content) }
4
4
 
5
5
  describe '#create_build' do
@@ -31,7 +31,7 @@ RSpec.describe Percy::Client::Builds, :vcr do
31
31
  expect(build['data']['attributes']['pull-request-number']).to eq(123)
32
32
  expect(build['data']['relationships']['missing-resources']).to be
33
33
  expect(build['data']['relationships']['missing-resources']['data']).to be
34
- expect(build['data']['relationships']['missing-resources']['data'][0]['id']).to eq(sha)
34
+ expect(build['data']['relationships']['missing-resources']['data'].length).to eq(1)
35
35
  end
36
36
  end
37
37
  describe '#finalize_build' do
@@ -1,7 +1,7 @@
1
1
  require 'digest'
2
2
 
3
3
  RSpec.describe Percy::Client::Resources, :vcr do
4
- let(:content) { "hello world! #{__FILE__}" }
4
+ let(:content) { "hello world! #{described_class.name}" }
5
5
  let(:sha) { Digest::SHA256.hexdigest(content) }
6
6
 
7
7
  describe 'Percy::Client::Resource' do
@@ -1,9 +1,9 @@
1
1
  RSpec.describe Percy::Client::Snapshots, :vcr do
2
- let(:content) { "hello world! #{__FILE__}" }
2
+ let(:content) { "hello world! #{described_class.name}" }
3
3
  let(:sha) { Digest::SHA256.hexdigest(content) }
4
4
 
5
5
  describe '#create_snapshot' do
6
- it 'creates a build' do
6
+ it 'creates a snapshot' do
7
7
  build = Percy.create_build('fotinakis/percy-examples')
8
8
  resources = []
9
9
  resources << Percy::Client::Resource.new('/foo/test.html', sha: sha, is_root: true)
@@ -23,4 +23,16 @@ RSpec.describe Percy::Client::Snapshots, :vcr do
23
23
  end.to raise_error(Percy::Client::ClientError)
24
24
  end
25
25
  end
26
+ describe '#finalize_snapshot' do
27
+ it 'finalizes a snapshot' do
28
+ build = Percy.create_build('fotinakis/percy-examples')
29
+ resources = []
30
+ resources << Percy::Client::Resource.new('/foo/test.html', sha: sha, is_root: true)
31
+ resources << Percy::Client::Resource.new('/css/test.css', sha: sha)
32
+ snapshot = Percy.create_snapshot(build['data']['id'], resources, name: 'homepage')
33
+
34
+ result = Percy.finalize_snapshot(snapshot['data']['id'])
35
+ expect(result).to eq({'success' => true})
36
+ end
37
+ end
26
38
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: percy-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Perceptual Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-10 00:00:00.000000000 Z
11
+ date: 2015-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -137,8 +137,9 @@ files:
137
137
  - spec/cassettes/Percy_Client_Builds/_create_build/creates_a_build.yml
138
138
  - spec/cassettes/Percy_Client_Builds/_finalize_build/finalizes_a_build.yml
139
139
  - spec/cassettes/Percy_Client_Resources/_upload_resource/returns_true_with_success.yml
140
- - spec/cassettes/Percy_Client_Snapshots/_create_snapshot/creates_a_build.yml
140
+ - spec/cassettes/Percy_Client_Snapshots/_create_snapshot/creates_a_snapshot.yml
141
141
  - spec/cassettes/Percy_Client_Snapshots/_create_snapshot/fails_if_no_resources_are_given.yml
142
+ - spec/cassettes/Percy_Client_Snapshots/_finalize_snapshot/finalizes_a_snapshot.yml
142
143
  - spec/lib/percy/client/builds_spec.rb
143
144
  - spec/lib/percy/client/connection_spec.rb
144
145
  - spec/lib/percy/client/environment_spec.rb
@@ -177,8 +178,9 @@ test_files:
177
178
  - spec/cassettes/Percy_Client_Builds/_create_build/creates_a_build.yml
178
179
  - spec/cassettes/Percy_Client_Builds/_finalize_build/finalizes_a_build.yml
179
180
  - spec/cassettes/Percy_Client_Resources/_upload_resource/returns_true_with_success.yml
180
- - spec/cassettes/Percy_Client_Snapshots/_create_snapshot/creates_a_build.yml
181
+ - spec/cassettes/Percy_Client_Snapshots/_create_snapshot/creates_a_snapshot.yml
181
182
  - spec/cassettes/Percy_Client_Snapshots/_create_snapshot/fails_if_no_resources_are_given.yml
183
+ - spec/cassettes/Percy_Client_Snapshots/_finalize_snapshot/finalizes_a_snapshot.yml
182
184
  - spec/lib/percy/client/builds_spec.rb
183
185
  - spec/lib/percy/client/connection_spec.rb
184
186
  - spec/lib/percy/client/environment_spec.rb
@@ -1,120 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: http://localhost:3000/api/v1/repos/fotinakis/percy-examples/builds/
6
- body:
7
- encoding: UTF-8
8
- string: '{"data":{"type":"builds","attributes":{"commit-sha":"65478abc7f79b22365c261076cb44478714c4751","commit-branch":"master","commit-committed-at":"2015-06-08
9
- 16:33:11 -0700","commit-author-name":"<COMMIT_AUTHOR_NAME>","commit-author-email":"<COMMIT_AUTHOR_EMAIL>","commit-committer-name":"<COMMIT_AUTHOR_NAME>","commit-committer-email":"<COMMIT_AUTHOR_EMAIL>","commit-message":"Bump
10
- client version.","pull-request-number":null}}}'
11
- headers:
12
- User-Agent:
13
- - Faraday v0.9.1
14
- Accept:
15
- - "*/*"
16
- Date:
17
- - Wed, 10 Jun 2015 05:47:49 GMT
18
- Content-Type:
19
- - application/vnd.api+json
20
- Authorization:
21
- - Token token="<FILTERED_PERCY_TOKEN>"
22
- response:
23
- status:
24
- code: 201
25
- message: Created
26
- headers:
27
- Date:
28
- - Wed, 10 Jun 2015 05:47:49 GMT
29
- Status:
30
- - 201 Created
31
- Connection:
32
- - close
33
- X-Frame-Options:
34
- - SAMEORIGIN
35
- X-Xss-Protection:
36
- - 1; mode=block
37
- X-Content-Type-Options:
38
- - nosniff
39
- Access-Control-Allow-Origin:
40
- - "*"
41
- Access-Control-Allow-Methods:
42
- - GET, POST, PUT, PATCH, DELETE, OPTIONS
43
- Access-Control-Allow-Headers:
44
- - Authorization, Content-Type
45
- Cache-Control:
46
- - no-cache, no-store, max-age=0, must-revalidate
47
- Expires:
48
- - Thu, 01 Jan 1970 00:00:00 GMT
49
- Content-Type:
50
- - application/json; charset=utf-8
51
- X-Request-Id:
52
- - 7a83a40c-d415-4f48-94b2-b80739fe28cc
53
- X-Runtime:
54
- - '0.026521'
55
- Transfer-Encoding:
56
- - chunked
57
- body:
58
- encoding: UTF-8
59
- string: '{"data":{"id":"31426","type":"builds","attributes":{"build-number":6,"state":"pending","is-pull-request":false,"pull-request-number":0,"pull-request-title":null,"approved-at":null,"created-at":"2015-06-10T05:47:49.890Z","updated-at":"2015-06-10T05:47:49.890Z"},"links":{"self":"/api/v1/builds/31426"},"relationships":{"commit":{"links":{"self":"/api/v1/builds/31426/relationships/commit","related":"/api/v1/builds/31426/commit"},"data":{"type":"commits","id":"2"}},"repo":{"links":{"self":"/api/v1/builds/31426/relationships/repo","related":"/api/v1/builds/31426/repo"}},"base-build":{"links":{"self":"/api/v1/builds/31426/relationships/base-build","related":"/api/v1/builds/31426/base-build"},"data":{"type":"builds","id":"31421"}},"approved-by":{"links":{"self":"/api/v1/builds/31426/relationships/approved-by","related":"/api/v1/builds/31426/approved-by"}},"snapshots":{"links":{"self":"/api/v1/builds/31426/relationships/snapshots","related":"/api/v1/builds/31426/snapshots"}},"comparisons":{"links":{"self":"/api/v1/builds/31426/relationships/comparisons","related":"/api/v1/builds/31426/comparisons"}},"missing-resources":{"links":{"self":"/api/v1/builds/31426/relationships/missing-resources","related":"/api/v1/builds/31426/missing-resources"}}},"meta":{"finalize-link":"/api/v1/builds/31426/finalize","approve-link":"/api/v1/builds/31426/approve"}},"included":[{"id":"2","type":"commits","attributes":{"sha":"65478abc7f79b22365c261076cb44478714c4751","branch":"master","message":"Bump
60
- client version.","committed-at":"2015-06-08 16:33:11 -0700","author-name":"<COMMIT_AUTHOR_NAME>","committer-name":"<COMMIT_AUTHOR_NAME>","created-at":"2015-06-10T05:47:46.000Z","updated-at":"2015-06-10T05:47:46.000Z"},"links":{"self":"/api/v1/commits/2"}},{"id":"31421","type":"builds","attributes":{"build-number":1,"state":"finished","is-pull-request":false,"pull-request-number":0,"pull-request-title":null,"approved-at":null,"created-at":"2015-06-10T05:47:46.000Z","updated-at":"2015-06-10T05:47:47.000Z"},"links":{"self":"/api/v1/builds/31421"},"relationships":{"commit":{"links":{"self":"/api/v1/builds/31421/relationships/commit","related":"/api/v1/builds/31421/commit"},"data":{"type":"commits","id":"2"}},"repo":{"links":{"self":"/api/v1/builds/31421/relationships/repo","related":"/api/v1/builds/31421/repo"}},"base-build":{"links":{"self":"/api/v1/builds/31421/relationships/base-build","related":"/api/v1/builds/31421/base-build"}},"approved-by":{"links":{"self":"/api/v1/builds/31421/relationships/approved-by","related":"/api/v1/builds/31421/approved-by"}},"snapshots":{"links":{"self":"/api/v1/builds/31421/relationships/snapshots","related":"/api/v1/builds/31421/snapshots"}},"comparisons":{"links":{"self":"/api/v1/builds/31421/relationships/comparisons","related":"/api/v1/builds/31421/comparisons"}},"missing-resources":{"links":{"self":"/api/v1/builds/31421/relationships/missing-resources","related":"/api/v1/builds/31421/missing-resources"}}},"meta":{"finalize-link":"/api/v1/builds/31421/finalize","approve-link":"/api/v1/builds/31421/approve"}}]}'
61
- http_version:
62
- recorded_at: Wed, 10 Jun 2015 05:47:49 GMT
63
- - request:
64
- method: post
65
- uri: http://localhost:3000/api/v1/builds/31426/snapshots/
66
- body:
67
- encoding: UTF-8
68
- string: '{"data":{"type":"snapshots","attributes":{"name":"homepage"},"relationships":{"resources":{"data":[{"type":"resources","id":"e922f734dac13edaf56118975da188eb5d5fbd6ddb8b5ec4541df371976110b5","attributes":{"resource-url":"/foo/test.html","mimetype":null,"is-root":true}},{"type":"resources","id":"e922f734dac13edaf56118975da188eb5d5fbd6ddb8b5ec4541df371976110b5","attributes":{"resource-url":"/css/test.css","mimetype":null,"is-root":null}}]}}}}'
69
- headers:
70
- User-Agent:
71
- - Faraday v0.9.1
72
- Accept:
73
- - "*/*"
74
- Date:
75
- - Wed, 10 Jun 2015 05:47:49 GMT
76
- Content-Type:
77
- - application/vnd.api+json
78
- Authorization:
79
- - Token token="<FILTERED_PERCY_TOKEN>"
80
- response:
81
- status:
82
- code: 201
83
- message: Created
84
- headers:
85
- Date:
86
- - Wed, 10 Jun 2015 05:47:49 GMT
87
- Status:
88
- - 201 Created
89
- Connection:
90
- - close
91
- X-Frame-Options:
92
- - SAMEORIGIN
93
- X-Xss-Protection:
94
- - 1; mode=block
95
- X-Content-Type-Options:
96
- - nosniff
97
- Access-Control-Allow-Origin:
98
- - "*"
99
- Access-Control-Allow-Methods:
100
- - GET, POST, PUT, PATCH, DELETE, OPTIONS
101
- Access-Control-Allow-Headers:
102
- - Authorization, Content-Type
103
- Cache-Control:
104
- - no-cache, no-store, max-age=0, must-revalidate
105
- Expires:
106
- - Thu, 01 Jan 1970 00:00:00 GMT
107
- Content-Type:
108
- - application/json; charset=utf-8
109
- X-Request-Id:
110
- - 27556a42-dc02-4de7-a939-e77ffe14153c
111
- X-Runtime:
112
- - '0.041105'
113
- Transfer-Encoding:
114
- - chunked
115
- body:
116
- encoding: UTF-8
117
- string: '{"data":{"id":"4","type":"snapshots","attributes":{"name":"homepage","created-at":"2015-06-10T05:47:49.926Z","updated-at":"2015-06-10T05:47:49.926Z","finished-processing-at":null},"links":{"self":"/api/v1/snapshots/4"},"relationships":{"build":{"links":{"self":"/api/v1/snapshots/4/relationships/build","related":"/api/v1/snapshots/4/build"}},"screenshots":{"links":{"self":"/api/v1/snapshots/4/relationships/screenshots","related":"/api/v1/snapshots/4/screenshots"}},"missing-resources":{"links":{"self":"/api/v1/snapshots/4/relationships/missing-resources","related":"/api/v1/snapshots/4/missing-resources"},"data":[{"type":"resources","id":"e922f734dac13edaf56118975da188eb5d5fbd6ddb8b5ec4541df371976110b5"}]}}},"included":[{"id":"e922f734dac13edaf56118975da188eb5d5fbd6ddb8b5ec4541df371976110b5","type":"resources","attributes":{},"links":{"self":"/api/v1/resources/e922f734dac13edaf56118975da188eb5d5fbd6ddb8b5ec4541df371976110b5"}}]}'
118
- http_version:
119
- recorded_at: Wed, 10 Jun 2015 05:47:49 GMT
120
- recorded_with: VCR 2.9.3