Skip to content

Commit

Permalink
Merge pull request #615 from magento-qmt/mavericks-PR
Browse files Browse the repository at this point in the history
[Mavericks] Extend functional tests coverage
  • Loading branch information
Alexander Akimov authored Nov 24, 2016
2 parents ab69a79 + abd8347 commit d40ab32
Show file tree
Hide file tree
Showing 34 changed files with 951 additions and 49 deletions.
13 changes: 9 additions & 4 deletions dev/tests/functional/credentials.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,15 @@
<field path="payment/authorizenet_directpost/trans_key" value="" />
<field path="payment/authorizenet_directpost/trans_md5" value="" />

<field path="payment/braintree_section/braintree/braintree_advanced/merchant_account_id" value="" />
<field path="payment/braintree_section/braintree/braintree_required/merchant_id" value="" />
<field path="payment/braintree_section/braintree/braintree_required/public_key" value="" />
<field path="payment/braintree_section/braintree/braintree_required/private_key" value="" />
<field replace="braintree_enabled_fraud_merchant_account_id" value="" />
<field replace="braintree_enabled_fraud_merchant_id" value="" />
<field replace="braintree_enabled_fraud_public_key" value="" />
<field replace="braintree_enabled_fraud_private_key" value="" />

<field replace="braintree_disabled_fraud_merchant_account_id" value="" />
<field replace="braintree_disabled_fraud_merchant_id" value="" />
<field replace="braintree_disabled_fraud_public_key" value="" />
<field replace="braintree_disabled_fraud_private_key" value="" />

<field path="payment/paypal_group_all_in_one/wpp_usuk/wpp_required_settings/wpp_and_express_checkout/business_account" value="" />
<field path="payment/paypal_group_all_in_one/wpp_usuk/wpp_required_settings/wpp_and_express_checkout/api_username" value="" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,26 @@
<field name="payment/braintree_section/braintree/braintree_required/merchant_id" xsi:type="array">
<item name="scope" xsi:type="string">payment</item>
<item name="scope_id" xsi:type="number">1</item>
<item name="label" xsi:type="string">PAYMENT_BRAINTREE_MERCHANT_ID</item>
<item name="value" xsi:type="string">PAYMENT_BRAINTREE_MERCHANT_ID</item>
<item name="label" xsi:type="string">Merchant ID</item>
<item name="value" xsi:type="string">%braintree_disabled_fraud_merchant_id%</item>
</field>
<field name="payment/braintree_section/braintree/braintree_required/public_key" xsi:type="array">
<item name="scope" xsi:type="string">payment</item>
<item name="scope_id" xsi:type="number">1</item>
<item name="label" xsi:type="string">PAYMENT_PAYMENT_BRAINTREE_PUBLIC_KEY</item>
<item name="value" xsi:type="string">PAYMENT_PAYMENT_BRAINTREE_PUBLIC_KEY</item>
<item name="label" xsi:type="string">Public Key</item>
<item name="value" xsi:type="string">%braintree_disabled_fraud_public_key%</item>
</field>
<field name="payment/braintree_section/braintree/braintree_required/private_key" xsi:type="array">
<item name="scope" xsi:type="string">payment</item>
<item name="scope_id" xsi:type="number">1</item>
<item name="label" xsi:type="string">PAYMENT_BRAINTREE_PRIVATE_KEY</item>
<item name="value" xsi:type="string">PAYMENT_BRAINTREE_PRIVATE_KEY</item>
<item name="label" xsi:type="string">Private Key</item>
<item name="value" xsi:type="string">%braintree_disabled_fraud_private_key%</item>
</field>
<field name="payment/braintree_section/braintree/braintree_advanced/merchant_account_id" xsi:type="array">
<item name="scope" xsi:type="string">payment</item>
<item name="scope_id" xsi:type="number">1</item>
<item name="label" xsi:type="string">PAYMENT_BRAINTREE_MERCHANT_ACCOUNT_ID</item>
<item name="value" xsi:type="string">PAYMENT_BRAINTREE_MERCHANT_ACCOUNT_ID</item>
<item name="label" xsi:type="string">Merchant Account ID</item>
<item name="value" xsi:type="string">%braintree_disabled_fraud_merchant_account_id%</item>
</field>
<field name="payment/braintree_section/braintree/braintree_required/payment_action" xsi:type="array">
<item name="scope" xsi:type="string">payment</item>
Expand All @@ -51,6 +51,7 @@
<item name="value" xsi:type="number">1</item>
</field>
</dataset>

<dataset name="braintree_rollback">
<field name="payment/braintree/active" xsi:type="array">
<item name="scope" xsi:type="string">payment</item>
Expand All @@ -59,6 +60,16 @@
<item name="value" xsi:type="number">0</item>
</field>
</dataset>

<dataset name="braintree_incorrect_merchant_account_id">
<field name="payment/braintree_section/braintree/braintree_advanced/merchant_account_id" xsi:type="array">
<item name="scope" xsi:type="string">payment</item>
<item name="scope_id" xsi:type="number">1</item>
<item name="label" xsi:type="string">Merchant Account ID</item>
<item name="value" xsi:type="string">incorrect</item>
</field>
</dataset>

<dataset name="braintree_sale">
<field name="payment/braintree/payment_action" xsi:type="array">
<item name="scope" xsi:type="string">payment</item>
Expand All @@ -67,6 +78,7 @@
<item name="value" xsi:type="string">authorize_capture</item>
</field>
</dataset>

<dataset name="braintree_3d_secure">
<field name="payment/braintree_section/braintree/braintree_3dsecure/verify_3dsecure" xsi:type="array">
<item name="scope" xsi:type="string">payment</item>
Expand All @@ -75,6 +87,7 @@
<item name="value" xsi:type="number">1</item>
</field>
</dataset>

<dataset name="braintree_3d_secure_rollback">
<field name="payment/braintree_section/braintree/braintree_3dsecure/verify_3dsecure" xsi:type="array">
<item name="scope" xsi:type="string">payment</item>
Expand All @@ -83,6 +96,7 @@
<item name="value" xsi:type="number">0</item>
</field>
</dataset>

<dataset name="braintree_3d_secure_uk">
<field name="payment/braintree/verify_3dsecure" xsi:type="array">
<item name="scope" xsi:type="string">payment</item>
Expand All @@ -107,6 +121,7 @@
</item>
</field>
</dataset>

<dataset name="braintree_3d_secure_uk_rollback">
<field name="payment/braintree_section/braintree/braintree_3dsecure/verify_3dsecure" xsi:type="array">
<item name="scope" xsi:type="string">payment</item>
Expand All @@ -121,6 +136,7 @@
<item name="value" xsi:type="number">0</item>
</field>
</dataset>

<dataset name="braintree_3d_secure_not_triggered_due_threshold">
<field name="payment/braintree/verify_3dsecure" xsi:type="array">
<item name="scope" xsi:type="string">payment</item>
Expand All @@ -135,6 +151,7 @@
<item name="value" xsi:type="number">300</item>
</field>
</dataset>

<dataset name="braintree_3d_secure_not_triggered_due_threshold_rollback">
<field name="payment/braintree/verify_3dsecure" xsi:type="array">
<item name="scope" xsi:type="string">payment</item>
Expand All @@ -143,6 +160,7 @@
<item name="value" xsi:type="number">0</item>
</field>
</dataset>

<dataset name="braintree_use_vault">
<field name="payment/braintree_section/braintree/braintree_cc_vault_active" xsi:type="array">
<item name="scope" xsi:type="string">payment</item>
Expand All @@ -151,6 +169,7 @@
<item name="value" xsi:type="number">1</item>
</field>
</dataset>

<dataset name="braintree_use_vault_rollback">
<field name="payment/braintree_section/braintree/braintree_cc_vault_active" xsi:type="array">
<item name="scope" xsi:type="string">payment</item>
Expand All @@ -159,6 +178,7 @@
<item name="value" xsi:type="number">0</item>
</field>
</dataset>

<dataset name="braintree_paypal">
<field name="payment/braintree_section/braintree/active_braintree_paypal" xsi:type="array">
<item name="scope" xsi:type="string">payment</item>
Expand All @@ -173,6 +193,7 @@
<item name="value" xsi:type="string">authorize</item>
</field>
</dataset>

<dataset name="braintree_paypal_rollback">
<field name="payment/braintree_section/braintree/active_braintree_paypal" xsi:type="array">
<item name="scope" xsi:type="string">payment</item>
Expand All @@ -181,14 +202,31 @@
<item name="value" xsi:type="number">0</item>
</field>
</dataset>

<dataset name="braintree_paypal_sale">
<field name="payment/braintree_section/braintree/active_braintree_paypal" xsi:type="array">
<item name="scope" xsi:type="string">payment</item>
<item name="scope_id" xsi:type="number">1</item>
<item name="label" xsi:type="string">Yes</item>
<item name="value" xsi:type="number">1</item>
</field>
<field name="payment/braintree_section/braintree/braintree_paypal/payment_action" xsi:type="array">
<item name="scope" xsi:type="string">payment</item>
<item name="scope_id" xsi:type="number">1</item>
<item name="label" xsi:type="string">Authorize and Capture</item>
<item name="value" xsi:type="string">authorize_capture</item>
</field>
</dataset>

<dataset name="braintree_paypal_sale_rollback">
<field name="payment/braintree_section/braintree/active_braintree_paypal" xsi:type="array">
<item name="scope" xsi:type="string">payment</item>
<item name="scope_id" xsi:type="number">1</item>
<item name="label" xsi:type="string">No</item>
<item name="value" xsi:type="number">0</item>
</field>
</dataset>

<dataset name="braintree_paypal_skip_order_review">
<field name="payment/braintree_section/braintree/braintree_paypal/skip_order_review" xsi:type="array">
<item name="scope" xsi:type="string">payment</item>
Expand All @@ -197,6 +235,7 @@
<item name="value" xsi:type="number">1</item>
</field>
</dataset>

<dataset name="braintree_paypal_skip_order_review_rollback">
<field name="payment/braintree_section/braintree/braintree_paypal/skip_order_review" xsi:type="array">
<item name="scope" xsi:type="string">payment</item>
Expand All @@ -205,6 +244,7 @@
<item name="value" xsi:type="number">0</item>
</field>
</dataset>

<dataset name="braintree_paypal_use_vault">
<field name="payment/braintree_section/braintree/braintree_paypal/braintree_paypal_vault_active" xsi:type="array">
<item name="scope" xsi:type="string">payment</item>
Expand All @@ -213,6 +253,7 @@
<item name="value" xsi:type="number">1</item>
</field>
</dataset>

<dataset name="braintree_paypal_use_vault_rollback">
<field name="payment/braintree_section/braintree/braintree_paypal/braintree_paypal_vault_active" xsi:type="array">
<item name="scope" xsi:type="string">payment</item>
Expand All @@ -221,6 +262,7 @@
<item name="value" xsi:type="number">0</item>
</field>
</dataset>

<dataset name="braintree_fraudprotection">
<field name="payment/braintree/fraudprotection" xsi:type="array">
<item name="scope" xsi:type="string">payment</item>
Expand All @@ -229,6 +271,7 @@
<item name="value" xsi:type="number">1</item>
</field>
</dataset>

<dataset name="braintree_fraudprotection_rollback">
<field name="payment/braintree/fraudprotection" xsi:type="array">
<item name="scope" xsi:type="string">payment</item>
Expand All @@ -237,5 +280,59 @@
<item name="value" xsi:type="number">0</item>
</field>
</dataset>

<dataset name="braintree_fraud_tool_enabled_account">
<field name="payment/braintree_section/braintree/braintree_required/merchant_id" xsi:type="array">
<item name="scope" xsi:type="string">payment</item>
<item name="scope_id" xsi:type="number">1</item>
<item name="label" xsi:type="string">Merchant ID</item>
<item name="value" xsi:type="string">%braintree_enabled_fraud_merchant_id%</item>
</field>
<field name="payment/braintree_section/braintree/braintree_required/public_key" xsi:type="array">
<item name="scope" xsi:type="string">payment</item>
<item name="scope_id" xsi:type="number">1</item>
<item name="label" xsi:type="string">Public Key</item>
<item name="value" xsi:type="string">%braintree_enabled_fraud_public_key%</item>
</field>
<field name="payment/braintree_section/braintree/braintree_required/private_key" xsi:type="array">
<item name="scope" xsi:type="string">payment</item>
<item name="scope_id" xsi:type="number">1</item>
<item name="label" xsi:type="string">Private Key</item>
<item name="value" xsi:type="string">%braintree_enabled_fraud_private_key%</item>
</field>
<field name="payment/braintree_section/braintree/braintree_advanced/merchant_account_id" xsi:type="array">
<item name="scope" xsi:type="string">payment</item>
<item name="scope_id" xsi:type="number">1</item>
<item name="label" xsi:type="string">Merchant Account ID</item>
<item name="value" xsi:type="string">%braintree_enabled_fraud_merchant_account_id%</item>
</field>
<field name="payment/braintree_section/braintree/braintree_required/payment_action" xsi:type="array">
<item name="scope" xsi:type="string">payment</item>
<item name="scope_id" xsi:type="number">1</item>
<item name="label" xsi:type="string">Authorize</item>
<item name="value" xsi:type="string">authorize</item>
</field>
<field name="payment/braintree_section/braintree/braintree_advanced/debug" xsi:type="array">
<item name="scope" xsi:type="string">payment</item>
<item name="scope_id" xsi:type="number">1</item>
<item name="label" xsi:type="string">Yes</item>
<item name="value" xsi:type="number">1</item>
</field>
<field name="payment/braintree_section/braintree/active" xsi:type="array">
<item name="scope" xsi:type="string">payment</item>
<item name="scope_id" xsi:type="number">1</item>
<item name="label" xsi:type="string">Yes</item>
<item name="value" xsi:type="number">1</item>
</field>
</dataset>

<dataset name="braintree_fraud_tool_enabled_account_rollback">
<field name="payment/braintree/active" xsi:type="array">
<item name="scope" xsi:type="string">payment</item>
<item name="scope_id" xsi:type="number">1</item>
<item name="label" xsi:type="string">No</item>
<item name="value" xsi:type="number">0</item>
</field>
</dataset>
</repository>
</config>
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,26 @@
<field name="credit_card_exp_year" xsi:type="string">2020</field>
<field name="cvv" xsi:type="string">123</field>
</dataset>

<dataset name="visa_braintree_3dsecure">
<field name="credit_card_number" xsi:type="string">4000000000000002</field>
<field name="credit_card_exp_month" xsi:type="string">01</field>
<field name="credit_card_exp_year" xsi:type="string">20</field>
<field name="cvv" xsi:type="string">123</field>
</dataset>

<dataset name="visa_braintree_3dsecure_failed">
<field name="credit_card_number" xsi:type="string">4000000000000028</field>
<field name="credit_card_exp_month" xsi:type="string">01</field>
<field name="credit_card_exp_year" xsi:type="string">2020</field>
<field name="cvv" xsi:type="string">123</field>
</dataset>

<dataset name="visa_braintree_fraud_rejected">
<field name="credit_card_number" xsi:type="string">4000111111111511</field>
<field name="credit_card_exp_month" xsi:type="string">01</field>
<field name="credit_card_exp_year" xsi:type="string">2020</field>
<field name="cvv" xsi:type="string">123</field>
</dataset>
</repository>
</config>
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,28 @@
<constraint name="Magento\Sales\Test\Constraint\AssertCaptureInCommentsHistory" />
<constraint name="Magento\Sales\Test\Constraint\AssertOrderInOrdersGridOnFrontend" />
</variation>
<variation name="CreateOrderBackendTestBraintreeVariation3" summary="Checkout with Braintree Credit Card from Admin (Basic Fraud Protection)" ticketId="MAGETWO-46470">
<data name="tag" xsi:type="string">test_type:3rd_party_test, severity:S0</data>
<data name="products/0" xsi:type="string">catalogProductSimple::product_10_dollar</data>
<data name="products/1" xsi:type="string">configurableProduct::with_one_option</data>
<data name="products/2" xsi:type="string">bundleProduct::bundle_fixed_100_dollar_product</data>
<data name="customer/dataset" xsi:type="string">default</data>
<data name="taxRule" xsi:type="string">us_ca_ny_rule</data>
<data name="billingAddress/dataset" xsi:type="string">US_address_1_without_email</data>
<data name="saveAddress" xsi:type="string">No</data>
<data name="shipping/shipping_service" xsi:type="string">Flat Rate</data>
<data name="shipping/shipping_method" xsi:type="string">Fixed</data>
<data name="prices" xsi:type="array">
<item name="grandTotal" xsi:type="string">145.98</item>
</data>
<data name="payment/method" xsi:type="string">braintree</data>
<data name="creditCardClass" xsi:type="string">credit_card_braintree</data>
<data name="creditCard/dataset" xsi:type="string">visa_braintree_fraud_rejected</data>
<data name="configData" xsi:type="string">braintree</data>
<data name="status" xsi:type="string">Processing</data>
<constraint name="Magento\Sales\Test\Constraint\AssertOrderSuccessCreateMessage" />
<constraint name="Magento\Sales\Test\Constraint\AssertOrderStatusIsCorrect" />
<constraint name="Magento\Sales\Test\Constraint\AssertOrderInOrdersGridOnFrontend" />
</variation>
</testCase>
</config>
Loading

0 comments on commit d40ab32

Please sign in to comment.