-
Notifications
You must be signed in to change notification settings - Fork 132
MQE-1427 - Support _CREDS in <magentoCLI> action and in Data #368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 35 commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
66fb4c2
MQE-1427: Support _CREDS in <magentoCLI> action and in Data
ivy00johns 55e6421
MQE-1427: Support _CREDS in <magentoCLI> action and in Data
ivy00johns 5fc6347
MQE-1427: Support _CREDS in <magentoCLI> action and in Data
ivy00johns 052e15d
Merge branch 'develop' into MQE-1427
ivy00johns d9060d7
MQE-1427: Support _CREDS in <magentoCLI> action and in Data
ivy00johns 98480cf
Merge remote-tracking branch 'origin/MQE-1427' into MQE-1427
ivy00johns 6dcd2f4
MQE-1427: Support _CREDS in <magentoCLI> action and in Data
ivy00johns 7b8de7e
MQE-1427: Support _CREDS in <magentoCLI> action and in Data
ivy00johns acf87b6
MQE-1427: Support _CREDS in <magentoCLI> action and in Data
ivy00johns ecb5a8a
Merge branch 'develop' into MQE-1427
ivy00johns b0e821f
MQE-1427: Support _CREDS in <magentoCLI> action and in Data
ivy00johns bffe7d6
Merge remote-tracking branch 'origin/MQE-1427' into MQE-1427
ivy00johns 847e5ff
MQE-1427: Support _CREDS in <magentoCLI> action and in Data
ivy00johns eeb174a
MQE-1427: Support _CREDS in <magentoCLI> action and in Data
ivy00johns 352b660
MQE-1427: Support _CREDS in <magentoCLI> action and in Data
ivy00johns 0eaaa01
MQE-1427: Support _CREDS in <magentoCLI> action and in Data
ivy00johns f83c893
MQE-1427: Support _CREDS in <magentoCLI> action and in Data
ivy00johns 2d5e178
MQE-1427: Support _CREDS in <magentoCLI> action and in Data
ivy00johns 7c837c3
Merge branch 'develop' into MQE-1427
ivy00johns 7a1a4e5
MQE-1427: Support _CREDS in <magentoCLI> action and in Data
ivy00johns e4ddde9
Merge remote-tracking branch 'origin/MQE-1427' into MQE-1427
ivy00johns ad99e96
MQE-1427: Support _CREDS in <magentoCLI> action and in Data
ivy00johns 0cd5a47
Merge branch 'develop' into MQE-1427
ivy00johns d1b3be3
MQE-1427: Support _CREDS in <magentoCLI> action and in Data
ivy00johns 6cf6400
MQE-1427: Support _CREDS in <magentoCLI> action and in Data
ivy00johns 1e22a8c
MQE-1427: Support _CREDS in <magentoCLI> action and in Data
ivy00johns fd66a0c
MQE-1427: Support _CREDS in <magentoCLI> action and in Data
ivy00johns 537b404
MQE-1427: Support _CREDS in <magentoCLI> action and in Data
ivy00johns 82a80c6
MQE-1427: Support _CREDS in <magentoCLI> action and in Data
ivy00johns c38ab37
MQE-1427: Support _CREDS in <magentoCLI> action and in Data
ivy00johns a07275f
MQE-1427: Support _CREDS in <magentoCLI> action and in Data
ivy00johns 9510135
MQE-1427: Support _CREDS in <magentoCLI> action and in Data
ivy00johns 29b37f4
MQE-1427: Support _CREDS in <magentoCLI> action and in Data
ivy00johns 9f96927
MQE-1427: Support _CREDS in <magentoCLI> action and in Data
ivy00johns 3d2d857
MQE-1427: Support _CREDS in <magentoCLI> action and in Data
ivy00johns 8cd1a39
MQE-1427: Support _CREDS in <magentoCLI> action and in Data
ivy00johns 9ef7ea7
MQE-1427: Support _CREDS in <magentoCLI> action and in Data
ivy00johns 637c3eb
MQE-1427: Support _CREDS in <magentoCLI> action and in Data
ivy00johns 32fac0c
MQE-1427: Support _CREDS in <magentoCLI> action and in Data
ivy00johns cd0d237
MQE-1427: Support _CREDS in <magentoCLI> action and in Data
ivy00johns d103842
MQE-1427: Support _CREDS in <magentoCLI> action and in Data
ivy00johns c5286e6
Merge branch 'develop' into MQE-1427
KevinBKozan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
dev/tests/verification/TestModule/Test/SecretCredentialDataTest.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
--> | ||
|
||
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="../../../../../src/Magento/FunctionalTestingFramework/Test/etc/testSchema.xsd"> | ||
<test name="secretCredentialDataTest"> | ||
<createData entity="_defaultProduct" stepKey="createProductWithFieldOverridesUsingHardcodedData1"> | ||
<field key="qty">123</field> | ||
<field key="price">12.34</field> | ||
</createData> | ||
<createData entity="_defaultProduct" stepKey="createProductWithFieldOverridesUsingSecretCredData1"> | ||
<field key="qty">{{_CREDS.payment_authorizenet_trans_key}}</field> | ||
<field key="price">{{_CREDS.carriers_dhl_account_eu}}</field> | ||
</createData> | ||
|
||
<fillField selector="{{AdminLoginFormSection.username}}" userInput="Hardcoded" stepKey="fillFieldUsingHardCodedData1"/> | ||
<fillField selector="{{AdminLoginFormSection.username}}" userInput="{{_CREDS.carriers_dhl_id_eu}}" stepKey="fillFieldUsingSecretCredData1"/> | ||
|
||
<magentoCLI command="config:set cms/wysiwyg/enabled 0" stepKey="magentoCliUsingHardcodedData1"/> | ||
<magentoCLI command="config:set cms/wysiwyg/enabled {{_CREDS.payment_authorizenet_login}}" stepKey="magentoCliUsingSecretCredData1"/> | ||
</test> | ||
</tests> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
<?php | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
|
||
namespace Magento\AcceptanceTest\_default\Backend; | ||
|
||
use Magento\FunctionalTestingFramework\AcceptanceTester; | ||
use Magento\FunctionalTestingFramework\DataGenerator\Handlers\CredentialStore; | ||
use Magento\FunctionalTestingFramework\DataGenerator\Handlers\PersistedObjectHandler; | ||
use \Codeception\Util\Locator; | ||
use Yandex\Allure\Adapter\Annotation\Features; | ||
use Yandex\Allure\Adapter\Annotation\Stories; | ||
use Yandex\Allure\Adapter\Annotation\Title; | ||
use Yandex\Allure\Adapter\Annotation\Description; | ||
use Yandex\Allure\Adapter\Annotation\Parameter; | ||
use Yandex\Allure\Adapter\Annotation\Severity; | ||
use Yandex\Allure\Adapter\Model\SeverityLevel; | ||
use Yandex\Allure\Adapter\Annotation\TestCaseId; | ||
|
||
/** | ||
*/ | ||
class SecretCredentialDataTestCest | ||
{ | ||
/** | ||
* @Features({"AdminNotification"}) | ||
* @Parameter(name = "AcceptanceTester", value="$I") | ||
* @param AcceptanceTester $I | ||
* @return void | ||
* @throws \Exception | ||
*/ | ||
public function secretCredentialDataTest(AcceptanceTester $I) | ||
{ | ||
$createProductWithFieldOverridesUsingHardcodedData1Fields['qty'] = "123"; | ||
|
||
$createProductWithFieldOverridesUsingHardcodedData1Fields['price'] = "12.34"; | ||
|
||
$I->comment("[createProductWithFieldOverridesUsingHardcodedData1] create '_defaultProduct' entity"); | ||
PersistedObjectHandler::getInstance()->createEntity( | ||
"createProductWithFieldOverridesUsingHardcodedData1", | ||
"test", | ||
"_defaultProduct", | ||
[], | ||
$createProductWithFieldOverridesUsingHardcodedData1Fields | ||
); | ||
|
||
$createProductWithFieldOverridesUsingSecretCredData1Fields['qty'] = | ||
CredentialStore::getInstance()->getSecret("payment_authorizenet_trans_key"); | ||
|
||
$createProductWithFieldOverridesUsingSecretCredData1Fields['price'] = | ||
CredentialStore::getInstance()->getSecret("carriers_dhl_account_eu"); | ||
|
||
$I->comment("[createProductWithFieldOverridesUsingSecretCredData1] create '_defaultProduct' entity"); | ||
PersistedObjectHandler::getInstance()->createEntity( | ||
"createProductWithFieldOverridesUsingSecretCredData1", | ||
"test", | ||
"_defaultProduct", | ||
[], | ||
$createProductWithFieldOverridesUsingSecretCredData1Fields | ||
); | ||
|
||
$I->fillField("#username", "Hardcoded"); // stepKey: fillFieldUsingHardCodedData1 | ||
$I->fillSecretField("#username", CredentialStore::getInstance()->getSecret("carriers_dhl_id_eu")); | ||
// stepKey: fillFieldUsingSecretCredData1 | ||
$magentoCliUsingHardcodedData1 = $I->magentoCLI("config:set cms/wysiwyg/enabled 0"); | ||
// stepKey: magentoCliUsingHardcodedData1 | ||
$I->comment($magentoCliUsingHardcodedData1); | ||
|
||
$magentoCliUsingSecretCredData1 = $I->magentoCLI("config:set cms/wysiwyg/enabled " . | ||
CredentialStore::getInstance()->getSecret("payment_authorizenet_login")); | ||
// stepKey: magentoCliUsingSecretCredData1 | ||
$I->comment($magentoCliUsingSecretCredData1); | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.