(encryptionFilePath)
| 64 | } |
| 65 | |
| 66 | const validateEncryptionFile = async (encryptionFilePath) => { |
| 67 | const afterReplaceEncryption = await fs.readFile(encryptionFilePath, 'utf8') |
| 68 | |
| 69 | if (afterReplaceEncryption.includes('CY_TEST')) { |
| 70 | throw new Error(`Expected test key to be stripped from cloud encryption file`) |
| 71 | } |
| 72 | } |
| 73 | |
| 74 | const getCloudEnvironmentFileSource = async (cloudApiFilePath) => { |
| 75 | const fileContents = await fs.readFile(cloudApiFilePath, 'utf8') |