spec/cassettes/territories.yml in genability-0.2.0 vs spec/cassettes/territories.yml in genability-0.3.0

- old
+ new

@@ -1,55 +1,87 @@ ---- -- !ruby/struct:VCR::HTTPInteraction - request: !ruby/struct:VCR::Request +--- +- !ruby/struct:VCR::HTTPInteraction + request: !ruby/struct:VCR::Request method: :get uri: http://api.genability.com:80/rest/public/territories?appId=ValidAppID&appKey=ValidAppKey&lseId=734 body: - headers: - accept: + headers: + accept: - application/json; charset=utf-8 - user-agent: + user-agent: - Genability API Ruby Gem - accept-encoding: + accept-encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - response: !ruby/struct:VCR::Response - status: !ruby/struct:VCR::ResponseStatus + response: !ruby/struct:VCR::Response + status: !ruby/struct:VCR::ResponseStatus code: 200 message: OK - headers: - server: - - Apache-Coyote/1.1 - content-type: + headers: + access-control-allow-origin: + - ! '*' + content-type: - application/json;charset=utf-8 - transfer-encoding: + date: + - Sat, 05 May 2012 18:43:44 GMT + server: + - Apache/2.2.16 (Ubuntu) + transfer-encoding: - chunked - date: - - Wed, 26 Oct 2011 06:45:02 GMT - body: "{\"status\":\"success\",\"count\":11,\"type\":\"Territory\",\"results\":[{\"territoryId\":807,\"lseId\":734,\"parentTerritoryId\":null,\"territoryName\":\"Service area for CA\",\"usageType\":\"SERVICE\",\"itemTypes\":\"COUNTY\",\"items\":null,\"deregRes\":false,\"deregCandi\":false},{\"territoryId\":3534,\"lseId\":734,\"parentTerritoryId\":807,\"territoryName\":\"Baseline Region P\",\"usageType\":\"TARIFF\",\"itemTypes\":\"ZIPCODE\",\"items\":null,\"deregRes\":false,\"deregCandi\":false},{\"territoryId\":3535,\"lseId\":734,\"parentTerritoryId\":807,\"territoryName\":\"Baseline Region Q\",\"usageType\":\"TARIFF\",\"itemTypes\":\"ZIPCODE\",\"items\":null,\"deregRes\":false,\"deregCandi\":false},{\"territoryId\":3536,\"lseId\":734,\"parentTerritoryId\":807,\"territoryName\":\"Baseline Region R\",\"usageType\":\"TARIFF\",\"itemTypes\":\"ZIPCODE\",\"items\":null,\"deregRes\":false,\"deregCandi\":false},{\"territoryId\":3537,\"lseId\":734,\"parentTerritoryId\":807,\"territoryName\":\"Baseline Region S\",\"usageType\":\"TARIFF\",\"itemTypes\":\"ZIPCODE\",\"items\":null,\"deregRes\":false,\"deregCandi\":false},{\"territoryId\":3538,\"lseId\":734,\"parentTerritoryId\":807,\"territoryName\":\"Baseline Region T\",\"usageType\":\"TARIFF\",\"itemTypes\":\"ZIPCODE\",\"items\":null,\"deregRes\":false,\"deregCandi\":false},{\"territoryId\":3539,\"lseId\":734,\"parentTerritoryId\":807,\"territoryName\":\"Baseline Region V\",\"usageType\":\"TARIFF\",\"itemTypes\":\"ZIPCODE\",\"items\":null,\"deregRes\":false,\"deregCandi\":false},{\"territoryId\":3540,\"lseId\":734,\"parentTerritoryId\":807,\"territoryName\":\"Baseline Region W\",\"usageType\":\"TARIFF\",\"itemTypes\":\"ZIPCODE\",\"items\":null,\"deregRes\":false,\"deregCandi\":false},{\"territoryId\":3541,\"lseId\":734,\"parentTerritoryId\":807,\"territoryName\":\"Baseline Region X\",\"usageType\":\"TARIFF\",\"itemTypes\":\"ZIPCODE\",\"items\":null,\"deregRes\":false,\"deregCandi\":false},{\"territoryId\":3542,\"lseId\":734,\"parentTerritoryId\":807,\"territoryName\":\"Baseline Region Y\",\"usageType\":\"TARIFF\",\"itemTypes\":\"ZIPCODE\",\"items\":null,\"deregRes\":false,\"deregCandi\":false},{\"territoryId\":3543,\"lseId\":734,\"parentTerritoryId\":807,\"territoryName\":\"Baseline Region Z\",\"usageType\":\"TARIFF\",\"itemTypes\":\"ZIPCODE\",\"items\":null,\"deregRes\":false,\"deregCandi\":false}]}" - http_version: "1.1" -- !ruby/struct:VCR::HTTPInteraction - request: !ruby/struct:VCR::Request + connection: + - keep-alive + body: ! '{"status":"success","count":11,"type":"Territory","results":[{"territoryId":807,"lseId":734,"lseName":"Pacific + Gas & Electric Co","parentTerritoryId":null,"territoryName":"Service area for + CA","usageType":"SERVICE","itemTypes":"COUNTY","deregRes":false,"deregCandi":false},{"territoryId":3534,"lseId":734,"lseName":"Pacific + Gas & Electric Co","parentTerritoryId":807,"territoryName":"Baseline Region + P","usageType":"TARIFF","itemTypes":"ZIPCODE","deregRes":false,"deregCandi":false},{"territoryId":3535,"lseId":734,"lseName":"Pacific + Gas & Electric Co","parentTerritoryId":807,"territoryName":"Baseline Region + Q","usageType":"TARIFF","itemTypes":"ZIPCODE","deregRes":false,"deregCandi":false},{"territoryId":3536,"lseId":734,"lseName":"Pacific + Gas & Electric Co","parentTerritoryId":807,"territoryName":"Baseline Region + R","usageType":"TARIFF","itemTypes":"ZIPCODE","deregRes":false,"deregCandi":false},{"territoryId":3537,"lseId":734,"lseName":"Pacific + Gas & Electric Co","parentTerritoryId":807,"territoryName":"Baseline Region + S","usageType":"TARIFF","itemTypes":"ZIPCODE","deregRes":false,"deregCandi":false},{"territoryId":3538,"lseId":734,"lseName":"Pacific + Gas & Electric Co","parentTerritoryId":807,"territoryName":"Baseline Region + T","usageType":"TARIFF","itemTypes":"ZIPCODE","deregRes":false,"deregCandi":false},{"territoryId":3539,"lseId":734,"lseName":"Pacific + Gas & Electric Co","parentTerritoryId":807,"territoryName":"Baseline Region + V","usageType":"TARIFF","itemTypes":"ZIPCODE","deregRes":false,"deregCandi":false},{"territoryId":3540,"lseId":734,"lseName":"Pacific + Gas & Electric Co","parentTerritoryId":807,"territoryName":"Baseline Region + W","usageType":"TARIFF","itemTypes":"ZIPCODE","deregRes":false,"deregCandi":false},{"territoryId":3541,"lseId":734,"lseName":"Pacific + Gas & Electric Co","parentTerritoryId":807,"territoryName":"Baseline Region + X","usageType":"TARIFF","itemTypes":"ZIPCODE","deregRes":false,"deregCandi":false},{"territoryId":3542,"lseId":734,"lseName":"Pacific + Gas & Electric Co","parentTerritoryId":807,"territoryName":"Baseline Region + Y","usageType":"TARIFF","itemTypes":"ZIPCODE","deregRes":false,"deregCandi":false},{"territoryId":3543,"lseId":734,"lseName":"Pacific + Gas & Electric Co","parentTerritoryId":807,"territoryName":"Baseline Region + Z","usageType":"TARIFF","itemTypes":"ZIPCODE","deregRes":false,"deregCandi":false}]}' + http_version: '1.1' +- !ruby/struct:VCR::HTTPInteraction + request: !ruby/struct:VCR::Request method: :get uri: http://api.genability.com:80/rest/public/territories?appId=ValidAppID&appKey=ValidAppKey&containsItemType=ZIPCODE&containsItemValue=94115&lseId=734&masterTariffId=522 body: - headers: - accept: + headers: + accept: - application/json; charset=utf-8 - user-agent: + user-agent: - Genability API Ruby Gem - accept-encoding: + accept-encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - response: !ruby/struct:VCR::Response - status: !ruby/struct:VCR::ResponseStatus + response: !ruby/struct:VCR::Response + status: !ruby/struct:VCR::ResponseStatus code: 200 message: OK - headers: - server: - - Apache-Coyote/1.1 - content-type: + headers: + access-control-allow-origin: + - ! '*' + content-type: - application/json;charset=utf-8 - transfer-encoding: + date: + - Sat, 05 May 2012 18:43:44 GMT + server: + - Apache/2.2.16 (Ubuntu) + transfer-encoding: - chunked - date: - - Wed, 26 Oct 2011 06:45:02 GMT - body: "{\"status\":\"success\",\"count\":1,\"type\":\"Territory\",\"results\":[{\"territoryId\":3538,\"lseId\":734,\"parentTerritoryId\":807,\"territoryName\":\"Baseline Region T\",\"usageType\":\"TARIFF\",\"itemTypes\":\"ZIPCODE\",\"items\":null,\"deregRes\":false,\"deregCandi\":false}]}" - http_version: "1.1" + connection: + - keep-alive + body: ! '{"status":"success","count":1,"type":"Territory","results":[{"territoryId":3538,"lseId":734,"lseName":"Pacific + Gas & Electric Co","parentTerritoryId":807,"territoryName":"Baseline Region + T","usageType":"TARIFF","itemTypes":"ZIPCODE","deregRes":false,"deregCandi":false}]}' + http_version: '1.1'