Skip to content

Commit

Permalink
Merge remote-tracking branch 'github-magento/MAGETWO-91745' into EPAM…
Browse files Browse the repository at this point in the history
…-PR-16
  • Loading branch information
nikshostko committed Nov 9, 2018
2 parents b9d8954 + bb949b4 commit 99b1094
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->

<entities xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:mftf:DataGenerator/etc/dataProfileSchema.xsd">
<entity name="CatalogAttributeSet" type="CatalogAttributeSet">
<data key="attribute_set_name" unique="suffix">test_set_</data>
<data key="attributeGroupId">7</data>
<data key="skeletonId">4</data>
</entity>
</entities>
14 changes: 14 additions & 0 deletions app/code/Magento/Catalog/Test/Mftf/Data/ProductData.xml
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,20 @@
<requiredEntity type="product_extension_attribute">EavStockItem</requiredEntity>
<requiredEntity type="custom_attribute_array">CustomAttributeCategoryIds</requiredEntity>
</entity>
<entity name="SimpleProductWithCustomAttributeSet" type="product">
<data key="sku" unique="suffix">testSku</data>
<data key="type_id">simple</data>
<var key="attribute_set_id" entityKey="attribute_set_id" entityType="CatalogAttributeSet"/>
<data key="visibility">4</data>
<data key="name" unique="suffix">testProductName</data>
<data key="price">123.00</data>
<data key="urlKey" unique="suffix">testurlkey</data>
<data key="status">1</data>
<data key="weight">1</data>
<data key="quantity">100</data>
<requiredEntity type="product_extension_attribute">EavStockItem</requiredEntity>
<requiredEntity type="custom_attribute_array">CustomAttributeCategoryIds</requiredEntity>
</entity>
<entity name="productWithOptions" type="product">
<var key="sku" entityType="product" entityKey="sku" />
<data key="file">magento.jpg</data>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->

<operations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:mftf:DataGenerator/etc/dataOperation.xsd">
<operation name="AddCatalogAttributeToAttributeSet" dataType="CatalogAttributeSet" type="create" auth="adminOauth" url="/V1/products/attribute-sets" method="POST">
<contentType>application/json</contentType>
<object key="attributeSet" dataType="CatalogAttributeSet">
<field key="attribute_set_name">string</field>
<field key="sort_order">integer</field>
</object>
<field key="skeletonId">integer</field>
</operation>
<operation name="DeleteCatalogAttributeFromAttributeSet" dataType="CatalogAttributeSet" type="delete" auth="adminOauth" url="/V1/products/attribute-sets/{attribute_set_id}" method="DELETE">
<contentType>application/json</contentType>
</operation>
<operation name="GetCatalogAttributesFromDefaultSet" dataType="CatalogAttributeSet" type="get" auth="adminOauth" url="/V1/products/attribute-sets/{attribute_set_id}" method="GET">
<contentType>application/json</contentType>
</operation>
</operations>

0 comments on commit 99b1094

Please sign in to comment.