Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sanitize site_name for slash. #486

Merged
merged 4 commits into from Jul 31, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
39 changes: 39 additions & 0 deletions tests/tests/drupal/drush.yaml
Expand Up @@ -147,6 +147,45 @@
tasks:
- include: ../../tasks/ssh/ssh-command.yaml

- name: "{{ testname }} third - init git, add files, commit, git push"
hosts: localhost
serial: 1
vars:
git_files: "drupal{{ drupal_version }}-{{ db }}/"
docker_files: "drupal{{ drupal_version }}-dockerfiles/php{{ php_version }}/"
branch: "foo/bar"
tasks:
- include: ../../tasks/git-init.yaml
- include: ../../tasks/git-add-commit-push.yaml
- set_fact:
current_head_third: "{{ current_head }}"

- name: "{{ testname }} third - rest2tasks /deploy POST for just git branch on {{ project }}, which should deploy the first commit"
hosts: localhost
serial: 1
vars:
branch: "foo/bar"
project: "{{ project }}"
tasks:
- include: ../../tasks/rest/deploy-no-sha.yaml

- include: check-deployed.yaml
vars:
expected_head: "{{ current_head_third }}"
expected_branch: "foo/bar"
branch: "foo/bar"
project: "{{ project }}"

- name: "{{ testname }} - does ssh work"
hosts: localhost
serial: 1
vars:
username: ci-drupal-foo-bar
command: drush @foo-bar ssh echo zzyzx
expected_content: "zzyzx"
tasks:
- include: ../../tasks/ssh/ssh-command.yaml

- name: "{{ testname }} - check if {{ project }} is deployed with searching for the hash, nginx route"
hosts: localhost
serial: 1
Expand Down