Skip to content

Commit 99b1094

Browse files
committed
Merge remote-tracking branch 'github-magento/MAGETWO-91745' into EPAM-PR-16
2 parents b9d8954 + bb949b4 commit 99b1094

File tree

3 files changed

+55
-0
lines changed

3 files changed

+55
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?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+
-->
8+
9+
<entities xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:DataGenerator/etc/dataProfileSchema.xsd">
11+
<entity name="CatalogAttributeSet" type="CatalogAttributeSet">
12+
<data key="attribute_set_name" unique="suffix">test_set_</data>
13+
<data key="attributeGroupId">7</data>
14+
<data key="skeletonId">4</data>
15+
</entity>
16+
</entities>

app/code/Magento/Catalog/Test/Mftf/Data/ProductData.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,20 @@
302302
<requiredEntity type="product_extension_attribute">EavStockItem</requiredEntity>
303303
<requiredEntity type="custom_attribute_array">CustomAttributeCategoryIds</requiredEntity>
304304
</entity>
305+
<entity name="SimpleProductWithCustomAttributeSet" type="product">
306+
<data key="sku" unique="suffix">testSku</data>
307+
<data key="type_id">simple</data>
308+
<var key="attribute_set_id" entityKey="attribute_set_id" entityType="CatalogAttributeSet"/>
309+
<data key="visibility">4</data>
310+
<data key="name" unique="suffix">testProductName</data>
311+
<data key="price">123.00</data>
312+
<data key="urlKey" unique="suffix">testurlkey</data>
313+
<data key="status">1</data>
314+
<data key="weight">1</data>
315+
<data key="quantity">100</data>
316+
<requiredEntity type="product_extension_attribute">EavStockItem</requiredEntity>
317+
<requiredEntity type="custom_attribute_array">CustomAttributeCategoryIds</requiredEntity>
318+
</entity>
305319
<entity name="productWithOptions" type="product">
306320
<var key="sku" entityType="product" entityKey="sku" />
307321
<data key="file">magento.jpg</data>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?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+
-->
8+
9+
<operations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:DataGenerator/etc/dataOperation.xsd">
11+
<operation name="AddCatalogAttributeToAttributeSet" dataType="CatalogAttributeSet" type="create" auth="adminOauth" url="/V1/products/attribute-sets" method="POST">
12+
<contentType>application/json</contentType>
13+
<object key="attributeSet" dataType="CatalogAttributeSet">
14+
<field key="attribute_set_name">string</field>
15+
<field key="sort_order">integer</field>
16+
</object>
17+
<field key="skeletonId">integer</field>
18+
</operation>
19+
<operation name="DeleteCatalogAttributeFromAttributeSet" dataType="CatalogAttributeSet" type="delete" auth="adminOauth" url="/V1/products/attribute-sets/{attribute_set_id}" method="DELETE">
20+
<contentType>application/json</contentType>
21+
</operation>
22+
<operation name="GetCatalogAttributesFromDefaultSet" dataType="CatalogAttributeSet" type="get" auth="adminOauth" url="/V1/products/attribute-sets/{attribute_set_id}" method="GET">
23+
<contentType>application/json</contentType>
24+
</operation>
25+
</operations>

0 commit comments

Comments
 (0)