Skip to content

Reference secret data outside of fill field actions #280

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

Closed
lazyguru opened this issue Nov 21, 2018 · 2 comments
Closed

Reference secret data outside of fill field actions #280

lazyguru opened this issue Nov 21, 2018 · 2 comments
Assignees

Comments

@lazyguru
Copy link

Currently you can only reference credentials (secret data) in fill field actions. Instead, it should be possible to access this data from magentoCLI calls as well

Preconditions

  1. Create a credentials file and add values to it

Steps to reproduce

  1. In a block (either in a test or in a suite) add <magentoCLI command="config:set some/secret/password {{_CREDS.mySecretPassword}}" stepKey="SetSecretPassword"/>
  2. Attempt to generate the suite/test bin/mftf generate:suite MySuite

Expected result

  1. Tests should be generated

Actual result

  1. Error message:
In ActionMergeUtil.php line 112:

  You cannot reference secret data outside of fill field actions


generate:suite [-r|--remove] [--] <suites> (<suites>)...
@KevinBKozan
Copy link
Contributor

@lazyguru thank you for submitting this issue! We created internal ticket MQE-1368 to track and resolve this issue.

@ivy00johns ivy00johns self-assigned this Jun 12, 2019
@tomreece
Copy link
Contributor

tomreece commented Oct 7, 2019

As of MFTF 2.4.3 this request has been resolved.

Internal tickets for reference:
https://jira.corp.magento.com/browse/MQE-1368
https://jira.corp.magento.com/browse/MQE-1427

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants