message: Add tests for PR builds with quotes in titles
diff: expected_returncode: 503
  tasks:
  - include: ../../checks/check-url-returncode.yaml
  +
  +- name: "{{ testname }} - webhook github pull request special characters opened"
  + hosts: localhost
  + serial: 1
  + vars:
  + git_base_branch: "pullrequest_base"
  + git_base_commit_hash: "{{ base_commit_hash }}"
  + git_pr_branch: "pullrequest_pr"
  + git_pr_commit_hash: "{{ pr_commit_hash }}"
  + git_pr_number: "1"
  + git_repo_ssh_url: "{{ lookup('env','WEBHOOK_REPO_PREFIX') }}{{ git_repo_name }}"
  + git_pr_title: PR Title \"quoted\" & [special chars]
  + tasks:
  + - include: ../../tasks/webhook-github/pullrequest-opened.yaml
  +
  +- include: ../../checks/check-branch-sha.yaml
  + vars:
  + expected_head: "{{ pr_commit_hash }}"
  + expected_branch: "pr-1"
  + project: "{{ project }}"
  + url: "{{ check_url }}"
  +
  +- include: ../../checks/check-pullrequest.yaml
  + vars:
  + url: "{{ check_url }}"
  + expected_build_type: "pullrequest"
  + expected_pr_base_branch: "pullrequest_base"
  + expected_pr_base_sha: "{{ base_commit_hash }}"
  + expected_pr_head_branch: "pullrequest_pr"
  + expected_pr_head_sha: "{{ pr_commit_hash }}"
  + expected_pr_title: PR Title "quoted" & \[special chars\]
  +
  +- name: "{{ testname }} - webhook github pull request special characters closed"
  + hosts: localhost
  + serial: 1
  + vars:
  + git_base_branch: "pullrequest_base"
  + git_base_commit_hash: "00000"
  + git_pr_branch: "pullrequest_pr"
  + git_pr_commit_hash: "00000"
  + git_pr_number: "1"
  + git_repo_ssh_url: "{{ lookup('env','WEBHOOK_REPO_PREFIX') }}{{ git_repo_name }}"
  + tasks:
  + - include: ../../tasks/webhook-github/pullrequest-closed.yaml
  +
  +- name: "{{ testname }} - check if site for project does not exist anymore"
  + hosts: localhost
  + serial: 1
  + vars:
  + url: "{{ check_url }}"
  + expected_returncode: 503
  + tasks:
  + - include: ../../checks/check-url-returncode.yaml
  