Skip to content

Commit 738aa48

Browse files
jilu1tomreece
authored andcommitted
MQE-411: Fixed template and coupon meta data files.
1 parent b41735f commit 738aa48

File tree

2 files changed

+24
-21
lines changed

2 files changed

+24
-21
lines changed

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Checkout/Metadata/coupon-meta.xml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,23 @@
99

1010
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1111
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/DataGenerator/etc/dataOperation.xsd">
12-
<operation name="CreateCoupon" dataType="coupon" type="create" auth="/rest/V1/integration/admin/token" url="/rest/V1/coupons" method="POST">
12+
<operation name="CreateCoupon" dataType="coupon" type="create" auth="adminOauth" url="/rest/V1/coupons" method="POST">
1313
<header param="Content-Type">application/json</header>
14-
<jsonObject key="coupon" dataType="coupon">
15-
<entry key="rule_id" required="true">integer</entry>
16-
<entry key="times_used" required="true">integer</entry>
17-
<entry key="is_primary" required="true">boolean</entry>
18-
<entry key="code">string</entry>
19-
<entry key="usage_limit">integer</entry>
20-
<entry key="usage_per_customer">integer</entry>
21-
<entry key="expiration_date">string</entry>
22-
<entry key="created_at">string</entry>
23-
<entry key="type">integer</entry>
24-
<entry key="extension_attributes">empty_extension_attribute</entry>
25-
</jsonObject>
14+
<object key="coupon" dataType="coupon">
15+
<field key="rule_id" required="true">integer</field>
16+
<field key="times_used" required="true">integer</field>
17+
<field key="is_primary" required="true">boolean</field>
18+
<field key="code">string</field>
19+
<field key="usage_limit">integer</field>
20+
<field key="usage_per_customer">integer</field>
21+
<field key="expiration_date">string</field>
22+
<field key="created_at">string</field>
23+
<field key="type">integer</field>
24+
<field key="extension_attributes">empty_extension_attribute</field>
25+
</object>
2626
</operation>
2727

28-
<operation name="DeleteCoupon" dataType="coupon" type="delete" auth="/rest/V1/integration/admin/token" url="/rest/V1/coupons" method="DELETE">
28+
<operation name="DeleteCoupon" dataType="coupon" type="delete" auth="adminOauth" url="/rest/V1/coupons" method="DELETE">
2929
<header param="Content-Type">application/json</header>
3030
<param key="couponId" type="path">{coupon_id}</param>
3131
</operation>

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/SampleTemplates/Metadata/TemplateMetaFile.xml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,15 @@
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="" dataType="" type="" auth="" url="" method="">
12-
<contentType>application/json</contentType>
11+
<operation name="" dataType="" type="" auth="adminOauth" url="" method="">
12+
<header param="">application/json</header>
13+
<param key="" type="">{}</param>
14+
<object dataType="" key="">
15+
<field key=""></field>
16+
<array key="">
17+
<value></value>
18+
</array>
19+
</object>
1320
<field key=""></field>
14-
<array key="">
15-
<value></value>
16-
</array>
17-
<param key="" type=""></param>
1821
</operation>
19-
</config>
22+
</config>

0 commit comments

Comments
 (0)