MCPcopy Create free account
hub / github.com/cypress-io/cypress / validateEncryptionFile

Function validateEncryptionFile

scripts/binary/binary-sources.js:66–72  ·  view source on GitHub ↗
(encryptionFilePath)

Source from the content-addressed store, hash-verified

64}
65
66const 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
74const getCloudEnvironmentFileSource = async (cloudApiFilePath) => {
75 const fileContents = await fs.readFile(cloudApiFilePath, 'utf8')

Callers

nothing calls this directly

Calls 1

readFileMethod · 0.80

Tested by

no test coverage detected