Skip to content

Commit bb62cfe

Browse files
committed
MQE-1918: MFTF AWS Secrets Manager - Local Use
1 parent d0d9805 commit bb62cfe

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Magento/FunctionalTestingFramework/DataGenerator/Handlers/CredentialStore.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@ class CredentialStore
1818
const ARRAY_KEY_FOR_FILE = 'file';
1919
const ARRAY_KEY_FOR_AWS_SECRETS_MANAGER = 'aws';
2020

21-
const CREDENTIAL_STORAGE_INFO = 'MFTF uses Credential Storage in the following precedence: '
22-
. '.credentials file, HashiCorp Vault and AWS Secrets Manager. '
23-
. 'You need to configure at least one to use _CREDS in tests.';
21+
const CREDENTIAL_STORAGE_INFO = 'You need to configure at least one of these options: '
22+
. '.credentials file, HashiCorp Vault or AWS Secrets Manager correctly';
2423

2524
/**
2625
* Credential storage array
@@ -95,7 +94,7 @@ private function __construct()
9594

9695
if (empty($this->credStorage)) {
9796
throw new TestFrameworkException(
98-
'Invalid Credential Storage. ' . self::CREDENTIAL_STORAGE_INFO
97+
'Invalid Credential Storage. ' . self::CREDENTIAL_STORAGE_INFO . '.'
9998
);
10099
}
101100
}
@@ -119,7 +118,8 @@ public function getSecret($key)
119118
}
120119

121120
throw new TestFrameworkException(
122-
"{$key} not found. " . self::CREDENTIAL_STORAGE_INFO . ' And make sure key/value exists.'
121+
"{$key} not found. " . self::CREDENTIAL_STORAGE_INFO
122+
. ' and ensure key, value exists to use _CREDS in tests.'
123123
);
124124
}
125125

0 commit comments

Comments
 (0)