Skip to content

Instantly share code, notes, and snippets.

@ian-ellis
Created March 23, 2017 01:59
Show Gist options
  • Save ian-ellis/cf68c822639469894edef3a15b4af0ab to your computer and use it in GitHub Desktop.
Save ian-ellis/cf68c822639469894edef3a15b4af0ab to your computer and use it in GitHub Desktop.
Pact Fail
$.body.page_count -> Expected 1 but received 462
$.body._embedded.product.0.name -> Expected 'Alaska Coat' but received '1460 8 Eye Boots Smooth'
$.body._embedded.product.0.sku -> Expected 'FR760AA31JSE' but received 'DR086SH49AVE'
$.body._embedded.product.0.price -> Expected 169.95 but received 199
$.body._embedded.product.0.short_description -> Expected 'A product description' but received '<b>PLEASE NOTE - THE ICONIC IS UNABLE TO SHIP THIS PRODUCT TO NEW ZEALAND.</b><br><br>For the original grunge look, you can't go past <b>Dr Martens 1460Z DMC 8 Eye Lace Up</b> boots, a direct replica of the first boots to roll off the production
line in 1960. Combine your pair with distressed skinny jeans and a printed tee.<br><br>- Genuine leather upper and lining<br>- Rounded toe<br>- Eight-eye lace-up fastening<br>- Classic looped pull tab<br>- Topstitch detailing around the sole<br>- Oil and acid resistant outsole<br><br>PLEASE NOTE : This style comes in UK sizing and has a unisex fit. We recommend women order one size down for a regular fit.<br>'
$.body._embedded.product.0._embedded.brand.id -> Expected 1234 but received 86
$.body._embedded.product.0._embedded.brand.name -> Expected 'Awesome Brand' but received 'Dr Martens'
$.body._embedded.product.0._embedded.brand.url_key -> Expected 'awesome' but received 'dr-martens'
$.body._embedded.product.0._embedded.gender.id -> Expected 15 but received 3
$.body._embedded.product.0._embedded.gender.name -> Expected 'male' but received 'unisex'
$.body._embedded.product.0._embedded.images.0.url -> Expected 'http://static.theiconic.com.au/p/fresh-soul-1697-864712-1.jpg' but received 'http://static.theiconic.com.au/p/dr-martens-1149-055-1.jpg'
$.body._embedded.product.0._embedded.shops.0.is_default -> Expected false but received true
$.body._embedded.product.0._embedded.shops.0.name -> Expected 'sports' but received 'shop'
$.body._embedded.product.0.special_price -> Expected 6352154657 but received 0
$.body._embedded.product.0.link -> Expected 'Alaska-Coat-217468.html' but received '1460-8-eye-boots-smooth-550.html'
$.body._embedded.product.0.ribbon -> Expected 'new' but received ''
$.body._embedded.product.1.name -> Expected 'Alaska Coat' but received '1460Z DMC 8 Up'
$.body._embedded.product.1.sku -> Expected 'FR760AA31JSE' but received 'DR086SH48AVF'
$.body._embedded.product.1.price -> Expected 169.95 but received 179
$.body._embedded.product.1.short_description -> Expected 'A product description' but received '<b>PLEASE NOTE - PRODUCT NOT AVAILABLE FOR CUSTOMERS OUTSIDE OF AUSTRALIA.</b><br><br>Unisex, lace-up boots. The&nbsp;<strong>Dr. Martens 1460 8 Eye Boots</strong>&nbsp;have a smooth, durable leather upper, a pull-tab at the back, and an eight eyelet, lace-up front. The sole features Dr. Marten's traditional Goodyear-welted construction, with the upper and sole heat-sealed and sewn together, making for an uncompromisingly durable, comfortable, and stylish design.<br><br>PLEASE NOTE : This style comes in UK sizing and has a unisex fit. We recommend women order one size down for a regular fit.'
$.body._embedded.product.1._embedded.brand.id -> Expected 1234 but received 86
$.body._embedded.product.1._embedded.brand.name -> Expected 'Awesome Brand' but received 'Dr Martens'
$.body._embedded.product.1._embedded.brand.url_key -> Expected 'awesome' but received 'dr-martens'
$.body._embedded.product.1._embedded.gender.id -> Expected 15 but received 3
$.body._embedded.product.1._embedded.gender.name -> Expected 'male' but received 'unisex'
$.body._embedded.product.1._embedded.images.0.url -> Expected 'http://static.theiconic.com.au/p/fresh-soul-1697-864712-1.jpg' but received 'http://static.theiconic.com.au/p/dr-martens-1149-155-1.jpg'
$.body._embedded.product.1._embedded.shops.0.is_default -> Expected false but received true
$.body._embedded.product.1._embedded.shops.0.name -> Expected 'sports' but received 'shop'
$.body._embedded.product.1.special_price -> Expected 4205715302 but received 0
$.body._embedded.product.1.link -> Expected 'Alaska-Coat-217468.html' but received '1460z-dmc-8-up-551.html'
$.body._embedded.product.1.ribbon -> Expected 'new' but received ''
$.body._embedded.product -> Expected a List with 2 elements but received 24 elements
$.body.total_items -> Expected 2 but received 11077
$.body._links.self.href -> Expected 'http://eve.theiconic.com.au/v1/catalog/products?page=1' but received 'http://eve.goldie.aws.theiconic.com.au:8080/v1/catalog/products?gender=male&page=1'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment