better named tests and log local-docker params
parent
2721aba2b5
commit
af811a4caf
|
|
@ -2,7 +2,6 @@ import { BuildParameters } from '../..';
|
||||||
import { TaskParameterSerializer } from '../services/task-parameter-serializer';
|
import { TaskParameterSerializer } from '../services/task-parameter-serializer';
|
||||||
import UnityVersioning from '../../unity-versioning';
|
import UnityVersioning from '../../unity-versioning';
|
||||||
import { Cli } from '../../cli/cli';
|
import { Cli } from '../../cli/cli';
|
||||||
import CloudRunnerOptions from '../cloud-runner-options';
|
|
||||||
import GitHub from '../../github';
|
import GitHub from '../../github';
|
||||||
import setups from './cloud-runner-suite.test';
|
import setups from './cloud-runner-suite.test';
|
||||||
|
|
||||||
|
|
@ -22,28 +21,24 @@ describe('Cloud Runner Environment Serializer', () => {
|
||||||
setups();
|
setups();
|
||||||
const testSecretName = 'testSecretName';
|
const testSecretName = 'testSecretName';
|
||||||
const testSecretValue = 'testSecretValue';
|
const testSecretValue = 'testSecretValue';
|
||||||
it('Responds', () => {});
|
it('Task parameters serialize correctly', async () => {
|
||||||
|
// Setup parameters
|
||||||
if (CloudRunnerOptions.cloudRunnerTests) {
|
const buildParameter = await CreateParameters({
|
||||||
it('Task parameters serialize correctly', async () => {
|
versioning: 'None',
|
||||||
// Setup parameters
|
projectPath: 'test-project',
|
||||||
const buildParameter = await CreateParameters({
|
unityVersion: UnityVersioning.read('test-project'),
|
||||||
versioning: 'None',
|
targetPlatform: 'StandaloneLinux64',
|
||||||
projectPath: 'test-project',
|
customJob: `
|
||||||
unityVersion: UnityVersioning.read('test-project'),
|
- name: 'step 1'
|
||||||
targetPlatform: 'StandaloneLinux64',
|
image: 'alpine'
|
||||||
customJob: `
|
commands: 'printenv'
|
||||||
- name: 'step 1'
|
secrets:
|
||||||
image: 'alpine'
|
- name: '${testSecretName}'
|
||||||
commands: 'printenv'
|
value: '${testSecretValue}'
|
||||||
secrets:
|
`,
|
||||||
- name: '${testSecretName}'
|
|
||||||
value: '${testSecretValue}'
|
|
||||||
`,
|
|
||||||
});
|
|
||||||
|
|
||||||
const result = TaskParameterSerializer.readBuildParameters([], buildParameter);
|
|
||||||
expect(result.find((x) => Number.parseInt(x)) === undefined).toBeFalsy;
|
|
||||||
});
|
});
|
||||||
}
|
|
||||||
|
const result = TaskParameterSerializer.readBuildParameters([], buildParameter);
|
||||||
|
expect(result.find((x) => Number.parseInt(x)) === undefined).toBeFalsy;
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue