-hosts:"gitea"tasks:-name:Run selenium containerinclude_role:name:run-selenium-name:Test base jobs project was created in giteauri:url:"https://localhost:3000/opendev/base-jobs"validate_certs:falsestatus_code:200-name:Test zuul project was created in giteauri:url:"https://localhost:3000/zuul/zuul"validate_certs:falsestatus_code:200return_content:yesregister:zuul_content-name:Assert description updatedfail:msg:Zuul description was not updatedwhen:'"Zuulsnewdescription"notinzuul_content.content'-name:Configure ssh for pushing into test giteashell:|ssh-keyscan -t rsa -p 222 localhost >> /home/zuul/.ssh/known_hostsssh-keygen -t ed25519 -f /home/zuul/.ssh/id_ed25519 -C giteagerrittest -P ''# We become zuul here because we need to git push has zuul later to# ensure the owner of the git repo is the one operating on it.become:truebecome_user:zuul-name:Register new gitea gerrit pubkey valueslurp:src:/home/zuul/.ssh/id_ed25519.pubregister:slurped_gitea_gerrit_pubkey-name:Set testing key on gerrit account in giteano_log:trueuri:user:rootpassword:"{{gitea_root_password}}"force_basic_auth:trueurl:"https://localhost:3000/api/v1/admin/users/gerrit/keys"validate_certs:falsemethod:POSTstatus_code:201body_format:jsonbody:key:"{{slurped_gitea_gerrit_pubkey['content']|b64decode}}"read_only:falsetitle:"Gerrittestingkey"-name:Push system-config into our test gitea for testingshell:|cd /home/zuul/src/opendev.org/opendev/system-configgit remote add test-gitea ssh://git@localhost:222/opendev/system-configGIT_SSH_COMMAND='ssh -i /home/zuul/.ssh/id_ed25519' git push -f test-gitea master# We run this as zuul because zuul owns the git repo in /home/zuul# and git by default does not want to operate on a git repo as another# user.become:truebecome_user:zuul-name:Run rename playbookimport_playbook:rename_repos.yamlvars:repolist:/home/zuul/src/opendev.org/opendev/system-config/playbooks/zuul/test_gitea_renames.yaml-hosts:"gitea"tasks:-name:Make gitea access logs readable by zuul for log collectionfile:path:/var/gitea/logs/access.logmode:o+r# This is conveniently left here so that it can be uncommented in order to# autohold the system-config-run-gitea job in zuul.#- hosts: bridge99.opendev.org# tasks:# - name: Force a failure for human intervention# fail:# msg: Failing so that we can check on things with a hold