68 lines
2.4 KiB
YAML
68 lines
2.4 KiB
YAML
- hosts: "gitea"
|
|
tasks:
|
|
- name: Run selenium container
|
|
include_role:
|
|
name: run-selenium
|
|
|
|
- name: Test base jobs project was created in gitea
|
|
uri:
|
|
url: "https://localhost:3000/opendev/base-jobs"
|
|
validate_certs: false
|
|
status_code: 200
|
|
- name: Test zuul project was created in gitea
|
|
uri:
|
|
url: "https://localhost:3000/zuul/zuul"
|
|
validate_certs: false
|
|
status_code: 200
|
|
return_content: yes
|
|
register: zuul_content
|
|
- name: Assert description updated
|
|
fail:
|
|
msg: Zuul description was not updated
|
|
when: '"Zuuls new description" not in zuul_content.content'
|
|
- name: Push system-config into our test gitea for testing
|
|
shell: |
|
|
cd /home/zuul/src/opendev.org/opendev/system-config
|
|
git remote add test-gitea https://gerrit:{{ gitea_gerrit_password }}@localhost:3000/opendev/system-config
|
|
GIT_SSL_NO_VERIFY=1 git push -f test-gitea master
|
|
|
|
- name: Run rename playbook
|
|
import_playbook: rename_repos.yaml
|
|
vars:
|
|
repolist: /home/zuul/src/opendev.org/opendev/system-config/playbooks/zuul/test_gitea_renames.yaml
|
|
|
|
- hosts: "bridge.openstack.org:!disabled"
|
|
tasks:
|
|
- name: Update DIB project name in projects.yaml and switch to SB
|
|
lineinfile:
|
|
path: "{{ project_config_src }}/gerrit/projects.yaml"
|
|
regexp: "^- project: openstack/diskimage-builder"
|
|
line: "- project: opendev/disk-image-builder\n use-storyboard: true"
|
|
|
|
- name: Run filtered sync playbook
|
|
import_playbook: sync-gitea-projects.yaml
|
|
vars:
|
|
gitea_always_update: ["opendev/disk-image-builder"]
|
|
|
|
- hosts: "gitea"
|
|
tasks:
|
|
- name: Test opendev/disk-image-builder exists in gitea
|
|
uri:
|
|
url: "https://localhost:3000/opendev/disk-image-builder"
|
|
validate_certs: false
|
|
status_code: 200
|
|
return_content: yes
|
|
register: dib_content
|
|
- name: Assert DIB issues URL was updated
|
|
fail:
|
|
msg: DIB issues URL was not updated
|
|
when: '"https://storyboard.openstack.org/#!/project/opendev/disk-image-builder" not in dib_content.content'
|
|
|
|
# This is conveniently left here so that it can be uncommented in order to
|
|
# autohold the system-config-run-gitea job in zuul.
|
|
#- hosts: bridge.openstack.org
|
|
# tasks:
|
|
# - name: Force a failure for human intervention
|
|
# fail:
|
|
# msg: Failing so that we can check on things with a hold
|