File tree Expand file tree Collapse file tree 10 files changed +3
-18
lines changed
dev/tests/acceptance/tests/functional/Magento/FunctionalTest
ConfigurableProduct/Metadata Expand file tree Collapse file tree 10 files changed +3
-18
lines changed Original file line number Diff line number Diff line change 32
32
33
33
<operation name =" UpdateCategory" dataType =" category" type =" update" auth =" adminOauth" url =" /V1/categories/{id}" method =" PUT" >
34
34
<contentType >application/json</contentType >
35
- <param key =" id" type =" path" >{id}</param >
36
35
<object key =" category" dataType =" category" >
37
36
<field key =" id" >integer</field >
38
37
<field key =" parent_id" >integer</field >
57
56
58
57
<operation name =" DeleteCategory" dataType =" category" type =" delete" auth =" adminOauth" url =" /V1/categories/{id}" method =" DELETE" >
59
58
<contentType >application/json</contentType >
60
- <param key =" id" type =" path" >{id}</param >
61
59
</operation >
62
60
</config >
Original file line number Diff line number Diff line change 36
36
</operation >
37
37
<operation name =" UpdateProduct" dataType =" product" type =" update" auth =" adminOauth" url =" /V1/products/{sku}" method =" PUT" >
38
38
<contentType >application/json</contentType >
39
- <param key =" sku" type =" path" >{sku}</param >
40
39
<object dataType =" product" key =" product" >
41
40
<field key =" id" >integer</field >
42
41
<field key =" sku" >string</field >
65
64
</operation >
66
65
<operation name =" deleteProduct" dataType =" product" type =" delete" auth =" adminOauth" url =" /V1/products/{sku}" method =" DELETE" >
67
66
<contentType >application/json</contentType >
68
- <param key =" sku" type =" path" >{sku}</param >
69
67
</operation >
70
68
</config >
Original file line number Diff line number Diff line change 60
60
</operation >
61
61
<operation name =" UpdateProductAttribute" dataType =" ProductAttribute" type =" update" auth =" adminOauth" url =" /V1/products/attributes/{attributeCode}" method =" PUT" >
62
62
<contentType >application/json</contentType >
63
- <param key =" attributeCode" type =" path" >{attributeCode}</param >
64
63
<object dataType =" ProductAttribute" key =" attribute" >
65
64
<field key =" attribute_code" >string</field >
66
65
<field key =" attribute_id" >string</field >
112
111
</operation >
113
112
<operation name =" DeleteProductAttribute" dataType =" ProductAttribute" type =" delete" auth =" adminOauth" url =" /V1/products/attributes/{attributeCode}" method =" DELETE" >
114
113
<contentType >application/json</contentType >
115
- <param key =" attributeCode" type =" path" >{attributeCode}</param >
116
114
</operation >
117
115
</config >
Original file line number Diff line number Diff line change 10
10
xsi : noNamespaceSchemaLocation =" ../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/DataGenerator/etc/dataOperation.xsd" >
11
11
<operation name =" CreateProductAttributeOption" dataType =" ProductAttributeOption" type =" create" auth =" adminOauth" url =" /V1/products/attributes/{attribute_code}/options" method =" POST" >
12
12
<contentType >application/json</contentType >
13
- <param key =" attribute_code" type =" path" >{attribute_code}</param >
14
13
<object dataType =" ProductAttributeOption" key =" option" >
15
14
<field key =" label" >string</field >
16
15
<field key =" value" >string</field >
23
22
</operation >
24
23
<operation name =" DeleteProductAttributeOption" dataType =" ProductAttributeOption" type =" delete" auth =" adminOauth" url =" /V1/products/attributes/{attribute_code}/options/{optionId}" method =" DELETE" >
25
24
<contentType >application/json</contentType >
26
- <param key =" attribute_code" type =" path" >{attribute_code}</param >
27
- <param key =" optionId" type =" path" >{optionId}</param >
28
25
</operation >
29
26
<operation name =" GetProductAttributeOption" dataType =" ProductAttributeOption" type =" get" auth =" adminOauth" url =" /V1/products/attributes/{attribute_code}/options/" method =" GET" >
30
27
<contentType >application/json</contentType >
31
- <param key =" attribute_code" type =" path" >{attribute_code}</param >
32
28
</operation >
33
29
</config >
Original file line number Diff line number Diff line change 17
17
</operation >
18
18
<operation name =" DeleteProductAttributeFromAttributeSet" dataType =" ProductAttributeSet" type =" delete" auth =" adminOauth" url =" /V1/products/attribute-sets/{attributeSetId}/attributes/{attributeCode}" method =" DELETE" >
19
19
<contentType >application/json</contentType >
20
- <param key =" attributeSetId" type =" path" >{attributeSetId}</param >
21
- <param key =" attributeCode" type =" path" >{attributeCode}</param >
22
20
</operation >
23
21
</config >
Original file line number Diff line number Diff line change 27
27
28
28
<operation name =" DeleteCoupon" dataType =" coupon" type =" delete" auth =" adminOauth" url =" /rest/V1/coupons/{couponId}" method =" DELETE" >
29
29
<header param =" Content-Type" >application/json</header >
30
- <param key =" couponId" type =" path" >{couponId}</param >
31
30
</operation >
32
31
</config >
Original file line number Diff line number Diff line change 10
10
xsi : noNamespaceSchemaLocation =" ../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/DataGenerator/etc/dataOperation.xsd" >
11
11
<operation name =" ConfigurableProductAddChild" dataType =" ConfigurableProductAddChild" type =" create" auth =" adminOauth" url =" /V1/configurable-products/{sku}/child" method =" POST" >
12
12
<contentType >application/json</contentType >
13
- <param key =" sku" type =" path" >{sku}</param >
14
13
<field key =" childSku" >string</field >
15
14
</operation >
16
15
</config >
Original file line number Diff line number Diff line change 10
10
xsi : noNamespaceSchemaLocation =" ../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/DataGenerator/etc/dataOperation.xsd" >
11
11
<operation name =" CreateConfigurableProductOption" dataType =" ConfigurableProductOption" type =" create" auth =" adminOauth" url =" /V1/configurable-products/{sku}/options" method =" POST" >
12
12
<contentType >application/json</contentType >
13
- <param key =" sku" type =" path" >{sku}</param >
14
13
<object dataType =" ConfigurableProductOption" key =" option" >
15
14
<field key =" attribute_id" >integer</field >
16
15
<field key =" label" >string</field >
Original file line number Diff line number Diff line change 43
43
</operation >
44
44
<operation name =" DeleteCustomer" dataType =" customer" type =" delete" auth =" adminOauth" url =" /V1/customers/{id}" method =" DELETE" >
45
45
<contentType >application/json</contentType >
46
- <param key =" id" type =" path" >{id}</param >
47
46
</operation >
48
47
</config >
Original file line number Diff line number Diff line change 19
19
</annotations >
20
20
<before >
21
21
<createData mergeKey =" categoryHandle" entity =" SimpleSubCategory" />
22
- <createData mergeKey =" originalProductHandle " entity =" SimpleProduct" >
22
+ <createData mergeKey =" productHandle " entity =" SimpleProduct" >
23
23
<required-entity createDataKey =" categoryHandle" />
24
24
</createData >
25
25
<updateData mergeKey =" productHandle" entity =" NewSimpleProduct" createDataKey =" originalProductHandle" >
26
26
</updateData >
27
+ <updateData mergeKey =" update" entity =" NewSimpleProduct" createDataKey =" productHandle" />
27
28
</before >
28
29
<after >
29
30
<deleteData mergeKey =" delete" createDataKey =" productHandle" />
30
31
</after >
31
32
<test name =" UpdateSimpleProductByApiTest" >
32
33
</test >
33
34
</cest >
34
- </config >
35
+ </config >
You can’t perform that action at this time.
0 commit comments