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

tests cleanup #1231

Merged
merged 35 commits into from
Sep 8, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
0a41c35
abstract OPENSHIFT_VERSION.
May 8, 2019
7924ab9
use myproject rather than default context.
May 8, 2019
8dcb2e0
only do service catalog on 3.09.
May 8, 2019
dff2fff
parameterize the build, start with two variants.
May 9, 2019
f80398e
restructure.
May 9, 2019
bad526b
Revert "restructure."
May 9, 2019
1a5cf44
restructure to build once, and then try the minishift+test thrice.
May 9, 2019
fc1e9ef
==
May 9, 2019
0d442cf
this clean is ok to fail.
May 9, 2019
9006299
are you breaking my string interpolation?
May 9, 2019
9fc2e4a
minishift versions don't prefix with v.
May 9, 2019
18d8b1b
increase minimum minishift version.
May 9, 2019
41005fb
this prevents the rest of minishift from being cleaned.
May 9, 2019
88205aa
3.09 -> 3.9;check and set all minishift versions which with their ass…
May 9, 2019
f941661
add version to info text.
May 9, 2019
3eab79c
commit to revert later to see that the process works as expected, exc…
May 9, 2019
b16e618
🤷‍♀️
May 9, 2019
1cd996f
can i better name these parallel tasks?"
May 9, 2019
215fb5c
single quote to double quote
May 10, 2019
61ea0e6
move lock around.
May 10, 2019
b163040
remove test for .. testing.
May 10, 2019
acecce2
can I add another parallel?
May 10, 2019
28a679d
use curly brace instead?
May 10, 2019
9d7ba43
This reverts commit acecce238068c228c94634e16ecab6af4beb748c.
May 10, 2019
7cf5169
Merge branch 'master' into 1061-versions
Schnitzel Sep 4, 2019
13e5eba
updating to openshift 3.11 by default
Schnitzel Sep 4, 2019
e47cd6c
actually run tests
Schnitzel Sep 4, 2019
1fa27cc
increase dev enviornment limits for ci-drupal
Schnitzel Sep 6, 2019
b3631de
run minishift with more memory
Schnitzel Sep 6, 2019
369eaa2
new 3.11 way of starting servicecatalog
Schnitzel Sep 6, 2019
3b1785a
cleanup tests
Schnitzel Sep 6, 2019
23ed6e2
cleanup tests
Schnitzel Sep 6, 2019
156f451
cleanup foo/bar test
Schnitzel Sep 6, 2019
22fea1f
Merge branch 'master' into 1061-versions
Schnitzel Sep 6, 2019
4b81619
Merge branch 'master' into 1061-versions
Schnitzel Sep 7, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions tests/tests/bitbucket/skip-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,20 @@
expected_branch: "{{ branch }}"
project: "{{ project }}"
url: "{{ check_url }}"

- name: "{{ testname }} - webhook bitbucket delete push"
hosts: localhost
serial: 1
vars:
git_repo_ssh_url: "{{ lookup('env','WEBHOOK_REPO_PREFIX') }}{{ git_repo_name }}"
tasks:
- include: ../../tasks/webhook-bitbucket/push-delete.yaml

- name: "{{ testname }} - check if site for project does not exist anymore"
hosts: localhost
serial: 1
vars:
url: "http://{{ project | regex_replace('_', '-') }}.{{ branch | regex_replace('/', '-') }}.{{ lookup('env','OPENSHIFT_ROUTE_SUFFIX') }}"
expected_returncode: 503
tasks:
- include: ../../checks/check-url-returncode.yaml
78 changes: 48 additions & 30 deletions tests/tests/drupal/drush.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,51 @@
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
vars:
url: "http://nginx.{{ project | regex_replace('_', '-') }}.drush-first.{{ lookup('env','OPENSHIFT_ROUTE_SUFFIX') }}"
expected_content: "CHANGED-{{ random_number }}"
tasks:
- include: ../../checks/check-url-content.yaml

- name: "{{ testname }} - api deleteEnvironment on {{ project }}, which should remove all resources"
hosts: localhost
serial: 1
vars:
project: "{{ project }}"
branch: "drush-first"
tasks:
- include: ../../tasks/api/remove.yaml

- name: "{{ testname }} - api deleteEnvironment on {{ project }}, which should remove all resources"
hosts: localhost
serial: 1
vars:
project: "{{ project }}"
branch: "drush-second"
tasks:
- include: ../../tasks/api/remove.yaml

- name: "{{ testname }} - check if site for {{ project }} does not exist anymore"
hosts: localhost
serial: 1
vars:
url: "http://nginx.{{ project | regex_replace('_', '-') }}.drush-first.{{ lookup('env','OPENSHIFT_ROUTE_SUFFIX') }}"
expected_returncode: 503
tasks:
- include: ../../checks/check-url-returncode.yaml

- name: "{{ testname }} - check if site for {{ project }} does not exist anymore"
hosts: localhost
serial: 1
vars:
url: "http://nginx.{{ project | regex_replace('_', '-') }}.drush-second.{{ lookup('env','OPENSHIFT_ROUTE_SUFFIX') }}"
expected_returncode: 503
tasks:
- include: ../../checks/check-url-returncode.yaml

- name: "{{ testname }} third - init git, add files, commit, git push"
hosts: localhost
serial: 1
Expand Down Expand Up @@ -186,47 +231,20 @@
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
vars:
url: "http://nginx.{{ project | regex_replace('_', '-') }}.drush-first.{{ lookup('env','OPENSHIFT_ROUTE_SUFFIX') }}"
expected_content: "CHANGED-{{ random_number }}"
tasks:
- include: ../../checks/check-url-content.yaml

- name: "{{ testname }} - api deleteEnvironment on {{ project }}, which should remove all resources"
hosts: localhost
serial: 1
vars:
project: "{{ project }}"
branch: "drush-first"
tasks:
- include: ../../tasks/api/remove.yaml

- name: "{{ testname }} - api deleteEnvironment on {{ project }}, which should remove all resources"
hosts: localhost
serial: 1
vars:
project: "{{ project }}"
branch: "drush-second"
branch: "foo/bar"
tasks:
- include: ../../tasks/api/remove.yaml

- name: "{{ testname }} - check if site for {{ project }} does not exist anymore"
hosts: localhost
serial: 1
vars:
url: "http://nginx.{{ project | regex_replace('_', '-') }}.drush-first.{{ lookup('env','OPENSHIFT_ROUTE_SUFFIX') }}"
url: "http://nginx.{{ project | regex_replace('_', '-') }}.foo-bar.{{ lookup('env','OPENSHIFT_ROUTE_SUFFIX') }}"
expected_returncode: 503
tasks:
- include: ../../checks/check-url-returncode.yaml

- name: "{{ testname }} - check if site for {{ project }} does not exist anymore"
hosts: localhost
serial: 1
vars:
url: "http://nginx.{{ project | regex_replace('_', '-') }}.drush-second.{{ lookup('env','OPENSHIFT_ROUTE_SUFFIX') }}"
expected_returncode: 503
tasks:
- include: ../../checks/check-url-returncode.yaml
- include: ../../checks/check-url-returncode.yaml
17 changes: 17 additions & 0 deletions tests/tests/github/skip-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,20 @@
expected_branch: "{{ branch }}"
project: "{{ project }}"
url: "{{ check_url }}"

- name: "{{ testname }} - webhook github delete push"
hosts: localhost
serial: 1
vars:
git_repo_ssh_url: "{{ lookup('env','WEBHOOK_REPO_PREFIX') }}{{ git_repo_name }}"
tasks:
- include: ../../tasks/webhook-github/push-delete.yaml

- name: "{{ testname }} - check if site for project does not exist anymore"
hosts: localhost
serial: 1
vars:
url: "http://{{ project | regex_replace('_', '-') }}.{{ branch | regex_replace('/', '-') }}.{{ lookup('env','OPENSHIFT_ROUTE_SUFFIX') }}"
expected_returncode: 503
tasks:
- include: ../../checks/check-url-returncode.yaml