Skip to content

Commit cad424a

Browse files
Shashik.K.SinghShashik.K.Singh
authored andcommitted
throw error message if key value pair is not mapped properly in .credentials file
1 parent ba201f1 commit cad424a

File tree

1 file changed

+5
-0
lines changed
  • src/Magento/FunctionalTestingFramework/DataGenerator/Handlers/SecretStorage

1 file changed

+5
-0
lines changed

src/Magento/FunctionalTestingFramework/DataGenerator/Handlers/SecretStorage/FileStorage.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,11 @@ private function encryptCredFileContents($credContents)
101101
if (substr($credValue, 0, 1) === '#' || empty($credValue)) {
102102
continue;
103103
}
104+
elseif (is_bool(strpos($credValue, "="))){
105+
throw new TestFrameworkException(
106+
$credValue." not configured correctly in .credentials file"
107+
);
108+
}
104109

105110
list($key, $value) = explode("=", $credValue, 2);
106111
if (!empty($value)) {

0 commit comments

Comments
 (0)