Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[10.0] [FIX] connector_prestashop: Fix online tests (fresh Prestashop available) #108

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -7,15 +7,15 @@ interactions:
Connection: [keep-alive]
User-Agent: [python-requests/2.6.0 CPython/2.7.9 Linux/4.4.0-51-generic]
method: GET
uri: http://172.22.0.4/api/stock_availables?filter%5Bid_product_attribute%5D=0&filter%5Bid_product%5D=1
uri: http://172.22.0.4/api/stock_availables?filter%5Bid_product_attribute%5D=0&filter%5Bid_product%5D=2
response:
body: {string: !!python/unicode '<?xml version="1.0" encoding="UTF-8"?>

<prestashop xmlns:xlink="http://www.w3.org/1999/xlink">

<stock_availables>

<stock_available id="1" xlink:href="http://172.22.0.4/api/stock_availables/1"/>
<stock_available id="2" xlink:href="http://172.22.0.4/api/stock_availables/2"/>

</stock_availables>

Expand Down Expand Up @@ -47,12 +47,12 @@ interactions:
Cookie: [PrestaShop-095ca4fa56f569ddf56f692e2249251a=DYHr6QQHnOuI4%2BKs9hL5TefxaDQeKRvH4iskMptWR8Ao0kKwTQ%2BHn74qCsABs2oIgh1NPrPv59GgeUjPVxKZOHRsmUHT3M%2BW%2FfrbuB4NBJU%3D000078]
User-Agent: [python-requests/2.6.0 CPython/2.7.9 Linux/4.4.0-51-generic]
method: GET
uri: http://172.22.0.4/api/stock_availables/1
uri: http://172.22.0.4/api/stock_availables/2
response:
body: {string: !!python/unicode "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\
<prestashop xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n<stock_available>\n\
\t<id><![CDATA[1]]></id>\n\t<id_product xlink:href=\"http://172.22.0.4/api/products/1\"\
><![CDATA[1]]></id_product>\n\t<id_product_attribute><![CDATA[0]]></id_product_attribute>\n\
\t<id><![CDATA[2]]></id>\n\t<id_product xlink:href=\"http://172.22.0.4/api/products/2\"\
><![CDATA[2]]></id_product>\n\t<id_product_attribute><![CDATA[0]]></id_product_attribute>\n\
\t<id_shop xlink:href=\"http://172.22.0.4/api/shops/1\"><![CDATA[1]]></id_shop>\n\
\t<id_shop_group><![CDATA[0]]></id_shop_group>\n\t<quantity><![CDATA[1799]]></quantity>\n\
\t<depends_on_stock><![CDATA[0]]></depends_on_stock>\n\t<out_of_stock><![CDATA[2]]></out_of_stock>\n\
Expand All @@ -72,7 +72,7 @@ interactions:
x-powered-by: [PrestaShop Webservice]
status: {code: 200, message: OK}
- request:
body: !!python/unicode '<?xml version="1.0" encoding="UTF-8"?><prestashop><stock_available><id_product_attribute>0</id_product_attribute><id_product>1</id_product><out_of_stock>2</out_of_stock><id_shop>1</id_shop><quantity>0</quantity><depends_on_stock>0</depends_on_stock><id>1</id><id_shop_group>0</id_shop_group></stock_available></prestashop>'
body: !!python/unicode '<?xml version="1.0" encoding="UTF-8"?><prestashop><stock_available><id_product_attribute>0</id_product_attribute><id_product>2</id_product><out_of_stock>0</out_of_stock><id_shop>1</id_shop><quantity>0</quantity><depends_on_stock>0</depends_on_stock><id>2</id><id_shop_group>0</id_shop_group></stock_available></prestashop>'
headers:
Accept: ['*/*']
Accept-Encoding: ['gzip, deflate']
Expand All @@ -86,11 +86,11 @@ interactions:
response:
body: {string: !!python/unicode "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\
<prestashop xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n<stock_available>\n\
\t<id><![CDATA[1]]></id>\n\t<id_product xlink:href=\"http://172.22.0.4/api/products/1\"\
><![CDATA[1]]></id_product>\n\t<id_product_attribute><![CDATA[0]]></id_product_attribute>\n\
\t<id><![CDATA[2]]></id>\n\t<id_product xlink:href=\"http://172.22.0.4/api/products/2\"\
><![CDATA[2]]></id_product>\n\t<id_product_attribute><![CDATA[0]]></id_product_attribute>\n\
\t<id_shop xlink:href=\"http://172.22.0.4/api/shops/1\"><![CDATA[1]]></id_shop>\n\
\t<id_shop_group><![CDATA[0]]></id_shop_group>\n\t<quantity><![CDATA[0]]></quantity>\n\
\t<depends_on_stock><![CDATA[0]]></depends_on_stock>\n\t<out_of_stock><![CDATA[2]]></out_of_stock>\n\
\t<depends_on_stock><![CDATA[0]]></depends_on_stock>\n\t<out_of_stock><![CDATA[0]]></out_of_stock>\n\
</stock_available>\n</prestashop>\n"}
headers:
access-time: ['1481297840']
Expand Down
Expand Up @@ -15,7 +15,7 @@ interactions:
\t<id_manufacturer><![CDATA[0]]></id_manufacturer>\n\t<id_supplier><![CDATA[0]]></id_supplier>\n\
\t<id_warehouse><![CDATA[0]]></id_warehouse>\n\t<id_country xlink:href=\"\
http://172.24.0.3/api/countries/8\"><![CDATA[8]]></id_country>\n\t<id_state><![CDATA[0]]></id_state>\n\
\t<alias><![CDATA[My address]]></alias>\n\t<company></company>\n\t<lastname><![CDATA[DOE]]></lastname>\n\
\t<alias><![CDATA[Mon adresse]]></alias>\n\t<company></company>\n\t<lastname><![CDATA[DOE]]></lastname>\n\
\t<firstname><![CDATA[John]]></firstname>\n\t<vat_number></vat_number>\n\t\
<address1><![CDATA[16, Main street]]></address1>\n\t<address2><![CDATA[2nd\
\ floor]]></address2>\n\t<postcode><![CDATA[75002]]></postcode>\n\t<city><![CDATA[Paris]]></city>\n\
Expand Down
Expand Up @@ -60,8 +60,6 @@ interactions:

<customer id="1" xlink:href="http://172.24.0.3/api/customers/1"/>

<customer id="2" xlink:href="http://172.24.0.3/api/customers/2"/>

</customers>

</prestashop>
Expand Down
Expand Up @@ -15,7 +15,7 @@ interactions:
\t<show_prices><![CDATA[1]]></show_prices>\n\t<date_add><![CDATA[2016-09-02\
\ 14:37:17]]></date_add>\n\t<date_upd><![CDATA[2016-09-06 15:03:01]]></date_upd>\n\
\t<name><language id=\"1\" xlink:href=\"http://172.24.0.3/api/languages/1\"\
><![CDATA[Customer A]]></language></name>\n</group>\n</prestashop>\n"}
><![CDATA[Customer]]></language></name>\n</group>\n</prestashop>\n"}
headers:
access-time: ['1473766107']
connection: [Keep-Alive]
Expand Down Expand Up @@ -49,7 +49,7 @@ interactions:
\t<show_prices><![CDATA[1]]></show_prices>\n\t<date_add><![CDATA[2016-09-02\
\ 14:37:17]]></date_add>\n\t<date_upd><![CDATA[2016-09-06 15:03:01]]></date_upd>\n\
\t<name><language id=\"1\" xlink:href=\"http://172.24.0.3/api/languages/1\"\
><![CDATA[Customer A]]></language></name>\n</group>\n</prestashop>\n"}
><![CDATA[Customer]]></language></name>\n</group>\n</prestashop>\n"}
headers:
access-time: ['1473766107']
connection: [Keep-Alive]
Expand Down