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

PHEE-476 Porting CI to helm test #196

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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
55 changes: 32 additions & 23 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ orbs:
helm: circleci/[email protected]
aws-eks: circleci/[email protected]
kubernetes: circleci/[email protected]
aws-cli: circleci/[email protected]
jobs:
build:
docker:
Expand Down Expand Up @@ -213,22 +214,37 @@ jobs:
- run: echo $AWS_DEFAULT_PROFILE
- run: sh orchestration/deployBpmn.sh

test-chart-gov:
helm-test:
docker:
- image: cimg/openjdk:17.0.0
steps:
- run: git clone https://github.com/openmf/ph-ee-integration-test
- run: cd ph-ee-integration-test && ./gradlew test -Dcucumber.filter.tags="@gov"
- store_test_results:
path: ph-ee-integration-test/build/test-results/test/TEST-org.mifos.integrationtest.TestRunner.xml
test-chart-ams:
docker:
- image: cimg/openjdk:17.0.0
- image: cimg/python:3.10
parameters:
cluster-name:
description: "sit"
type: string
steps:
- run: git clone https://github.com/openmf/ph-ee-integration-test
- run: cd ph-ee-integration-test && ./gradlew test -Dcucumber.filter.tags="@amsIntegration"
- store_test_results:
path: ph-ee-integration-test/build/test-results/test/TEST-org.mifos.integrationtest.TestRunner.xml
- aws-eks/update-kubeconfig-with-authenticator:
cluster-name: "sit"
aws-region: "$REGION"
- helm/install-helm-client:
version: "v3.8.2"
- kubernetes/install-kubectl
- run: helm ls --namespace=paymenthub
- run:
name: Run Helm Tests
command: |
helm test g2p-sandbox --namespace paymenthub || echo test
- run:
name: Fetch Integration Test Report
command: |
mkdir integration_report
kubectl cp paymenthub/`kubectl get pods -n paymenthub | grep g2p-sandbox-test-connection |cut -d " " -f1`:/ph-ee-connector-integration-test/build/reports/tests/test/ ./integration_report
- run:
name: List Contents of Integration Report Directory
command: |
ls -l ./integration_report
- store_artifacts:
path: ./integration_report
destination: integration_reports

workflows:
deploy:
Expand Down Expand Up @@ -279,18 +295,11 @@ workflows:
- AWS
- Helm
- slack
- test-chart-gov:
- helm-test:
cluster-name: sit
requires:
- create-secret-paymenthub-namespace
- deploying-bpmns
context:
- AWS
- Helm
- slack
- test-chart-ams:
requires:
- create-secret-paymenthub-namespace
- deploying-bpmns
context:
- AWS
- Helm
Expand Down