Refactor parameter serialization into TaskParameterSerializer
parent
d7e927ec7e
commit
cc0c007a6a
|
|
@ -0,0 +1,90 @@
|
||||||
|
androidKeystorePass=
|
||||||
|
androidKeystoreBase64=
|
||||||
|
ANDROID_VERSION_CODE=1
|
||||||
|
kubeConfig=
|
||||||
|
HOSTNAME=ip-10-0-0-248.eu-west-2.compute.internal
|
||||||
|
testCustomSecret=VALUEXXX
|
||||||
|
customImage=false
|
||||||
|
BUILDID=0-windows64-m6sm
|
||||||
|
androidKeyaliasPass=
|
||||||
|
SHLVL=1
|
||||||
|
githubRepo=game-ci/unity-builder
|
||||||
|
branch=remote-builder/unified-providers
|
||||||
|
HOME=/root
|
||||||
|
cloudRunnerCpu=1.0
|
||||||
|
platform=StandaloneWindows64
|
||||||
|
versioningStrategy=None
|
||||||
|
version=2019.2.11f1
|
||||||
|
githubEnabled=false
|
||||||
|
buildPathFull=/data/0-windows64-m6sm
|
||||||
|
ANDROID_KEYSTORE_NAME=
|
||||||
|
AWS_EXECUTION_ENV=AWS_ECS_FARGATE
|
||||||
|
region=eu-west-2
|
||||||
|
specifiedVersion=
|
||||||
|
runNumber=0
|
||||||
|
chownFilesTo=
|
||||||
|
BUILD_FILE=StandaloneWindows64.exe
|
||||||
|
ANDROID_KEYALIAS_NAME=
|
||||||
|
BUILD_NAME=StandaloneWindows64
|
||||||
|
buildMethod=
|
||||||
|
VERSION=none
|
||||||
|
logToFile=true
|
||||||
|
AWS_DEFAULT_REGION=eu-west-2
|
||||||
|
sshAgent=
|
||||||
|
runnerTempPath=undefined
|
||||||
|
androidVersionCode=false
|
||||||
|
BUILD_METHOD=
|
||||||
|
androidKeystoreName=
|
||||||
|
ECS_CONTAINER_METADATA_URI_V4=http://169.254.170.2/v4/7448c77e651e4492a871ca46d3d5d01a-4231844574
|
||||||
|
kubeVolumeSize=5Gi
|
||||||
|
steamPathFull=/data/0-windows64-m6sm/steam
|
||||||
|
CUSTOM_PARAMETERS=
|
||||||
|
ECS_CONTAINER_METADATA_URI=http://169.254.170.2/v3/7448c77e651e4492a871ca46d3d5d01a-4231844574
|
||||||
|
customParameters=
|
||||||
|
repoPathFull=/data/0-windows64-m6sm/repo
|
||||||
|
cloudRunnerCluster=
|
||||||
|
buildParameters={"version":"2019.2.11f1","customImage":false,"platform":"StandaloneWindows64","projectPath":"test-project","buildName":"StandaloneWindows64","buildPath":"build/StandaloneWindows64","buildFile":"StandaloneWindows64.exe","buildMethod":"","buildVersion":"none","androidVersionCode":1,"androidKeystoreName":"","androidKeystoreBase64":"","androidKeystorePass":"","androidKeyaliasName":"","androidKeyaliasPass":"","customParameters":"","sshAgent":"","chownFilesTo":"","cloudRunnerCluster":"","awsBaseStackName":"game-ci-3-test","kubeConfig":"","githubToken":"","cloudRunnerMemory":"750M","cloudRunnerCpu":"1.0","kubeVolumeSize":"5Gi","kubeVolume":"","postBuildSteps":"","preBuildSteps":"","customBuildSteps":"\n - name: 'step 1'\n image: 'alpine'\n commands: ['printenv']\n secrets:\n - name: 'testCustomSecret'\n value: 'VALUEXXX'\n ","runNumber":"0","branch":"remote-builder/unified-providers","githubRepo":"game-ci/unity-builder","logToFile":true}
|
||||||
|
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
||||||
|
libraryFolderFull=/data/0-windows64-m6sm/repo/test-project/Library
|
||||||
|
androidAppBundle=false
|
||||||
|
androidKeyaliasName=
|
||||||
|
preBuildSteps=
|
||||||
|
buildFile=StandaloneWindows64.exe
|
||||||
|
ContainerMemory=750M
|
||||||
|
projectPath=test-project
|
||||||
|
buildName=StandaloneWindows64
|
||||||
|
BUILD_TARGET=StandaloneWindows64
|
||||||
|
unityVersion=auto
|
||||||
|
targetPlatform=StandaloneWindows64
|
||||||
|
ALLOW_EMPTY_PASSWORD=yes
|
||||||
|
BUILD_PATH=build/StandaloneWindows64
|
||||||
|
PROJECT_PATH=test-project
|
||||||
|
AWS_REGION=eu-west-2
|
||||||
|
GITHUB_WORKSPACE=/github/workspace
|
||||||
|
awsBaseStackName=game-ci-3-test
|
||||||
|
buildVersion=none
|
||||||
|
builderPathFull=/data/0-windows64-m6sm/builder
|
||||||
|
length=0
|
||||||
|
cliOptions=[object Object]
|
||||||
|
postBuildSteps=
|
||||||
|
name=Input
|
||||||
|
cloudRunnerMemory=750M
|
||||||
|
PWD=/data
|
||||||
|
allowDirtyBuild=false
|
||||||
|
buildsPath=build
|
||||||
|
UNITY_VERSION=2019.2.11f1
|
||||||
|
githubToken=
|
||||||
|
buildPath=build/StandaloneWindows64
|
||||||
|
projectPathFull=/data/0-windows64-m6sm/repo/test-project
|
||||||
|
kubeVolume=
|
||||||
|
prototype=[object Object]
|
||||||
|
customBuildSteps=
|
||||||
|
- name: 'step 1'
|
||||||
|
image: 'alpine'
|
||||||
|
commands: ['printenv']
|
||||||
|
secrets:
|
||||||
|
- name: 'testCustomSecret'
|
||||||
|
value: 'VALUEXXX'
|
||||||
|
|
||||||
|
ContainerCpu=1.0
|
||||||
|
remoteBuilderIntegrationTests=true
|
||||||
|
|
@ -27,13 +27,13 @@ describe('Cloud Runner', () => {
|
||||||
buildParameter.logToFile = true;
|
buildParameter.logToFile = true;
|
||||||
const baseImage = new ImageTag(buildParameter);
|
const baseImage = new ImageTag(buildParameter);
|
||||||
await CloudRunner.run(buildParameter, baseImage.toString());
|
await CloudRunner.run(buildParameter, baseImage.toString());
|
||||||
let file = fs.readFileSync(`${CloudRunnerState.buildGuid}-outputfile.txt`, 'utf-8').toString();
|
const file = fs.readFileSync(`${CloudRunnerState.buildGuid}-outputfile.txt`, 'utf-8').toString();
|
||||||
expect(file).toContain(JSON.stringify(buildParameter));
|
expect(file).toContain(JSON.stringify(buildParameter));
|
||||||
file = file.replace(`\n`, ``);
|
|
||||||
const inputKeys = Object.getOwnPropertyNames(Input);
|
const inputKeys = Object.getOwnPropertyNames(Input);
|
||||||
for (const element of inputKeys) {
|
for (const element of inputKeys) {
|
||||||
if (Input[element] !== undefined && typeof Input[element] != 'function') {
|
if (Input[element] !== undefined && typeof Input[element] != 'function') {
|
||||||
expect(file).toContain(`${element}=${Input[element].toString().replace(`\n`, ``)}`);
|
expect(file).toContain(`${element}`);
|
||||||
|
expect(file).toContain(`${Input[element]}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue