|
77 | 77 | echo "os: ubuntu" >goss_vars_${GH_RUNNER_IMAGE}.yaml |
78 | 78 | echo "oscodename: ${{ matrix.release }}" >>goss_vars_${GH_RUNNER_IMAGE}.yaml |
79 | 79 | echo "arch: ${{ matrix.platform }}" >>goss_vars_${GH_RUNNER_IMAGE}.yaml |
| 80 | + # test the edge case from deregistration on reusable runners |
| 81 | + GOSS_VARS=goss_vars_${GH_RUNNER_IMAGE}.yaml GOSS_FILE=goss_reusage_fail.yaml GOSS_SLEEP=1 dgoss run --entrypoint /usr/bin/sleep \ |
| 82 | + -e DEBUG_ONLY=true \ |
| 83 | + -e ACCESS_TOKEN=notreal \ |
| 84 | + -e LABELS=linux,x64 \ |
| 85 | + -e REPO_URL=https://github.com/octokode/test1 \ |
| 86 | + -e RUNNER_NAME=sustainjane-runner-1 \ |
| 87 | + -e RUNNER_SCOPE=repo \ |
| 88 | + -e RUNNER_WORKDIR=/tmp/runner/work \ |
| 89 | + -e DISABLE_AUTOMATIC_DEREGISTRATION=false \ |
| 90 | + -e CONFIGURED_ACTIONS_RUNNER_FILES_DIR=/runner/data \ |
| 91 | + ${GH_RUNNER_IMAGE} 10 |
80 | 92 | # test the base |
81 | 93 | GOSS_VARS=goss_vars_${GH_RUNNER_IMAGE}.yaml GOSS_FILE=goss_base.yaml GOSS_SLEEP=1 dgoss run --entrypoint /usr/bin/sleep -e RUNNER_NAME=test -e DEBUG_ONLY=true ${GH_RUNNER_IMAGE} 10 |
82 | 94 | # test the final image but with all defaults |
@@ -168,6 +180,20 @@ jobs: |
168 | 180 | echo "os: debian" >goss_vars_${GH_RUNNER_IMAGE}.yaml |
169 | 181 | echo "oscodename: ${{ matrix.release }}" >>goss_vars_${GH_RUNNER_IMAGE}.yaml |
170 | 182 | echo "arch: ${{ matrix.platform }}" >>goss_vars_${GH_RUNNER_IMAGE}.yaml |
| 183 | + # test the edge case from deregistration on reusable runners |
| 184 | + GOSS_VARS=goss_vars_${GH_RUNNER_IMAGE}.yaml GOSS_FILE=goss_reusage_fail.yaml GOSS_SLEEP=1 dgoss run --entrypoint /usr/bin/sleep \ |
| 185 | + -e DEBUG_ONLY=true \ |
| 186 | + -e ACCESS_TOKEN=notreal \ |
| 187 | + -e LABELS=linux,x64 \ |
| 188 | + -e REPO_URL=https://github.com/octokode/test1 \ |
| 189 | + -e RUNNER_NAME=sustainjane-runner-1 \ |
| 190 | + -e RUNNER_SCOPE=repo \ |
| 191 | + -e RUNNER_WORKDIR=/tmp/runner/work \ |
| 192 | + -e DISABLE_AUTOMATIC_DEREGISTRATION=false \ |
| 193 | + -e CONFIGURED_ACTIONS_RUNNER_FILES_DIR=/runner/data \ |
| 194 | + ${GH_RUNNER_IMAGE} 10 |
| 195 | + ret_val=$? |
| 196 | + echo "ret val ${ret_val}" |
171 | 197 | # test the base |
172 | 198 | GOSS_VARS=goss_vars_${GH_RUNNER_IMAGE}.yaml GOSS_FILE=goss_base.yaml GOSS_SLEEP=1 dgoss run --entrypoint /usr/bin/sleep -e RUNNER_NAME=test -e DEBUG_ONLY=true ${GH_RUNNER_IMAGE} 10 |
173 | 199 | # test the final image but with all defaults |
|
0 commit comments