-
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
Conversation
- Adding new logic to support _CREDS in magentoCLI, createData and updateData.
- Removing "updateData", does NOT contain a <field>.
- Correcting the magentoCLI action when secret data is present. - Adding support for createData when secret data is present.
Working on the Travis CI build issues now. |
- Adding a missing annotation to a doc block. - Adjusting line lengths. - Replaced array with short array.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall idea and design is in the right direction, just had a few thoughts about simplifying some of the code structure!
Also, please add new verification
tests to test the secret field implementation (I don't think we have a test dedicated to secret
actions, would be a good place to start one).
src/Magento/FunctionalTestingFramework/Test/Util/ActionMergeUtil.php
Outdated
Show resolved
Hide resolved
src/Magento/FunctionalTestingFramework/Test/Util/ActionMergeUtil.php
Outdated
Show resolved
Hide resolved
src/Magento/FunctionalTestingFramework/Test/Util/ActionMergeUtil.php
Outdated
Show resolved
Hide resolved
src/Magento/FunctionalTestingFramework/Test/Util/ActionMergeUtil.php
Outdated
Show resolved
Hide resolved
- Adjusting line lengths.
- Replacing getter functions with a variable.
- Removing duplicate function.
- Adding docblock description.
- Replacing my logic for decrypting the value with existing logic I was unaware of.
- Replacing my logic with a cleaner version.
- Correcting exception.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two small things you forgot to include in your commits I believe.
Also, please create a new verification test to test all of the available secret
actions
src/Magento/FunctionalTestingFramework/Test/Util/ActionMergeUtil.php
Outdated
Show resolved
Hide resolved
src/Magento/FunctionalTestingFramework/Test/Util/ActionMergeUtil.php
Outdated
Show resolved
Hide resolved
- Removing unused function.
- Adding const. - Referencing const values.
Corrected Kevin's comments minus the Verification Test. Working on that now. |
- Correcting a failing static test. Assert was not properly configured originally.
- Adding verification test.
- Correcting if logic for non-secret actions.
- Correcting static test.
- Correcting ActionMergeUtil so it doesn't use fillSecretField when the creds aren't present.
- Correcting an issue in the verification test.
- Updating verification test so it is compatible with the latest version of the Test Generator.
- Correcting verification test issues.
- Adding unit tests.
- Correcting line lengths for the Travis CI build.
src/Magento/FunctionalTestingFramework/Test/Util/ActionMergeUtil.php
Outdated
Show resolved
Hide resolved
src/Magento/FunctionalTestingFramework/Module/MagentoWebDriver.php
Outdated
Show resolved
Hide resolved
src/Magento/FunctionalTestingFramework/Module/MagentoWebDriver.php
Outdated
Show resolved
Hide resolved
- Correcting Travis CI issues regarding multi line functions.
- Correcting multiline function errors in Travis CI. - Updating the function signature for the CLI function to match the other CLI function casing. - Adding new function to properly decrypt CLI actions. - Adding MagentoCLISecret to the ActionMergeUtil.
- Correcting verification test issue due to casing.
- Correcting spacing issues.
- Correcting verification test issues.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2 Small changes, plus one change to PersistedObjectHandler.php
:
In createEntity()
you'll need to loop through them and use the new decryptAllSecretsInString()
function.
src/Magento/FunctionalTestingFramework/DataGenerator/Handlers/CredentialStore.php
Outdated
Show resolved
Hide resolved
src/Magento/FunctionalTestingFramework/Module/MagentoWebDriver.php
Outdated
Show resolved
Hide resolved
- Correcting verification test issues around extra new lines. Removed the extra new lines.
- Adding missing parentheses.
- Adding missing return.
- Correcting an issue around null values in the PersistedObjectHandler.
Changes submitted for the PersistedObjectHandler. |
- Correcting verification tests by replacing null with [].
-Correcting final verification tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
QA and CR complete, feature is good to go 👍
ACQE-5871: Add ability to increase default MagentoCLI timeout
Description
<magentoCLI>
and<createData>
actions.Contribution checklist