File tree Expand file tree Collapse file tree 3 files changed +55
-0
lines changed
app/code/Magento/Catalog/Test/Mftf Expand file tree Collapse file tree 3 files changed +55
-0
lines changed Original file line number Diff line number Diff line change
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 >
Original file line number Diff line number Diff line change 301
301
<requiredEntity type =" product_extension_attribute" >EavStockItem</requiredEntity >
302
302
<requiredEntity type =" custom_attribute_array" >CustomAttributeCategoryIds</requiredEntity >
303
303
</entity >
304
+ <entity name =" SimpleProductWithCustomAttributeSet" type =" product" >
305
+ <data key =" sku" unique =" suffix" >testSku</data >
306
+ <data key =" type_id" >simple</data >
307
+ <var key =" attribute_set_id" entityKey =" attribute_set_id" entityType =" CatalogAttributeSet" />
308
+ <data key =" visibility" >4</data >
309
+ <data key =" name" unique =" suffix" >testProductName</data >
310
+ <data key =" price" >123.00</data >
311
+ <data key =" urlKey" unique =" suffix" >testurlkey</data >
312
+ <data key =" status" >1</data >
313
+ <data key =" weight" >1</data >
314
+ <data key =" quantity" >100</data >
315
+ <requiredEntity type =" product_extension_attribute" >EavStockItem</requiredEntity >
316
+ <requiredEntity type =" custom_attribute_array" >CustomAttributeCategoryIds</requiredEntity >
317
+ </entity >
304
318
<entity name =" productWithOptions" type =" product" >
305
319
<var key =" sku" entityType =" product" entityKey =" sku" />
306
320
<data key =" file" >magento.jpg</data >
Original file line number Diff line number Diff line change
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 >
You can’t perform that action at this time.
0 commit comments