Skip to content

Commit cd8dd48

Browse files
jilu1tomreece
authored andcommitted
MQE-369: [Data Input] Non Web Api Data Persistence.
1 parent ea35a09 commit cd8dd48

25 files changed

+387
-257
lines changed
Lines changed: 33 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,56 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!--
3-
/**
4-
* Copyright © Magento, Inc. All rights reserved.
5-
* See COPYING.txt for license details.
6-
*/
7-
-->
82

93
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
104
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/DataGenerator/etc/dataOperation.xsd">
11-
<operation name="CreateCategory" dataType="category" type="create" auth="/rest/V1/integration/admin/token" url="/rest/V1/categories" method="POST">
12-
<header param="Content-Type">application/json</header>
13-
<jsonObject key="category" dataType="category">
14-
<entry key="parent_id">integer</entry>
15-
<entry key="name">string</entry>
16-
<entry key="is_active">boolean</entry>
17-
<entry key="position">integer</entry>
18-
<entry key="level">integer</entry>
19-
<entry key="children">string</entry>
20-
<entry key="created_at">string</entry>
21-
<entry key="updated_at">string</entry>
22-
<entry key="path">string</entry>
23-
<entry key="include_in_menu">boolean</entry>
5+
<operation name="CreateCategory" dataType="category" type="create" auth="adminOauth" url="/V1/categories" method="POST">
6+
<contentType>application/json</contentType>
7+
<object key="category" dataType="category">
8+
<field key="parent_id">integer</field>
9+
<field key="name">string</field>
10+
<field key="is_active">boolean</field>
11+
<field key="position">integer</field>
12+
<field key="level">integer</field>
13+
<field key="children">string</field>
14+
<field key="created_at">string</field>
15+
<field key="updated_at">string</field>
16+
<field key="path">string</field>
17+
<field key="include_in_menu">boolean</field>
2418
<array key="available_sort_by">
2519
<value>string</value>
2620
</array>
27-
<entry key="extension_attributes">empty_extension_attribute</entry>
21+
<field key="extension_attributes">empty_extension_attribute</field>
2822
<array key="custom_attributes">
2923
<value>custom_attribute</value>
3024
</array>
31-
</jsonObject>
25+
</object>
3226
</operation>
3327

34-
<operation name="UpdateCategory" dataType="category" type="update" auth="/rest/V1/integration/admin/token" url="/rest/V1/categories" method="PUT">
35-
<header param="Content-Type">application/json</header>
36-
<jsonObject key="category" dataType="category">
37-
<entry key="id">integer</entry>
38-
<entry key="parent_id">integer</entry>
39-
<entry key="name">string</entry>
40-
<entry key="is_active">boolean</entry>
41-
<entry key="position">integer</entry>
42-
<entry key="level">integer</entry>
43-
<entry key="children">string</entry>
44-
<entry key="created_at">string</entry>
45-
<entry key="updated_at">string</entry>
46-
<entry key="path">string</entry>
28+
<operation name="UpdateCategory" dataType="category" type="update" auth="adminOauth" url="/V1/categories" method="PUT">
29+
<contentType>application/json</contentType>
30+
<object key="category" dataType="category">
31+
<field key="id">integer</field>
32+
<field key="parent_id">integer</field>
33+
<field key="name">string</field>
34+
<field key="is_active">boolean</field>
35+
<field key="position">integer</field>
36+
<field key="level">integer</field>
37+
<field key="children">string</field>
38+
<field key="created_at">string</field>
39+
<field key="updated_at">string</field>
40+
<field key="path">string</field>
4741
<array key="available_sort_by">
4842
<value>string</value>
4943
</array>
50-
<entry key="include_in_menu">boolean</entry>
51-
<entry key="extension_attributes">empty_extension_attribute</entry>
44+
<field key="include_in_menu">boolean</field>
45+
<field key="extension_attributes">empty_extension_attribute</field>
5246
<array key="custom_attributes">
5347
<value>custom_attribute</value>
5448
</array>
55-
</jsonObject>
49+
</object>
5650
</operation>
5751

58-
<operation name="DeleteCategory" dataType="category" type="delete" auth="/rest/V1/integration/admin/token" url="/rest/V1/categories" method="DELETE">
59-
<header param="Content-Type">application/json</header>
52+
<operation name="DeleteCategory" dataType="category" type="delete" auth="adminOauth" url="/V1/categories" method="DELETE">
53+
<contentType>application/json</contentType>
6054
<param key="categoryId" type="path">{id}</param>
6155
</operation>
6256
</config>

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Catalog/Metadata/custom_attribute-meta.xml

Lines changed: 0 additions & 19 deletions
This file was deleted.

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Catalog/Metadata/product-meta.xml

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,20 @@
88

99
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/DataGenerator/etc/dataOperation.xsd">
11-
<operation name="CreateProduct" dataType="product" type="create" auth="/rest/V1/integration/admin/token" url="/rest/V1/products" method="POST">
12-
<header param="Content-Type">application/json</header>
13-
<jsonObject dataType="product" key="product">
14-
<entry key="sku">string</entry>
15-
<entry key="name">string</entry>
16-
<entry key="attribute_set_id">integer</entry>
17-
<entry key="price">integer</entry>
18-
<entry key="status">integer</entry>
19-
<entry key="visibility">integer</entry>
20-
<entry key="type_id">string</entry>
21-
<entry key="created_at">string</entry>
22-
<entry key="updated_at">string</entry>
23-
<entry key="weight">integer</entry>
24-
<entry key="extension_attributes">product_extension_attribute</entry>
11+
<operation name="CreateProduct" dataType="product" type="create" auth="adminOauth" url="/V1/products" method="POST">
12+
<contentType>application/json</contentType>
13+
<object dataType="product" key="product">
14+
<field key="sku">string</field>
15+
<field key="name">string</field>
16+
<field key="attribute_set_id">integer</field>
17+
<field key="price">integer</field>
18+
<field key="status">integer</field>
19+
<field key="visibility">integer</field>
20+
<field key="type_id">string</field>
21+
<field key="created_at">string</field>
22+
<field key="updated_at">string</field>
23+
<field key="weight">integer</field>
24+
<field key="extension_attributes">product_extension_attribute</field>
2525
<array key="product_links">
2626
<value>product_link</value>
2727
</array>
@@ -31,23 +31,23 @@
3131
<array key="options">
3232
<value>product_option</value>
3333
</array>
34-
</jsonObject>
34+
</object>
3535
</operation>
36-
<operation name="UpdateProduct" dataType="product" type="update" auth="/rest/V1/integration/admin/token" url="/rest/V1/products" method="PUT">
37-
<header param="Content-Type">application/json</header>
38-
<jsonObject dataType="product" key="product">
39-
<entry key="id">integer</entry>
40-
<entry key="sku">string</entry>
41-
<entry key="name">string</entry>
42-
<entry key="attribute_set_id">integer</entry>
43-
<entry key="price">integer</entry>
44-
<entry key="status">integer</entry>
45-
<entry key="visibility">integer</entry>
46-
<entry key="type_id">string</entry>
47-
<entry key="created_at">string</entry>
48-
<entry key="updated_at">string</entry>
49-
<entry key="weight">integer</entry>
50-
<entry key="extension_attributes">product_extension_attribute</entry>
36+
<operation name="UpdateProduct" dataType="product" type="update" auth="adminOauth" url="/V1/products" method="PUT">
37+
<contentType>application/json</contentType>
38+
<object dataType="product" key="product">
39+
<field key="id">integer</field>
40+
<field key="sku">string</field>
41+
<field key="name">string</field>
42+
<field key="attribute_set_id">integer</field>
43+
<field key="price">integer</field>
44+
<field key="status">integer</field>
45+
<field key="visibility">integer</field>
46+
<field key="type_id">string</field>
47+
<field key="created_at">string</field>
48+
<field key="updated_at">string</field>
49+
<field key="weight">integer</field>
50+
<field key="extension_attributes">product_extension_attribute</field>
5151
<array key="product_links">
5252
<value>product_link</value>
5353
</array>
@@ -63,11 +63,11 @@
6363
<array key="tier_prices">
6464
<value>tier_prices</value>
6565
</array-->
66-
</jsonObject>
67-
<entry key="saveOptions">boolean</entry>
66+
</object>
67+
<field key="saveOptions">boolean</field>
6868
</operation>
69-
<operation name="deleteProduct" dataType="product" type="delete" auth="/rest/V1/integration/admin/token" url="/rest/V1/products" method="DELETE">
70-
<header param="Content-Type">application/json</header>
69+
<operation name="deleteProduct" dataType="product" type="delete" auth="adminOauth" url="/V1/products" method="DELETE">
70+
<contentType>application/json</contentType>
7171
<param key="sku" type="path">{sku}</param>
7272
</operation>
7373
</config>

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Catalog/Metadata/product_extension_attribute-meta.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/DataGenerator/etc/dataOperation.xsd">
1111
<operation name="CreateProductExtensionAttribute" dataType="product_extension_attribute" type="create">
12-
<entry key="stock_item">stock_item</entry>
12+
<field key="stock_item">stock_item</field>
1313
</operation>
1414
<operation name="UpdateProductExtensionAttribute" dataType="product_extension_attribute" type="update">
15-
<entry key="stock_item">stock_item</entry>
15+
<field key="stock_item">stock_item</field>
1616
</operation>
1717
</config>

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Catalog/Metadata/product_link-meta.xml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,21 @@
99
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/DataGenerator/etc/dataOperation.xsd">
1111
<operation name="CreateProductLink" dataType="product_link" type="create">
12-
<entry key="sku">string</entry>
13-
<entry key="link_type">string</entry>
14-
<entry key="linked_product_sku">string</entry>
15-
<entry key="linked_product_type">string</entry>
16-
<entry key="position">integer</entry>
12+
<field key="sku">string</field>
13+
<field key="link_type">string</field>
14+
<field key="linked_product_sku">string</field>
15+
<field key="linked_product_type">string</field>
16+
<field key="position">integer</field>
1717
<array key="extension_attributes">
1818
<value>product_link_extension_attribute</value>
1919
</array>
2020
</operation>
2121
<operation name="UpdateProductLink" dataType="product_link" type="update">
22-
<entry key="sku">string</entry>
23-
<entry key="link_type">string</entry>
24-
<entry key="linked_product_sku">string</entry>
25-
<entry key="linked_product_type">string</entry>
26-
<entry key="position">integer</entry>
22+
<field key="sku">string</field>
23+
<field key="link_type">string</field>
24+
<field key="linked_product_sku">string</field>
25+
<field key="linked_product_type">string</field>
26+
<field key="position">integer</field>
2727
<array key="extension_attributes">
2828
<value>product_link_extension_attribute</value>
2929
</array>

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Catalog/Metadata/product_link_extension_attribute-meta.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/DataGenerator/etc/dataOperation.xsd">
1111
<operation name="CreateProductLinkExtensionAttribute" dataType="product_link_extension_attribute" type="create">
1212
<header param="Content-Type">application/json</header>
13-
<entry key="qty">integer</entry>
13+
<field key="qty">integer</field>
1414
</operation>
1515
<operation name="UpdateProductLinkExtensionAttribute" dataType="product_link_extension_attribute" type="update">
1616
<header param="Content-Type">application/json</header>
17-
<entry key="qty">integer</entry>
17+
<field key="qty">integer</field>
1818
</operation>
1919
</config>

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Catalog/Metadata/product_option-meta.xml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -9,37 +9,37 @@
99
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/DataGenerator/etc/dataOperation.xsd">
1111
<operation name="CreateProductOption" dataType="product_option" type="create">
12-
<entry key="product_sku">string</entry>
13-
<entry key="option_id">integer</entry>
14-
<entry key="title">string</entry>
15-
<entry key="type">string</entry>
16-
<entry key="sort_order">integer</entry>
17-
<entry key="is_require">boolean</entry>
18-
<entry key="price">integer</entry>
19-
<entry key="price_type">string</entry>
20-
<entry key="sku">string</entry>
21-
<entry key="file_extension">string</entry>
22-
<entry key="max_characters">integer</entry>
23-
<entry key="max_size_x">integer</entry>
24-
<entry key="max_size_y">integer</entry>
12+
<field key="product_sku">string</field>
13+
<field key="option_id">integer</field>
14+
<field key="title">string</field>
15+
<field key="type">string</field>
16+
<field key="sort_order">integer</field>
17+
<field key="is_require">boolean</field>
18+
<field key="price">integer</field>
19+
<field key="price_type">string</field>
20+
<field key="sku">string</field>
21+
<field key="file_extension">string</field>
22+
<field key="max_characters">integer</field>
23+
<field key="max_size_x">integer</field>
24+
<field key="max_size_y">integer</field>
2525
<array key="values">
2626
<value>product_option_value</value>
2727
</array>
2828
</operation>
2929
<operation name="UpdateProductOption" dataType="product_option" type="update">
30-
<entry key="product_sku">string</entry>
31-
<entry key="option_id">integer</entry>
32-
<entry key="title">string</entry>
33-
<entry key="type">string</entry>
34-
<entry key="sort_order">integer</entry>
35-
<entry key="is_require">boolean</entry>
36-
<entry key="price">integer</entry>
37-
<entry key="price_type">string</entry>
38-
<entry key="sku">string</entry>
39-
<entry key="file_extension">string</entry>
40-
<entry key="max_characters">integer</entry>
41-
<entry key="max_size_x">integer</entry>
42-
<entry key="max_size_y">integer</entry>
30+
<field key="product_sku">string</field>
31+
<field key="option_id">integer</field>
32+
<field key="title">string</field>
33+
<field key="type">string</field>
34+
<field key="sort_order">integer</field>
35+
<field key="is_require">boolean</field>
36+
<field key="price">integer</field>
37+
<field key="price_type">string</field>
38+
<field key="sku">string</field>
39+
<field key="file_extension">string</field>
40+
<field key="max_characters">integer</field>
41+
<field key="max_size_x">integer</field>
42+
<field key="max_size_y">integer</field>
4343
<array key="values">
4444
<value>product_option_value</value>
4545
</array>

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Catalog/Metadata/product_option_value-meta.xml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@
99
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/DataGenerator/etc/dataOperation.xsd">
1111
<operation name="CreateProductOptionValue" dataType="product_option_value" type="create">
12-
<entry key="title">string</entry>
13-
<entry key="sort_order">integer</entry>
14-
<entry key="price">integer</entry>
15-
<entry key="price_type">string</entry>
16-
<entry key="sku">string</entry>
17-
<entry key="option_type_id">integer</entry>
12+
<field key="title">string</field>
13+
<field key="sort_order">integer</field>
14+
<field key="price">integer</field>
15+
<field key="price_type">string</field>
16+
<field key="sku">string</field>
17+
<field key="option_type_id">integer</field>
1818
</operation>
1919
<operation name="UpdateProductOptionValue" dataType="product_option_value" type="update">
20-
<entry key="title">string</entry>
21-
<entry key="sort_order">integer</entry>
22-
<entry key="price">integer</entry>
23-
<entry key="price_type">string</entry>
24-
<entry key="sku">string</entry>
25-
<entry key="option_type_id">integer</entry>
20+
<field key="title">string</field>
21+
<field key="sort_order">integer</field>
22+
<field key="price">integer</field>
23+
<field key="price_type">string</field>
24+
<field key="sku">string</field>
25+
<field key="option_type_id">integer</field>
2626
</operation>
2727
</config>

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Catalog/Metadata/stock_item-meta.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/DataGenerator/etc/dataOperation.xsd">
1111
<operation name="CreateStockItem" dataType="stock_item" type="create">
12-
<entry key="qty">integer</entry>
13-
<entry key="is_in_stock">boolean</entry>
12+
<field key="qty">integer</field>
13+
<field key="is_in_stock">boolean</field>
1414
</operation>
1515
<operation name="UpdateStockItem" dataType="stock_item" type="update">
16-
<entry key="qty">integer</entry>
17-
<entry key="is_in_stock">boolean</entry>
16+
<field key="qty">integer</field>
17+
<field key="is_in_stock">boolean</field>
1818
</operation>
1919
</config>

0 commit comments

Comments
 (0)