Fix cloud runner test - format secret names for validation
parent
d0b850169b
commit
c5a37b5086
|
|
@ -61,7 +61,7 @@ describe('Cloud Runner', () => {
|
||||||
const newLinePurgedFile = file
|
const newLinePurgedFile = file
|
||||||
.replace(/\s+/g, '')
|
.replace(/\s+/g, '')
|
||||||
.replace(new RegExp(`\\[${CloudRunnerStatics.logPrefix}\\]`, 'g'), '');
|
.replace(new RegExp(`\\[${CloudRunnerStatics.logPrefix}\\]`, 'g'), '');
|
||||||
for (const element of environmentVariables) {
|
for (const element of [...environmentVariables, ...secrets]) {
|
||||||
if (element.value !== undefined && typeof element.value !== 'function') {
|
if (element.value !== undefined && typeof element.value !== 'function') {
|
||||||
if (typeof element.value === `string`) {
|
if (typeof element.value === `string`) {
|
||||||
element.value = element.value.replace(/\s+/g, '');
|
element.value = element.value.replace(/\s+/g, '');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue