Commit 40d864a1 authored by David Diederich's avatar David Diederich
Browse files

Adding jobs for all the postman collections

parent 12441a78
Pipeline #2633 failed with stage
in 37 seconds
...@@ -13,31 +13,80 @@ workflow: ...@@ -13,31 +13,80 @@ workflow:
stages: stages:
- test - test
.newman: # --------------------------------------------------------------------------------
# Define the common elements an a template
.newman-with-environment:
stage: test stage: test
image: image:
name: postman/newman_alpine33 name: postman/newman_alpine33
entrypoint: [""] entrypoint: [""]
script:
- newman run "$COLLECTION_JSON" -e "$ENVIRONMENT" -d "$TEST_COLLECTION_CONFIG"
newman-sample: .newman-without-environment:
extends: .newman stage: test
image:
name: postman/newman_alpine33
entrypoint: [""]
script: script:
- apk add ca-certificates - newman run "$COLLECTION_JSON" -d "$TEST_COLLECTION_CONFIG"
- wget 'https://raw.githubusercontent.com/postmanlabs/newman/develop/examples/sample-collection.json'
- newman run sample-collection.json # --------------------------------------------------------------------------------
# Specify the collections
#
# These are separated into separate jobs to increase parallelism, as well as
# provide individual feedback status on which collections are working.
well-data-workflow: well-data-workflow:
extends: .newman extends: .newman-with-environment
variables: variables:
COLLECTION_JSON: 'Postman Collection/01_CICD_Setup_WellDataWorkflow/Well CI-CD v1.9.postman_collection.json' COLLECTION_JSON: 'Postman Collection/01_CICD_Setup_WellDataWorkflow/Well CI-CD v1.9.postman_collection.json'
ENVIRONMENT: 'Postman Collection/01_CICD_Setup_WellDataWorkflow/Well CI-CD v1.9.postman_environment' ENVIRONMENT: 'Postman Collection/01_CICD_Setup_WellDataWorkflow/Well CI-CD v1.9.postman_environment'
script:
- newman run "$COLLECTION_JSON" -e "$ENVIRONMENT" -d "$TEST_COLLECTION_CONFIG" wellbore:
extends: .newman-without-environment
variables:
COLLECTION_JSON: 'Postman Collection/02_CICD_Setup_WellboreWorkflow/Wellbore CI-CD v1.8.postman_collection.json'
trajectory:
extends: .newman-without-environment
variables:
COLLECTION_JSON: 'Postman Collection/03_CICD_Setup_TrajectoryWorkflow/Trajectory CI-CD v1.3.postman_collection.json'
wellbore-marker:
extends: .newman-without-environment
variables:
COLLECTION_JSON: 'Postman Collection/04_CICD_Setup_MarkersWorkflow/WellboreMarker CI-CD v1.2.postman_collection.json'
well-log-workflow:
extends: .newman-without-environment
variables:
COLLECTION_JSON: 'Postman Collection/05_CICD_Setup_WellLogWorkflow/WellLog CI-CD v1.3.postman_collection.json'
seismic:
extends: .newman-without-environment
variables:
COLLECTION_JSON: 'Postman Collection/06_CICD_Setup_SeismicWorkflow/Seismic CI-CD v1.2.postman_collection.json'
legal-api: legal-api:
extends: .newman extends: .newman-with-environment
variables: variables:
COLLECTION_JSON: 'Postman Collection/11_CICD_Setup_LegalAPI/Legal API CI-CD v2.1.postman_collection' COLLECTION_JSON: 'Postman Collection/11_CICD_Setup_LegalAPI/Legal API CI-CD v2.1.postman_collection'
ENVIRONMENT: 'Postman Collection/11_CICD_Setup_LegalAPI/Legal API CI-CD v2.1.postman_environment' ENVIRONMENT: 'Postman Collection/11_CICD_Setup_LegalAPI/Legal API CI-CD v2.1.postman_environment'
script:
- newman run "$COLLECTION_JSON" -e "$ENVIRONMENT" -d "$TEST_COLLECTION_CONFIG" storage-api:
extends: .newman-without-environment
variables:
COLLECTION_JSON: 'Postman Collection/12_CICD_Setup_StorageAPI/Storage API CI-CD v1.10.postman_collection.json'
search-api:
extends: .newman-without-environment
variables:
COLLECTION_JSON: 'Postman Collection/13_CICD_Setup_SearchAPI/Search API CI-CD v1.7.postman_collection.json'
azure-example:
extends: .newman-with-environment
variables:
COLLECTION_JSON: 'Postman Collection/AzureExample/OSDU R2 APIs.postman_collection (1).json'
ENVIRONMENT: 'Postman Collection/AzureExample/OSDU R2 Azure PROD.postman_environment.json'
Markdown is supported
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