You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you test functionality that involves external services such as UPS, FedEx, PayPal, or SignifyD, use the MFTF credentials feature to hide sensitive [data][] like integration tokens and API keys.
3
+
When you test functionality that involves external services such as UPS, FedEx, PayPal, or SignifyD,
4
+
use the MFTF credentials feature to hide sensitive [data][] like integration tokens and API keys.
4
5
5
-
## Define sensitive data in `.credentials`
6
+
Currently MFTF supports two types of credential storage: **.credentials file** and **HashiCorp vault**.
7
+
8
+
# Configure File Storage
6
9
7
10
The MFTF creates a sample file for credentials during [initial setup][]: `magento2/dev/tests/acceptance/.credentials.example`.
8
11
The file contains an example list of keys for fields that can require credentials.
@@ -33,49 +36,119 @@ The command outputs the path if the file is excluded:
33
36
.credentials
34
37
```
35
38
36
-
### Define sensitive data
39
+
### Define sensitive data in `.credentials` file
37
40
38
-
Open the `.credentials` file, uncomment the fields you want to use, and add your values:
41
+
Open the `.credentials` file, for Magento core credentials, uncomment the fields you want to use, and add your values:
39
42
40
-
```config
43
+
```conf
41
44
...
42
45
# Credentials for the USPS service
43
-
carriers_usps_userid=test_user
44
-
carriers_usps_password=Lmgxvrq89uPwECeV
46
+
magento/carriers_usps_userid=usps_test_user
47
+
magento/carriers_usps_password=Lmgxvrq89uPwECeV
45
48
46
49
# Credentials for the DHL service
47
-
#carriers/dhl/id_us=
48
-
#carriers/dhl/password_us=
50
+
#magento/carriers_dhl_id_us=dhl_test_user
51
+
#magento/carriers_dhl_password_us=Mlgxv3dsagVeG
49
52
....
53
+
```
54
+
55
+
Or add new key & value pairs for your own credentials. The keys use the following format:
0 commit comments