Skip to content

Commit f13d732

Browse files
committed
MQE-388: Write store settings before tests
- add paypal and braintree config metadata - add paypal nad braintree sample data
1 parent 642daf9 commit f13d732

File tree

4 files changed

+174
-0
lines changed

4 files changed

+174
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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+
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/DataGenerator/etc/dataProfileSchema.xsd">
11+
<entity name="sampleBraintreeConfig" type="braintree_config_state">
12+
<required-entity type="title">sampleTitle</required-entity>
13+
<required-entity type="payment_action">samplePaymentAction</required-entity>
14+
<required-entity type="environment">sampleEnvironment</required-entity>
15+
<required-entity type="merchant_id">sampleMerchantId</required-entity>
16+
<required-entity type="public_key">samplePublicKey</required-entity>
17+
<required-entity type="private_key">samplePrivateKey</required-entity>
18+
</entity>
19+
<entity name="sampleTitle" type="title">
20+
<data key="value">Sample Braintree Config</data>
21+
</entity>
22+
<entity name="samplePaymentAction" type="payment_action">
23+
<data key="value">authorize</data>
24+
</entity>
25+
<entity name="sampleEnvironment" type="environment">
26+
<data key="value">sandbox</data>
27+
</entity>
28+
<entity name="sampleMerchantId" type="merchant_id">
29+
<data key="value">someMerchantId</data>
30+
</entity>
31+
<entity name="samplePublicKey" type="public_key">
32+
<data key="value">somePublicKey</data>
33+
</entity>
34+
<entity name="samplePrivateKey" type="private_key">
35+
<data key="value">somePrivateKey</data>
36+
</entity>
37+
</config>
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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+
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/DataGenerator/etc/dataProfileSchema.xsd">
11+
<entity name="samplePaypalConfig" type="paypal_config_state">
12+
<required-entity type="business_account">sampleBusinessAccount</required-entity>
13+
<required-entity type="api_username">sampleApiUsername</required-entity>
14+
<required-entity type="api_password">sampleApiPassword</required-entity>
15+
<required-entity type="api_signature">sampleApiSignature</required-entity>
16+
<required-entity type="api_authentication">sampleApiAuthentication</required-entity>
17+
<required-entity type="sandbox_flag">sampleSandboxFlag</required-entity>
18+
<required-entity type="use_proxy">sampleUseProxy</required-entity>
19+
</entity>
20+
<entity name="sampleBusinessAccount" type="business_account">
21+
<data key="value">[email protected]</data>
22+
</entity>
23+
<entity name="sampleApiUsername" type="api_username">
24+
<data key="value">myApiUsername.magento.com</data>
25+
</entity>
26+
<entity name="sampleApiPassword" type="api_password">
27+
<data key="value">somePassword</data>
28+
</entity>
29+
<entity name="sampleApiSignature" type="api_signature">
30+
<data key="value">someApiSignature</data>
31+
</entity>
32+
<entity name="sampleApiAuthentication" type="api_authentication">
33+
<data key="value">0</data>
34+
</entity>
35+
<entity name="sampleSandboxFlag" type="sandbox_flag">
36+
<data key="value">0</data>
37+
</entity>
38+
<entity name="sampleUseProxy" type="use_proxy">
39+
<data key="value">0</data>
40+
</entity>
41+
</config>
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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+
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/DataGenerator/etc/dataOperation.xsd">
11+
<operation name="createBraintreeConfigState" dataType="braintree_config_state" type="create" auth="adminFormKey" url="/admin/system_config/save/section/payment/" method="POST">
12+
<object key="groups" dataType="braintree_config_state">
13+
<object key="braintree_section" dataType="braintree_config_state">
14+
<object key="groups" dataType="braintree_config_state">
15+
<object key="braintree" dataType="braintree_config_state">
16+
<object key="groups" dataType="braintree_config_state">
17+
<object key="braintree_required" dataType="braintree_config_state">
18+
<object key="fields" dataType="braintree_config_state">
19+
<object key="title" dataType="title">
20+
<field key="value">string</field>
21+
</object>
22+
<object key="environment" dataType="environment">
23+
<field key="value">string</field>
24+
</object>
25+
<object key="payment_action" dataType="payment_action">
26+
<field key="value">string</field>
27+
</object>
28+
<object key="merchant_id" dataType="merchant_id">
29+
<field key="value">string</field>
30+
</object>
31+
<object key="public_key" dataType="public_key">
32+
<field key="value">string</field>
33+
</object>
34+
<object key="private_key" dataType="private_key">
35+
<field key="value">string</field>
36+
</object>
37+
</object>
38+
</object>
39+
</object>
40+
</object>
41+
</object>
42+
</object>
43+
</object>
44+
</operation>
45+
</config>
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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+
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9+
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/DataGenerator/etc/dataOperation.xsd">
10+
<operation name="createPaypalConfigState" dataType="paypal_config_state" type="create" auth="adminFormKey" url="/admin/system_config/save/section/payment/" method="POST">
11+
<object key="groups" dataType="paypal_config_state">
12+
<object key="paypal_alternative_payment_methods" dataType="paypal_config_state">
13+
<object key="groups" dataType="paypal_config_state">
14+
<object key="express_checkout_us" dataType="paypal_config_state">
15+
<object key="groups" dataType="paypal_config_state">
16+
<object key="express_checkout_required" dataType="paypal_config_state">
17+
<object key="groups" dataType="paypal_config_state">
18+
<object key="express_checkout_required_express_checkout" dataType="paypal_config_state">
19+
<object key="fields" dataType="paypal_config_state">
20+
<object key="business_account" dataType="business_account">
21+
<field key="value">string</field>
22+
</object>
23+
<object key="api_username" dataType="api_username">
24+
<field key="value">string</field>
25+
</object>
26+
<object key="api_password" dataType="api_password">
27+
<field key="value">string</field>
28+
</object>
29+
<object key="api_signature" dataType="api_signature">
30+
<field key="value">string</field>
31+
</object>
32+
<object key="sandbox_flag" dataType="sandbox_flag">
33+
<field key="value">string</field>
34+
</object>
35+
<object key="use_proxy" dataType="use_proxy">
36+
<field key="value">string</field>
37+
</object>
38+
<object key="api_authentication" dataType="api_authentication">
39+
<field key="value">string</field>
40+
</object>
41+
</object>
42+
</object>
43+
</object>
44+
</object>
45+
</object>
46+
</object>
47+
</object>
48+
</object>
49+
</object>
50+
</operation>
51+
</config>

0 commit comments

Comments
 (0)