Debian Codegraph @

launcher/image/test/test_http_server.yaml

raw
1 # Test that the TEE server can accept requests for and serve custom tokens.
2 # This is a happy path test.
3 substitutions:
4 '_IMAGE_NAME': ''
5 '_IMAGE_PROJECT': ''
6 '_CLEANUP': 'true'
7 '_VM_NAME_PREFIX': 'cs-http-server-test'
8 '_ZONE': 'asia-east1-a'
9 '_WORKLOAD_IMAGE': 'us-west1-docker.pkg.dev/confidential-space-images-dev/cs-integ-test-images/ipc/happypath:latest'
10 steps:
11 - name: 'gcr.io/cloud-builders/gcloud'
12 id: CreateVM
13 entrypoint: 'bash'
14 env:
15 - 'BUILD_ID=$BUILD_ID'
16 args: ['create_vm.sh','-i', '${_IMAGE_NAME}',
17 '-p', '${_IMAGE_PROJECT}',
18 '-m', 'tee-image-reference=${_WORKLOAD_IMAGE},tee-container-log-redirect=true',
19 '-n', '${_VM_NAME_PREFIX}-${BUILD_ID}',
20 '-z', '${_ZONE}',
21 ]
22 - name: 'gcr.io/cloud-builders/gcloud'
23 id: TestCustomToken
24 entrypoint: 'bash'
25 args: ['scripts/test_custom_token.sh', "true", '${_VM_NAME_PREFIX}-${BUILD_ID}', '${_ZONE}']
26 - name: 'gcr.io/cloud-builders/gcloud'
27 id: CleanUp
28 entrypoint: 'bash'
29 env:
30 - 'CLEANUP=$_CLEANUP'
31 args: ['cleanup.sh', '${_VM_NAME_PREFIX}-${BUILD_ID}', '${_ZONE}']
32 # Must come after cleanup.
33 - name: 'gcr.io/cloud-builders/gcloud'
34 id: CheckFailure
35 entrypoint: 'bash'
36 env:
37 - 'BUILD_ID=$BUILD_ID'
38 args: ['check_failure.sh']
39
40 options:
41 pool:
42 name: 'projects/confidential-space-images-dev/locations/us-west1/workerPools/cs-image-build-vpc'