spec/fixtures/coal_cassettes/sites.yml in locomotivecms_coal-1.0.0.pre.alpha.1 vs spec/fixtures/coal_cassettes/sites.yml in locomotivecms_coal-1.0.0.pre.alpha.2
- old
+ new
@@ -1,204 +1,180 @@
---
http_interactions:
- request:
method: post
- uri: http://sample.lvh.me:4000/locomotive/api/tokens.json
+ uri: http://localhost:3000/locomotive/api/v3/tokens.json
body:
- encoding: US-ASCII
- string: email=john%40doe.net&password=easyone
+ encoding: UTF-8
+ string: email=admin%40locomotivecms.com&password=locomotive
headers:
Accept:
- application/json
- Accept-Encoding:
- - gzip
- User-Agent:
- - unirest-ruby/1.1
- Content-Length:
- - '37'
Content-Type:
- application/x-www-form-urlencoded
+ Accept-Encoding:
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
+ User-Agent:
+ - Ruby
response:
status:
- code: 200
- message: OK
+ code: 201
+ message: Created
headers:
- Date:
- - Thu, 26 Mar 2015 12:13:39 GMT
- Status:
- - 200 OK
- Connection:
- - close
- Location:
- - http://sample.lvh.me:4000/locomotive/
Content-Type:
- - application/json; charset=utf-8
- X-Ua-Compatible:
- - IE=Edge
+ - application/json
+ Content-Length:
+ - '32'
Etag:
- - '"557f8d72cf11ab5399621eddec942c29"'
+ - W/"6ba0e226b40adfde2d656d9027a1335f"
Cache-Control:
- max-age=0, private, must-revalidate
- Set-Cookie:
- - _locomotive_session=VquoZyFjWuRKNtfa4Qz8Ow1atCk; domain=.sample.lvh.me; path=/;
- HttpOnly
X-Request-Id:
- - adbf7f3b2ff1d55b0ab474625d878ddc
+ - 55fa53e7-0e78-4353-ba72-cde1ccc36bff
X-Runtime:
- - '0.030411'
+ - '0.039202'
+ Connection:
+ - keep-alive
+ Server:
+ - thin
body:
encoding: UTF-8
- string: '{"token":"9GLRWwc2MGTCF7SHiZSg"}'
+ string: '{"token":"Z9s7W_-BXyGQsDPFsorr"}'
http_version:
- recorded_at: Thu, 26 Mar 2015 12:13:39 GMT
+ recorded_at: Mon, 04 May 2015 13:51:28 GMT
- request:
method: get
- uri: http://sample.lvh.me:4000/locomotive/api/sites.json?auth_token=9GLRWwc2MGTCF7SHiZSg
+ uri: http://localhost:3000/locomotive/api/v3/sites.json
body:
- encoding: US-ASCII
- string: ''
+ encoding: UTF-8
+ string: auth_token=Z9s7W_-BXyGQsDPFsorr
headers:
Accept:
- application/json
+ X-Locomotive-Account-Email:
+ - admin@locomotivecms.com
+ X-Locomotive-Account-Token:
+ - Z9s7W_-BXyGQsDPFsorr
+ Content-Type:
+ - application/x-www-form-urlencoded
Accept-Encoding:
- - gzip
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
User-Agent:
- - unirest-ruby/1.1
+ - Ruby
response:
status:
code: 200
message: OK
headers:
- Date:
- - Thu, 26 Mar 2015 12:13:39 GMT
- Status:
- - 200 OK
- Connection:
- - close
Content-Type:
- - application/json; charset=utf-8
- X-Ua-Compatible:
- - IE=Edge
+ - application/json
+ Content-Length:
+ - '1021'
Etag:
- - '"81f71ce948be7560bc720c4e05d4c8d8"'
+ - W/"7447d8e7cdca76d1abcbb9df74b1cab8"
Cache-Control:
- max-age=0, private, must-revalidate
- Set-Cookie:
- - _locomotive_session=E_E0wjZoHg6guMeaGEFc_IYQ0Q8; domain=.sample.lvh.me; path=/;
- HttpOnly
X-Request-Id:
- - e972f9729360fa3c30e593df4b3daca0
+ - 0798d382-b16c-42c0-a00d-d4116b953af6
X-Runtime:
- - '0.052358'
+ - '0.037419'
+ Connection:
+ - keep-alive
+ Server:
+ - thin
body:
encoding: UTF-8
- string: '[{"id":"54eb49c12475804b2b000002","_id":"54eb49c12475804b2b000002","created_at":"2015-02-23T15:39:45Z","updated_at":"2015-02-23T15:46:46Z","name":"Sample
- website","locales":["en","fr","nb"],"timezone":"UTC","subdomain":"sample","domains":["example.org","sample.example.com","sample.lvh.me"],"domains_without_subdomain":["example.org","sample.example.com"],"domain_name":"lvh.me","memberships":[{"id":"54eb49c12475804b2b000003","_id":"54eb49c12475804b2b000003","role":"admin","role_name":"Administrator","can_update":false,"grant_admin":true,"account_id":"54eb49b22475804b2b000001","name":"John","email":"john@doe.net"}],"seo_title":"A
- simple LocomotiveCMS website","meta_keywords":"some meta keywords","meta_description":"some
- meta description"}]'
+ string: '[{"_id":"554779596469644d44010000","created_at":"2015-05-04T13:51:21Z","updated_at":"2015-05-04T13:51:21Z","name":"LocomotiveCMS","handle":"www","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"locales":["en"],"domains":["www.example.com"],"memberships":[{"_id":"554779596469644d44040000","created_at":null,"updated_at":null,"role":"admin","account_id":"554779596469644d44000000","name":"Admin","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC"},{"_id":"554779596469644d44050000","created_at":"2015-05-04T13:51:21Z","updated_at":"2015-05-04T13:51:21Z","name":"Sample
+ site","handle":"sample","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"locales":["en"],"domains":["sample.example.com"],"memberships":[{"_id":"554779596469644d44080000","created_at":null,"updated_at":null,"role":"admin","account_id":"554779596469644d44000000","name":"Admin","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC"}]'
http_version:
- recorded_at: Thu, 26 Mar 2015 12:13:39 GMT
+ recorded_at: Mon, 04 May 2015 13:51:28 GMT
- request:
method: post
- uri: http://sample.lvh.me:4000/locomotive/api/sites.json
+ uri: http://localhost:3000/locomotive/api/v3/sites.json
body:
- encoding: US-ASCII
- string: site[name]=Acme&site[subdomain]=acme&site[locales][]=en&auth_token=9GLRWwc2MGTCF7SHiZSg
+ encoding: UTF-8
+ string: auth_token=Z9s7W_-BXyGQsDPFsorr&site%5Bhandle%5D=acme&site%5Blocales%5D%5B%5D=en&site%5Bname%5D=Acme
headers:
Accept:
- application/json
- Accept-Encoding:
- - gzip
- User-Agent:
- - unirest-ruby/1.1
- Content-Length:
- - '87'
+ X-Locomotive-Account-Email:
+ - admin@locomotivecms.com
+ X-Locomotive-Account-Token:
+ - Z9s7W_-BXyGQsDPFsorr
Content-Type:
- application/x-www-form-urlencoded
+ Accept-Encoding:
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
+ User-Agent:
+ - Ruby
response:
status:
- code: 200
- message: OK
+ code: 201
+ message: Created
headers:
- Date:
- - Thu, 26 Mar 2015 12:13:39 GMT
- Status:
- - 200 OK
- Connection:
- - close
- Location:
- - http://sample.lvh.me:4000/locomotive/sites/5513f7f3c36511aa6a000001
Content-Type:
- - application/json; charset=utf-8
- X-Ua-Compatible:
- - IE=Edge
+ - application/json
+ Content-Length:
+ - '482'
Etag:
- - '"586b513cca532ff623cbcba87ab3f8ef"'
+ - W/"9ab618d5bc9a66e66ff55a4198096ffc"
Cache-Control:
- max-age=0, private, must-revalidate
- Set-Cookie:
- - _locomotive_session=j7Fc1aPj5ncc_5vthK1b94dOF3M; domain=.sample.lvh.me; path=/;
- HttpOnly
X-Request-Id:
- - 09b96eabaf1c19e21637ad5623b2c751
+ - de7f0ba4-53dc-4f96-98b7-d178e4c601dd
X-Runtime:
- - '0.136287'
+ - '0.081937'
+ Connection:
+ - keep-alive
+ Server:
+ - thin
body:
encoding: UTF-8
- string: '{"id":"5513f7f3c36511aa6a000001","_id":"5513f7f3c36511aa6a000001","created_at":"2015-03-26T12:13:39Z","updated_at":"2015-03-26T12:13:39Z","name":"Acme","locales":["en"],"timezone":"UTC","subdomain":"acme","domains":["acme.lvh.me"],"domains_without_subdomain":[],"domain_name":"lvh.me","memberships":[{"id":"5513f7f3c36511aa6a000002","_id":"5513f7f3c36511aa6a000002","role":"admin","role_name":"Administrator","can_update":false,"grant_admin":true,"account_id":"54eb49b22475804b2b000001","name":"John","email":"john@doe.net"}]}'
+ string: '{"_id":"554779606469643251250300","created_at":"2015-05-04T13:51:28Z","updated_at":"2015-05-04T13:51:28Z","name":"Acme","handle":"acme","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"locales":["en"],"domains":[],"memberships":[{"_id":"554779606469643251260300","created_at":null,"updated_at":null,"role":"admin","account_id":"554779596469644d44000000","name":"Admin","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC"}'
http_version:
- recorded_at: Thu, 26 Mar 2015 12:13:39 GMT
+ recorded_at: Mon, 04 May 2015 13:51:28 GMT
- request:
method: delete
- uri: http://sample.lvh.me:4000/locomotive/api/sites/5513f7f3c36511aa6a000001.json
+ uri: http://localhost:3000/locomotive/api/v3/sites/554779606469643251250300.json
body:
- encoding: US-ASCII
- string: auth_token=9GLRWwc2MGTCF7SHiZSg
+ encoding: UTF-8
+ string: auth_token=Z9s7W_-BXyGQsDPFsorr
headers:
Accept:
- application/json
- Accept-Encoding:
- - gzip
- User-Agent:
- - unirest-ruby/1.1
- Content-Length:
- - '31'
+ X-Locomotive-Account-Email:
+ - admin@locomotivecms.com
+ X-Locomotive-Account-Token:
+ - Z9s7W_-BXyGQsDPFsorr
Content-Type:
- application/x-www-form-urlencoded
+ Accept-Encoding:
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
+ User-Agent:
+ - Ruby
response:
status:
code: 200
message: OK
headers:
- Date:
- - Thu, 26 Mar 2015 12:13:39 GMT
- Status:
- - 200 OK
- Connection:
- - close
- X-Message:
- - '"Site%20was%20successfully%20destroyed."'
- X-Message-Type:
- - notice
- Location:
- - http://sample.lvh.me:4000/locomotive/sites
Content-Type:
- - application/json; charset=utf-8
- X-Ua-Compatible:
- - IE=Edge
+ - application/json
+ Content-Length:
+ - '482'
Etag:
- - '"27caa7b4e34cff2c964ef6a71e74238e"'
+ - W/"9ab618d5bc9a66e66ff55a4198096ffc"
Cache-Control:
- max-age=0, private, must-revalidate
- Set-Cookie:
- - _locomotive_session=nC_FJh22VAjBWzBkUYv1KxMkBYw; domain=.sample.lvh.me; path=/;
- HttpOnly
X-Request-Id:
- - 02fc4cae8563ecd906e7e1135e4de00f
+ - 101dcbef-6d1f-411e-b3cc-ba34ee6ba351
X-Runtime:
- - '0.126953'
+ - '0.081414'
+ Connection:
+ - keep-alive
+ Server:
+ - thin
body:
encoding: UTF-8
- string: '{"id":null,"_id":null,"created_at":"2015-03-26T12:13:39Z","updated_at":"2015-03-26T12:13:39Z","name":"Acme","locales":["en"],"timezone":"UTC","subdomain":"acme","domains":["acme.lvh.me"],"domains_without_subdomain":[],"domain_name":"lvh.me","memberships":[{"id":"5513f7f3c36511aa6a000002","_id":"5513f7f3c36511aa6a000002","role":"admin","role_name":"Administrator","can_update":false,"grant_admin":true,"account_id":"54eb49b22475804b2b000001","name":"John","email":"john@doe.net"}]}'
+ string: '{"_id":"554779606469643251250300","created_at":"2015-05-04T13:51:28Z","updated_at":"2015-05-04T13:51:28Z","name":"Acme","handle":"acme","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"locales":["en"],"domains":[],"memberships":[{"_id":"554779606469643251260300","created_at":null,"updated_at":null,"role":"admin","account_id":"554779596469644d44000000","name":"Admin","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC"}'
http_version:
- recorded_at: Thu, 26 Mar 2015 12:13:39 GMT
+ recorded_at: Mon, 04 May 2015 13:51:28 GMT
recorded_with: VCR 2.9.3