better named tests and log local-docker params
parent
fa0bd4c908
commit
8852bd0813
|
|
@ -65,25 +65,23 @@ describe('Cloud Runner Sync Environments', () => {
|
||||||
value: buildParameter[x],
|
value: buildParameter[x],
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
const combined = [...environmentVariables, ...secrets, ...buildParametersAsEnvironmentVariables];
|
const combined = [...environmentVariables, ...secrets, ...buildParametersAsEnvironmentVariables]
|
||||||
|
.filter((element) => element.value !== undefined && element.value !== '' && typeof element.value !== 'function')
|
||||||
|
.map((x) => {
|
||||||
|
if (typeof x.value === `string`) {
|
||||||
|
x.value = x.value.replace(/\s+/g, '');
|
||||||
|
}
|
||||||
|
|
||||||
|
return x;
|
||||||
|
})
|
||||||
|
.filter((element) => {
|
||||||
|
return !['UNITY_LICENSE'].includes(element.name);
|
||||||
|
});
|
||||||
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 combined) {
|
for (const element of combined) {
|
||||||
if (element.value !== undefined && typeof element.value !== 'function') {
|
|
||||||
if (typeof element.value === `string`) {
|
|
||||||
element.value = element.value.replace(/\s+/g, '');
|
|
||||||
}
|
|
||||||
CloudRunnerLogger.log(`checking input/build param ${element.name} ${element.value}`);
|
CloudRunnerLogger.log(`checking input/build param ${element.name} ${element.value}`);
|
||||||
}
|
|
||||||
}
|
|
||||||
for (const element of combined) {
|
|
||||||
if (
|
|
||||||
element.value !== undefined &&
|
|
||||||
element.value !== '' &&
|
|
||||||
typeof element.value !== 'function' &&
|
|
||||||
!['UNITY_LICENSE'].includes(element.name)
|
|
||||||
) {
|
|
||||||
expect(newLinePurgedFile).toContain(`${element.name}`);
|
expect(newLinePurgedFile).toContain(`${element.name}`);
|
||||||
CloudRunnerLogger.log(`Contains ${element.name}`);
|
CloudRunnerLogger.log(`Contains ${element.name}`);
|
||||||
const fullNameEqualValue = `${element.name}=${element.value}`;
|
const fullNameEqualValue = `${element.name}=${element.value}`;
|
||||||
|
|
@ -94,7 +92,6 @@ describe('Cloud Runner Sync Environments', () => {
|
||||||
// newLinePurgedFile.replace(fullNameEqualValue, '').replace(`GAMECI-${fullNameEqualValue}`, ''),
|
// newLinePurgedFile.replace(fullNameEqualValue, '').replace(`GAMECI-${fullNameEqualValue}`, ''),
|
||||||
// ).not.toContain(fullNameEqualValue);
|
// ).not.toContain(fullNameEqualValue);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}, 10000000);
|
}, 10000000);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue