Commit 2e393141 authored by Yogesh Chintha's avatar Yogesh Chintha Committed by Anuj Gupta
Browse files

Ibm cicd wellbore - INT tests & preship

parent 6b1e0d44
......@@ -6,12 +6,19 @@
variables:
IBM_OPENSHIFT_PROJECT: og-cicd
IBM_OPENSHIFT_PRESHIP_PROJECT: og-devops
before_script:
- oc login --token=$IBM_OPENSHIFT_TOKEN --server=$IBM_OPENSHIFT_URL
.ibm_variables:
variables:
# IBM Services
SERVICE_HOST_ENTITLEMENTS: $IBM_ENTITLEMENT_URL
SERVICE_HOST_STORAGE: $IBM_STORAGE_HOST
SERVICE_HOST_SEARCH: $IBM_SEARCH_HOST
APP_FILE: $APP_FILE
SERVICE_HOST_WELLBORE: $IBM_WELLBORE_HOST
# IBM Storage
CLOUD_PROVIDER: ibm
......@@ -20,11 +27,22 @@
COS_ACCESS_KEY: $IBM_COS_ACCESS_KEY
COS_SECRET_KEY: $IBM_COS_SECRET_KEY
before_script:
- oc login --token=$IBM_OPENSHIFT_TOKEN --server=$IBM_OPENSHIFT_URL
# common security
KEYCLOAK_URL: $IBM_KEYCLOAK_URL
KEYCLOAK_REALM: OSDU
KEYCLOAK_CLIENT_ID: $IBM_KEYCLOAK_CLIENT_ID
KEYCLOAK_CLIENT_SECRET: $IBM_KEYCLOAK_CLIENT_SECRET
AUTH_USER_ACCESS: $IBM_AUTH_USER_ACCESS
AUTH_USER_ACCESS_PASSWORD: $IBM_AUTH_USER_ACCESS_PASSWORD
DATA_PARTITION_ID: opendes
LEGAL_TAG: opendes-public-usa-dataset-1
ACL_DOMAIN: ibm.com
ibm-deploy:
extends: .ibm
extends:
- .ibm
- .ibm_variables
stage: deploy
needs: ['compile-and-unit-test']
script:
......@@ -36,3 +54,24 @@ ibm-deploy:
only:
variables:
- $IBM == 'true'
ibm-test:
stage: integration
image: python:3.8
needs: ["ibm-deploy"]
allow_failure: true
extends:
- .ibm_variables
script:
- pip install --upgrade pip
- pip install -r requirements_dev.txt
- svctoken=$(python devops/scripts/ibm_jwt_client.py)
- cd $IBM_INT_TEST_PY_SUBDIR
- python ./gen_postman_env.py --token ${svctoken} --base_url ${SERVICE_HOST_WELLBORE} --cloud_provider ${CLOUD_PROVIDER} --acl_domain ${ACL_DOMAIN} --legal_tag ${LEGAL_TAG} --data_partition ${DATA_PARTITION_ID}
- pytest ./functional --environment="./generated/postman_environment.json" --insecure --timeout-request=15000 --filter-tag=crud
only:
variables:
- $IBM_INT_TEST_PY_SUBDIR && $IBM == 'true'
except:
variables:
- $IBM_SKIP_TEST == 'true'
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment