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

Fix InterOp Tests #60

Merged
merged 3 commits into from
Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
18 changes: 14 additions & 4 deletions deploy-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@
- rhel8-dotnet70-container
dotnet: "{{ dotnet_60 + dotnet_70}}"
tasks:
- name: Modify OpenShift project to rhscl-ci-testing-s2i if s2i
set_fact:
oc_project_rhscl: "{{ oc_project_rhscl }}-s2i"
when: (ext_test is defined) and (ext_test == "s2i")

- name: Modify OpenShift project to rhscl-ci-testing-nos2i if nos2i
set_fact:
oc_project_rhscl: "{{ oc_project_rhscl }}-nos2i"
when: (ext_test is defined) and (ext_test == "nos2i")

- name: Check temporary directory and create XML unit file
block:
- name: Remove directory
Expand Down Expand Up @@ -54,13 +64,13 @@
- name: Clone and test upstream container repositories
include_tasks: ./tasks/verify_in_openshift.yml
loop:
- rhel7-nodejs-ex-14
#- rhel7-nodejs-ex-14
- rhel7-nginx-ex-120
- rhel7-postgresql-10-container
- rhel7-mysql-80-container
- rhel7-mariadb-103-container
- rhel7-mariadb-105-container
- rhel7-s2i-perl-530-container
#- rhel7-s2i-perl-530-container
- rhel7-s2i-ruby-30-container
- rhel7-s2i-python-38-container
- rhel8-nodejs-ex-16
Expand Down Expand Up @@ -142,8 +152,8 @@
- name: Check s2i containers
include_tasks: ./tasks/verify_in_openshift.yml
loop:
- rhel7-nodejs-ex-14
- rhel7-s2i-perl-530-container
#- rhel7-nodejs-ex-14
#- rhel7-s2i-perl-530-container
- rhel7-s2i-ruby-30-container
- rhel7-s2i-python-38-container
- rhel8-nodejs-ex-16
Expand Down
2 changes: 1 addition & 1 deletion tasks/clone_scl_repo.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
- name: Clone {{ stuff.scl_url }} repository
git:
repo: "https://github.com/sclorg/{{ stuff.scl_url }}.git"
repo: "https://github.com/sclorg/{{ stuff.scl_url }}"
dest: "{{ scl_dir }}"
recursive: yes
changed_when: false
Expand Down
2 changes: 2 additions & 0 deletions tasks/openshift_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,6 @@
retries: 10
delay: 20
when: (deploy_cmd.rc == 0) and (cluster_name.rc == 0)

- debug: var=route_cmd
when: file_exists.stat.exists
2 changes: 2 additions & 0 deletions tasks/openshift_test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
- block:
- debug: var=stuff

- name: Check curl command is working
uri:
url: "http://{{ route_cmd.stdout }}"
Expand Down
7 changes: 4 additions & 3 deletions tasks/verify_in_openshift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
testsuite_attrs: "{{ testsuite_attributes.matches[0].testsuite }}"

- name: Get list of projects for RHSCL
shell: "oc projects | grep rhscl-ci-testing"
shell: "oc projects | grep {{ oc_project_rhscl }}"
changed_when: false
register: oc_projects
ignore_errors: yes
when: (ext_test == "")
when: (ext_test == "") or (ext_test == "s2i") or (ext_test == "nos2i")

- name: Get list of projects for DOTNET
shell: "oc projects | grep dotnet-ci-testing"
Expand All @@ -51,7 +51,7 @@
- name: Create project {{ oc_project_rhscl }}
shell: "oc new-project {{ oc_project_rhscl }}"
when: oc_project_status.rc != 0
when: (ext_test == "")
when: (ext_test == "") or (ext_test == "s2i") or (ext_test == "nos2i")

- block:
- name: Check if project {{ oc_project_dotnet }} exists
Expand Down Expand Up @@ -121,6 +121,7 @@
- name: oc delete all
command: oc delete all,cm,secrets,pvc --all --grace-period=0 --force
changed_when: false
ignore_errors: yes


when: file_exists.stat.exists
Expand Down
3 changes: 2 additions & 1 deletion vars/rhel7-nodejs-ex-14.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ registry_redhat_io: "ubi7/nodejs-14"
tag_name: "nodejs:14"
deployment: "oc process -f https://raw.githubusercontent.com/sclorg/nodejs-ex/master/openshift/templates/nodejs.json -p NODEJS_VERSION=14 -p NAMESPACE={{ oc_project_rhscl }} | oc apply -f -"
pod_name: "nodejs-example"
check_curl_output: "Welcome to your Node.js application on OpenShift"
check_curl_output: "Node.js Crud Application"
scl_url: "nodejs-ex"
curl_output_format: "raw"
is_name: "nodejs"
2 changes: 1 addition & 1 deletion vars/rhel8-cakephp-ex-73.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
registry_redhat_io: "ubi8/php-73"
tag_name: "php:7.3-ubi8"
deployment: "oc process -f https://raw.githubusercontent.com/sclorg/cakephp-ex/master/openshift/templates/cakephp.json -p PHP_VERSION=7.3-ubi8 -p NAMESPACE=rhscl-ci-testing | oc apply -f -"
deployment: "oc process -f https://raw.githubusercontent.com/sclorg/cakephp-ex/master/openshift/templates/cakephp.json -p PHP_VERSION=7.3-ubi8 -p NAMESPACE={{ oc_project_rhscl }} | oc apply -f -"
pod_name: "cakephp-example"
check_curl_output: "Welcome to your CakePHP application on OpenShift"
scl_url: "cakephp-ex"
2 changes: 1 addition & 1 deletion vars/rhel8-cakephp-ex-74.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
registry_redhat_io: "ubi8/php-74"
tag_name: "php:7.4-ubi8"
deployment: "oc process -f https://raw.githubusercontent.com/sclorg/cakephp-ex/master/openshift/templates/cakephp.json -p PHP_VERSION=7.4-ubi8 -p NAMESPACE=rhscl-ci-testing | oc apply -f -"
deployment: "oc process -f https://raw.githubusercontent.com/sclorg/cakephp-ex/master/openshift/templates/cakephp.json -p PHP_VERSION=7.4-ubi8 -p NAMESPACE={{ oc_project_rhscl }} | oc apply -f -"
pod_name: "cakephp-example"
check_curl_output: "Welcome to your CakePHP application on OpenShift"
scl_url: "cakephp-ex"
2 changes: 1 addition & 1 deletion vars/rhel8-cakephp-ex-80.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
registry_redhat_io: "ubi8/php-80"
tag_name: "php:8.0-ubi8"
deployment: "oc process -f https://raw.githubusercontent.com/sclorg/cakephp-ex/master/openshift/templates/cakephp.json -p PHP_VERSION=8.0-ubi8 -p NAMESPACE=rhscl-ci-testing | oc apply -f -"
deployment: "oc process -f https://raw.githubusercontent.com/sclorg/cakephp-ex/master/openshift/templates/cakephp.json -p PHP_VERSION=8.0-ubi8 -p NAMESPACE={{ oc_project_rhscl }} | oc apply -f -"
pod_name: "cakephp-example"
check_curl_output: "Welcome to your CakePHP application on OpenShift"
scl_url: "cakephp-ex"
2 changes: 1 addition & 1 deletion vars/rhel8-cakephp-ex-81.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
registry_redhat_io: "ubi8/php-81"
tag_name: "php:8.1-ubi8"
deployment: "oc process -f https://raw.githubusercontent.com/sclorg/cakephp-ex/master/openshift/templates/cakephp.json -p PHP_VERSION=8.1-ubi8 -p NAMESPACE=rhscl-ci-testing | oc apply -f -"
deployment: "oc process -f https://raw.githubusercontent.com/sclorg/cakephp-ex/master/openshift/templates/cakephp.json -p PHP_VERSION=8.1-ubi8 -p NAMESPACE={{ oc_project_rhscl }} | oc apply -f -"
pod_name: "cakephp-example"
check_curl_output: "Welcome to your CakePHP application on OpenShift"
scl_url: "cakephp-ex"
5 changes: 3 additions & 2 deletions vars/rhel8-nodejs-ex-16.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
registry_redhat_io: "ubi8/nodejs-16"
tag_name: "nodejs:16-ubi8"
deployment: "oc process -f https://raw.githubusercontent.com/sclorg/nodejs-ex/master/openshift/templates/nodejs.json -p NODEJS_VERSION=16-ubi8 -p NAMESPACE=rhscl-ci-testing | oc apply -f -"
deployment: "oc process -f https://raw.githubusercontent.com/sclorg/nodejs-ex/master/openshift/templates/nodejs.json -p NODEJS_VERSION=16-ubi8 -p NAMESPACE={{ oc_project_rhscl }} | oc apply -f -"
pod_name: "nodejs-example"
check_curl_output: "Welcome to your Node.js application on OpenShift"
check_curl_output: "Node.js Crud Application"
curl_output_format: "raw"
scl_url: "nodejs-ex"
is_name: "nodejs"
5 changes: 3 additions & 2 deletions vars/rhel8-nodejs-ex-18-minimal.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
registry_redhat_io: "ubi8/nodejs-18-minimal"
tag_name: "nodejs:18-minimal-ubi8"
deployment: "oc process -f https://raw.githubusercontent.com/sclorg/nodejs-ex/master/openshift/templates/nodejs.json -p NODEJS_VERSION=18-minimal-ubi8 -p NAMESPACE=rhscl-ci-testing | oc apply -f -"
deployment: "oc process -f https://raw.githubusercontent.com/sclorg/nodejs-ex/master/openshift/templates/nodejs.json -p NODEJS_VERSION=18-minimal-ubi8 -p NAMESPACE={{ oc_project_rhscl }} | oc apply -f -"
pod_name: "nodejs-example"
check_curl_output: "Welcome to your Node.js application on OpenShift"
check_curl_output: "Node.js Crud Application"
curl_output_format: "raw"
scl_url: "nodejs-ex"
is_name: "nodejs"
5 changes: 3 additions & 2 deletions vars/rhel8-nodejs-ex-18.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
registry_redhat_io: "ubi8/nodejs-18"
tag_name: "nodejs:18-ubi8"
deployment: "oc process -f https://raw.githubusercontent.com/sclorg/nodejs-ex/master/openshift/templates/nodejs.json -p NODEJS_VERSION=18-ubi8 -p NAMESPACE=rhscl-ci-testing | oc apply -f -"
deployment: "oc process -f https://raw.githubusercontent.com/sclorg/nodejs-ex/master/openshift/templates/nodejs.json -p NODEJS_VERSION=18-ubi8 -p NAMESPACE={{ oc_project_rhscl }} | oc apply -f -"
pod_name: "nodejs-example"
check_curl_output: "Welcome to your Node.js application on OpenShift"
check_curl_output: "Node.js Crud Application"
curl_output_format: "raw"
scl_url: "nodejs-ex"
is_name: "nodejs"
5 changes: 3 additions & 2 deletions vars/rhel8-nodejs-ex-20-minimal.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
registry_redhat_io: "ubi8/nodejs-20-minimal"
tag_name: "nodejs:20-minimal-ubi8"
deployment: "oc process -f https://raw.githubusercontent.com/sclorg/nodejs-ex/master/openshift/templates/nodejs.json -p NODEJS_VERSION=20-minimal-ubi8 -p NAMESPACE=rhscl-ci-testing | oc apply -f -"
deployment: "oc process -f https://raw.githubusercontent.com/sclorg/nodejs-ex/master/openshift/templates/nodejs.json -p NODEJS_VERSION=20-minimal-ubi8 -p NAMESPACE={{ oc_project_rhscl }} | oc apply -f -"
pod_name: "nodejs-example"
check_curl_output: "Welcome to your Node.js application on OpenShift"
check_curl_output: "Node.js Crud Application"
curl_output_format: "raw"
scl_url: "nodejs-ex"
is_name: "nodejs"
5 changes: 3 additions & 2 deletions vars/rhel8-nodejs-ex-20.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
registry_redhat_io: "ubi8/nodejs-20"
tag_name: "nodejs:20-ubi8"
deployment: "oc process -f https://raw.githubusercontent.com/sclorg/nodejs-ex/master/openshift/templates/nodejs.json -p NODEJS_VERSION=20-ubi8 -p NAMESPACE=rhscl-ci-testing | oc apply -f -"
deployment: "oc process -f https://raw.githubusercontent.com/sclorg/nodejs-ex/master/openshift/templates/nodejs.json -p NODEJS_VERSION=20-ubi8 -p NAMESPACE={{ oc_project_rhscl }} | oc apply -f -"
pod_name: "nodejs-example"
check_curl_output: "Welcome to your Node.js application on OpenShift"
check_curl_output: "Node.js Crud Application"
curl_output_format: "raw"
scl_url: "nodejs-ex"
is_name: "nodejs"
2 changes: 1 addition & 1 deletion vars/rhel9-cakephp-ex-80.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
registry_redhat_io: "ubi9/php-80"
tag_name: "php:8.0-ubi9"
deployment: "oc process -f https://raw.githubusercontent.com/sclorg/cakephp-ex/master/openshift/templates/cakephp.json -p PHP_VERSION=8.0-ubi9 -p NAMESPACE=rhscl-ci-testing | oc apply -f -"
deployment: "oc process -f https://raw.githubusercontent.com/sclorg/cakephp-ex/master/openshift/templates/cakephp.json -p PHP_VERSION=8.0-ubi9 -p NAMESPACE={{ oc_project_rhscl }} | oc apply -f -"
pod_name: "cakephp-example"
check_curl_output: "Welcome to your CakePHP application on OpenShift"
scl_url: "cakephp-ex"
2 changes: 1 addition & 1 deletion vars/rhel9-cakephp-ex-81.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
registry_redhat_io: "ubi9/php-81"
tag_name: "php:8.1-ubi9"
deployment: "oc process -f https://raw.githubusercontent.com/sclorg/cakephp-ex/master/openshift/templates/cakephp.json -p PHP_VERSION=8.1-ubi9 -p NAMESPACE=rhscl-ci-testing | oc apply -f -"
deployment: "oc process -f https://raw.githubusercontent.com/sclorg/cakephp-ex/master/openshift/templates/cakephp.json -p PHP_VERSION=8.1-ubi9 -p NAMESPACE={{ oc_project_rhscl }} | oc apply -f -"
pod_name: "cakephp-example"
check_curl_output: "Welcome to your CakePHP application on OpenShift"
scl_url: "cakephp-ex"
5 changes: 3 additions & 2 deletions vars/rhel9-nodejs-ex-16.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
registry_redhat_io: "ubi9/nodejs-16"
tag_name: "nodejs:16-ubi9"
deployment: "oc process -f https://raw.githubusercontent.com/sclorg/nodejs-ex/master/openshift/templates/nodejs.json -p NODEJS_VERSION=16-ubi9 -p NAMESPACE=rhscl-ci-testing | oc apply -f -"
deployment: "oc process -f https://raw.githubusercontent.com/sclorg/nodejs-ex/master/openshift/templates/nodejs.json -p NODEJS_VERSION=16-ubi9 -p NAMESPACE={{ oc_project_rhscl }} | oc apply -f -"
pod_name: "nodejs-example"
check_curl_output: "Welcome to your Node.js application on OpenShift"
check_curl_output: "Node.js Crud Application"
curl_output_format: "raw"
scl_url: "nodejs-ex"
is_name: "nodejs"
5 changes: 3 additions & 2 deletions vars/rhel9-nodejs-ex-18-minimal.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
registry_redhat_io: "ubi9/nodejs-18-minimal"
tag_name: "nodejs:18-minimal-ubi9"
deployment: "oc process -f https://raw.githubusercontent.com/sclorg/nodejs-ex/master/openshift/templates/nodejs.json -p NODEJS_VERSION=18-minimal-ubi9 -p NAMESPACE=rhscl-ci-testing | oc apply -f -"
deployment: "oc process -f https://raw.githubusercontent.com/sclorg/nodejs-ex/master/openshift/templates/nodejs.json -p NODEJS_VERSION=18-minimal-ubi9 -p NAMESPACE={{ oc_project_rhscl }} | oc apply -f -"
pod_name: "nodejs-example"
check_curl_output: "Welcome to your Node.js application on OpenShift"
check_curl_output: "Node.js Crud Application"
curl_output_format: "raw"
scl_url: "nodejs-ex"
is_name: "nodejs"
5 changes: 3 additions & 2 deletions vars/rhel9-nodejs-ex-18.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
registry_redhat_io: "ubi9/nodejs-18"
tag_name: "nodejs:18-ubi9"
deployment: "oc process -f https://raw.githubusercontent.com/sclorg/nodejs-ex/master/openshift/templates/nodejs.json -p NODEJS_VERSION=18-ubi9 -p NAMESPACE=rhscl-ci-testing | oc apply -f -"
deployment: "oc process -f https://raw.githubusercontent.com/sclorg/nodejs-ex/master/openshift/templates/nodejs.json -p NODEJS_VERSION=18-ubi9 -p NAMESPACE={{ oc_project_rhscl }} | oc apply -f -"
pod_name: "nodejs-example"
check_curl_output: "Welcome to your Node.js application on OpenShift"
check_curl_output: "Node.js Crud Application"
curl_output_format: "raw"
scl_url: "nodejs-ex"
is_name: "nodejs"
5 changes: 3 additions & 2 deletions vars/rhel9-nodejs-ex-20-minimal.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
registry_redhat_io: "ubi9/nodejs-20-minimal"
tag_name: "nodejs:20-minimal-ubi9"
deployment: "oc process -f https://raw.githubusercontent.com/sclorg/nodejs-ex/master/openshift/templates/nodejs.json -p NODEJS_VERSION=20-minimal-ubi9 -p NAMESPACE=rhscl-ci-testing | oc apply -f -"
deployment: "oc process -f https://raw.githubusercontent.com/sclorg/nodejs-ex/master/openshift/templates/nodejs.json -p NODEJS_VERSION=20-minimal-ubi9 -p NAMESPACE={{ oc_project_rhscl }} | oc apply -f -"
pod_name: "nodejs-example"
check_curl_output: "Welcome to your Node.js application on OpenShift"
check_curl_output: "Node.js Crud Application"
curl_output_format: "raw"
scl_url: "nodejs-ex"
is_name: "nodejs"
5 changes: 3 additions & 2 deletions vars/rhel9-nodejs-ex-20.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
registry_redhat_io: "ubi9/nodejs-20"
tag_name: "nodejs:20-ubi9"
deployment: "oc process -f https://raw.githubusercontent.com/sclorg/nodejs-ex/master/openshift/templates/nodejs.json -p NODEJS_VERSION=20-ubi9 -p NAMESPACE=rhscl-ci-testing | oc apply -f -"
deployment: "oc process -f https://raw.githubusercontent.com/sclorg/nodejs-ex/master/openshift/templates/nodejs.json -p NODEJS_VERSION=20-ubi9 -p NAMESPACE={{ oc_project_rhscl }} | oc apply -f -"
pod_name: "nodejs-example"
check_curl_output: "Welcome to your Node.js application on OpenShift"
check_curl_output: "Node.js Crud Application"
curl_output_format: "raw"
scl_url: "nodejs-ex"
is_name: "nodejs"