- template-content: Verifies rendered systemd template contains correct directives for docker mode (Type=oneshot, RemainAfterExit=yes) and prune service/timer content. - deregister: Installs runner, creates fake .runner file, runs deregister tasks, verifies .runner file is removed. - update: Installs docker and binary runners, runs update tasks, verifies image/binary and data directories remain intact after update. These scenarios bridge gaps where the deregister task file and update workflows were not covered by existing molecule tests.
24 lines
555 B
YAML
24 lines
555 B
YAML
---
|
|
- name: Converge Docker mode
|
|
hosts: all
|
|
become: true
|
|
vars:
|
|
gitea_url: "http://localhost:3000"
|
|
registration_token: "fake-token-for-testing"
|
|
runner_name: "update-docker-runner"
|
|
skip_runner_registration: true
|
|
roles:
|
|
- role: gitea-runner
|
|
|
|
- name: Converge Binary mode
|
|
hosts: all
|
|
become: true
|
|
vars:
|
|
gitea_url: "http://localhost:3000"
|
|
registration_token: "fake-token-for-testing"
|
|
runner_name: "update-binary-runner"
|
|
runner_mode: "binary"
|
|
skip_runner_registration: true
|
|
roles:
|
|
- role: gitea-runner
|