better named tests and log local-docker params
parent
8852bd0813
commit
8b5361a914
|
|
@ -59,13 +59,7 @@ describe('Cloud Runner Sync Environments', () => {
|
||||||
value: x.ParameterValue,
|
value: x.ParameterValue,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
const buildParametersAsEnvironmentVariables = Object.keys(buildParameter).map((x) => {
|
const combined = [...environmentVariables, ...secrets]
|
||||||
return {
|
|
||||||
name: `GAMECI-${Input.ToEnvVarFormat(x)}`,
|
|
||||||
value: buildParameter[x],
|
|
||||||
};
|
|
||||||
});
|
|
||||||
const combined = [...environmentVariables, ...secrets, ...buildParametersAsEnvironmentVariables]
|
|
||||||
.filter((element) => element.value !== undefined && element.value !== '' && typeof element.value !== 'function')
|
.filter((element) => element.value !== undefined && element.value !== '' && typeof element.value !== 'function')
|
||||||
.map((x) => {
|
.map((x) => {
|
||||||
if (typeof x.value === `string`) {
|
if (typeof x.value === `string`) {
|
||||||
|
|
@ -85,7 +79,9 @@ describe('Cloud Runner Sync Environments', () => {
|
||||||
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}`;
|
||||||
|
const fullNamePrefixEqualValue = `GAMECI${fullNameEqualValue}`;
|
||||||
expect(newLinePurgedFile).toContain(fullNameEqualValue);
|
expect(newLinePurgedFile).toContain(fullNameEqualValue);
|
||||||
|
expect(newLinePurgedFile).toContain(fullNamePrefixEqualValue);
|
||||||
|
|
||||||
// should not contain more than once
|
// should not contain more than once
|
||||||
// expect(
|
// expect(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue