Expect build params in remote client as json

pull/310/head
Frostebite 2021-12-23 17:54:08 +00:00
parent d6d79a3bf9
commit 7c00e33d0e
1 changed files with 1 additions and 10 deletions

View File

@ -28,16 +28,7 @@ describe('Cloud Runner', () => {
const baseImage = new ImageTag(buildParameter);
await CloudRunner.run(buildParameter, baseImage.toString());
const file = fs.readFileSync(`${CloudRunnerState.buildGuid}-outputfile.txt`, 'utf-8').toString();
const buildParameterKeys = Object.keys(buildParameter);
for (const element of buildParameterKeys) {
if (buildParameter[element] !== undefined) {
if (file.includes(`${element}":"${buildParameter[element]}`)) {
expect(file).toContain(`${element}":"${buildParameter[element]}`);
} else {
expect(file).toContain(`${element}":${buildParameter[element]}`);
}
}
}
expect(file).toContain(JSON.stringify(buildParameter));
const inputKeys = Object.getOwnPropertyNames(Input);
for (const element of inputKeys) {
if (Input[element] !== undefined) {