-
Notifications
You must be signed in to change notification settings - Fork 132
MQE-1600: MFTF Vault integration #382
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
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.
Initial Review, overall implementation and design decisions are good, just needs clarification and some small fixes.
src/Magento/FunctionalTestingFramework/DataGenerator/Handlers/CredentialStore.php
Show resolved
Hide resolved
src/Magento/FunctionalTestingFramework/DataGenerator/Handlers/CredentialStore.php
Outdated
Show resolved
Hide resolved
src/Magento/FunctionalTestingFramework/DataGenerator/Handlers/CredentialStore.php
Outdated
Show resolved
Hide resolved
src/Magento/FunctionalTestingFramework/DataGenerator/Handlers/CredentialStore.php
Outdated
Show resolved
Hide resolved
src/Magento/FunctionalTestingFramework/DataGenerator/Handlers/CredentialStore.php
Outdated
Show resolved
Hide resolved
src/Magento/FunctionalTestingFramework/DataGenerator/Handlers/SecretStorage/VaultStorage.php
Show resolved
Hide resolved
src/Magento/FunctionalTestingFramework/DataGenerator/Handlers/SecretStorage/VaultStorage.php
Outdated
Show resolved
Hide resolved
src/Magento/FunctionalTestingFramework/DataGenerator/Handlers/SecretStorage/VaultStorage.php
Outdated
Show resolved
Hide resolved
src/Magento/FunctionalTestingFramework/DataGenerator/Handlers/SecretStorage/VaultStorage.php
Outdated
Show resolved
Hide resolved
src/Magento/FunctionalTestingFramework/Test/Util/ActionMergeUtil.php
Outdated
Show resolved
Hide resolved
Two things:
|
- prefer credentials from local file over vault - address review comments
- prefer credentials from local file over vault - address review comments
- prefer credentials from local file over vault - address review comments
- Downgrade vault php version to be compatible to php 7.0
|
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.
Changes look like they work, just need minor restructure for simplicity and code readability.
src/Magento/FunctionalTestingFramework/DataGenerator/Handlers/CredentialStore.php
Outdated
Show resolved
Hide resolved
src/Magento/FunctionalTestingFramework/DataGenerator/Handlers/CredentialStore.php
Outdated
Show resolved
Hide resolved
} catch (TestFrameworkException $e) { | ||
} | ||
} | ||
|
||
// Initialize file storage | ||
try { | ||
$this->credFile = new FileStorage(); | ||
$this->credStorage[self::ARRAY_KEY_FOR_FILE] = new FileStorage(); | ||
} catch (TestFrameworkException $e) { |
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.
Log the exception so that we can see that FileStorage failed to initialize: <message>
. Do the same for Vault.
That way, if it fails in a build or something we can refer to the logs to see what did and didn't initialize properly.
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.
I think the exceptions are already logged in FileStorage and VaultStorage.
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.
Sure, but human readable statements will make the log more useful. Instead of just seeing a failure message, you see that the credential store is not using a specific method.
src/Magento/FunctionalTestingFramework/DataGenerator/Handlers/CredentialStore.php
Show resolved
Hide resolved
- Simplify the logic to handle the storage 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.
Initial integration looks good. Works with local, vault, and several mixtures as expected, fallback mechanisms work as required.
Are we including documentation on this change in this PR?
Revert "Merge pull request #382 from magento/MQE-1600"
ACQE-6085 : Static check for class and file name mismatch
Description
Fixed Issues (if relevant)
Contribution checklist