Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
144 commits
Select commit Hold shift + click to select a range
cf13cc8
test-compliance
Oct 5, 2023
39b5668
helm upgrade through test_entrypoint
Oct 20, 2023
b983ff8
helm upgrade through test_entrypoint 1
Oct 20, 2023
a0cb12d
helm upgrade through test_entrypoint 2
Oct 20, 2023
1541255
helm upgrade through test_entrypoint 3
Oct 20, 2023
5abdff0
helm upgrade through test_entrypoint 4
Oct 20, 2023
1172a44
helm upgrade through test_entrypoint 5
Oct 20, 2023
4ee52f4
helm upgrade through test_entrypoint 6
Oct 20, 2023
6fa2778
helm upgrade through test_entrypoint 7
Oct 20, 2023
bc09adc
helm upgrade through test_entrypoint 8
Oct 20, 2023
3f8bb24
test harness
Oct 20, 2023
bbfb431
test harness with helm install
Oct 20, 2023
dfff6ca
test harness with helm install
Oct 20, 2023
be053e1
test eks context
Oct 26, 2023
7a9e8af
test eks context
Oct 26, 2023
0fcdfb5
test eks context
Oct 26, 2023
daa1211
test eks context
Oct 26, 2023
cc28392
test eks context
Oct 26, 2023
ed86bd9
test eks context
Oct 26, 2023
9a22e43
test eks context
Oct 26, 2023
6d0e90e
test eks context
Oct 26, 2023
5202f11
test eks context
Oct 27, 2023
9f7d538
test eks context
Oct 27, 2023
bc7f2a3
test eks context
Oct 27, 2023
5b5d4b5
test eks context
Oct 27, 2023
f36366a
test eks context
Oct 27, 2023
8c24442
test eks context
Oct 27, 2023
403e5cd
test eks context
Oct 27, 2023
81dac5a
test eks context
Oct 27, 2023
8e4dcd5
test eks context
Oct 27, 2023
2d9df80
test eks context
Oct 27, 2023
508ad6d
test with exporting the secrets
Oct 30, 2023
4007d11
test with exporting the secrets
Oct 30, 2023
b1cca16
test with orb varain=ble
Oct 30, 2023
486786b
test with export context variables
Oct 30, 2023
9915ee9
test with export context variables
Oct 30, 2023
5db4792
test with profile aws configure
Oct 30, 2023
1412a50
test with profile aws configure with set values
Oct 30, 2023
6930921
test with profile aws configure with set values
Oct 30, 2023
4417747
test with profile aws configure with set values
Oct 30, 2023
4a6dc53
test with profile aws configure with set values
Oct 30, 2023
7105644
test with profile aws configure with set values
Oct 30, 2023
faaedda
test crete secret without orbs
Oct 30, 2023
adf108a
test crete secret without orbs
Oct 30, 2023
c90d9a4
test crete secret without orbs
Oct 30, 2023
5db570e
test crete secret without orbs
Oct 30, 2023
c5b2c68
test crete secret without orbs
Oct 30, 2023
00338aa
test crete secret without orbs
Oct 30, 2023
17720e8
test crete secret without orbs
Oct 30, 2023
ec2f536
test export the orb in shell script
Oct 30, 2023
1f11509
test export the orb in shell script
Oct 30, 2023
1ab9674
test export the orb in shell script with eks kubconfig update
Oct 30, 2023
6ec2b9c
test export the orb in shell script with eks kubconfig update
Oct 30, 2023
80b6d58
test with eks orbs code
Oct 30, 2023
f37a2c0
test with eks orbs code
Oct 30, 2023
a055298
test with eks orbs code
Oct 30, 2023
cc78108
test with eks orbs code
Oct 30, 2023
4692585
test with eks orbs code
Oct 30, 2023
cf42a83
test with eks orbs code
Oct 30, 2023
b945e8a
test with cluster credentials
Dec 12, 2023
c22b1aa
test with cluster credentials
Dec 12, 2023
28ee910
test with cluster credentials
Dec 12, 2023
f23abcb
install helm
Dec 12, 2023
f44ffc3
install helm
Dec 12, 2023
af6024d
install helm
Dec 12, 2023
4ab780c
install helm
Dec 12, 2023
d1026ab
assume role
Dec 13, 2023
387ea9a
insatll kubectl
Dec 13, 2023
84eac62
kubectl cluster-info dump
Dec 13, 2023
4c9a0c5
setup Minikube in govstack env
Dec 18, 2023
12a567c
install helm and deploy paymenthub
Dec 18, 2023
eee7d54
install helm and deploy paymenthub
Dec 18, 2023
70d36dd
test deploy
Dec 19, 2023
7d3bb70
test deploy
Dec 19, 2023
cb9f048
install kubectl
Dec 19, 2023
a5560d8
install kubectl
Dec 19, 2023
4a8fbc4
install kubectl
Dec 19, 2023
c9e9a28
helm deploy and helm test
Dec 19, 2023
8352b39
helm deploy and helm test with wait time
Dec 19, 2023
4e747f8
helm deploy and helm test with wait time
Dec 19, 2023
2aa17a3
helm deploy and helm test with wait time
Dec 19, 2023
34e9aa4
helm deploy and helm test with wait time
Dec 19, 2023
7882175
helm deploy and helm test with wait time
Dec 19, 2023
d0eccaa
helm deploy and helm test with wait time
Dec 19, 2023
550ac08
helm deploy and helm test with wait time
Dec 19, 2023
d05a6af
helm deploy and helm test with wait time
Dec 19, 2023
9eaae95
helm deploy and helm test with wait time
Dec 19, 2023
d594236
helm deploy and helm test with wait time
Dec 19, 2023
70e979d
helm deploy and helm test with wait time
Dec 20, 2023
88989d1
helm deploy and helm test with wait time
Dec 20, 2023
abcdcc9
helm deploy and helm test with wait time
Dec 20, 2023
a46e7b8
helm deploy and helm test with wait time
Dec 20, 2023
f396ebf
helm deploy and helm test with wait time
Dec 20, 2023
aeedde1
Create secret and deploy BPMN
Dec 20, 2023
a19bb24
Create secret and deploy BPMN
Dec 20, 2023
5df793a
Create secret and deploy BPMN
Dec 20, 2023
3d8fada
test with wait time
Dec 21, 2023
7294847
test with wait time
Dec 21, 2023
4f02049
test with wait time
Dec 21, 2023
fdc5107
test with wait time after helm install
Dec 21, 2023
00f8786
test with wait time after helm install
Dec 21, 2023
ef866e0
increase delay time
Jan 3, 2024
b996d6c
increase delay time
Jan 3, 2024
65f4e30
helm deploy with wait time
Jan 4, 2024
2197a40
git clone ES timeout
Jan 4, 2024
6c3a071
describe pod to check the health
Jan 4, 2024
3da63fd
describe pod to check the health
Jan 4, 2024
db6b741
describe pod to check the health
Jan 4, 2024
dcdcf57
wait for the pods and git clone for kibana
Jan 4, 2024
fa3fb45
wait for the pods and git clone for kibana
Jan 4, 2024
2ec0721
wait for the pods and git clone for kibana
Jan 4, 2024
cbf8e59
wait for the pods and git clone for kibana
Jan 4, 2024
e599be7
wait for the pods and git clone for kibana
Jan 4, 2024
c041e50
wait for test to complete
Jan 5, 2024
0416957
store the result
Jan 5, 2024
eedbc36
check for secrets and configmap
Jan 5, 2024
004c791
check for secrets and configmap
Jan 5, 2024
5d42c75
check for secrets and configmap in ph NS
Jan 5, 2024
0b87707
check for secrets and configmap in ph NS
Jan 5, 2024
0f90b7b
check for secrets and configmap in ph NS
Jan 5, 2024
a2f4c29
check for secrets and configmap in ph NS
Jan 5, 2024
f74f065
check for secrets and configmap in ph NS
Jan 5, 2024
3c1e2ab
check for secrets and configmap in ph NS
Jan 5, 2024
b1cdd75
check for secrets and configmap in ph NS
Jan 5, 2024
72212f3
store test result
Jan 6, 2024
2b9c39b
store test result
Jan 6, 2024
166d338
add steps to entrypoint.sh
Jan 10, 2024
43c4d64
install kubectl and helm
Jan 11, 2024
c7798b7
install kubectl and helm
Jan 11, 2024
b9cd74d
install kubectl and helm
Jan 11, 2024
a8fa018
install kubectl and helm
Jan 11, 2024
07f8a3a
install kubectl and helm
Jan 11, 2024
1c6e2c0
install kubectl and helm
Jan 11, 2024
d0e1d04
install kubectl and helm
Jan 11, 2024
61c120d
install kubectl and helm
Jan 11, 2024
a10112d
install kubectl and helm
Jan 11, 2024
4ca719a
deploy hello-world and test
Jan 11, 2024
63c820b
deploy hello-world and test
Jan 11, 2024
be04238
deploy g2psandbox and helm test
Jan 11, 2024
dcd504b
deploy g2psandbox and helm test
Jan 11, 2024
299c20d
helm test with g2psandbox
Jan 11, 2024
35c3b94
helm test with g2psandbox
Jan 11, 2024
0da77e0
helm test with g2psandbox
Jan 11, 2024
d937c3e
helm test with g2psandbox
Jan 11, 2024
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
4 changes: 3 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ workflows:
test_everything:
jobs:
- test-harness/create-config:
pre-steps:
- run: echo "hello" > /home/circleci/parameters.json
post-steps: # Persist to workspace has to be defined in main workflow
- persist_to_workspace:
root: workspace
paths:
- generated.yml
- test-harness/execute-tests:
requires:
- test-harness/create-config
- test-harness/create-config
93 changes: 93 additions & 0 deletions examples/bb-payments/test_entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
#!/bin/bash
#install kubectl
sudo apt-get update
sudo apt-get install -y apt-transport-https ca-certificates curl gpg
sudo mkdir -p /etc/apt/keyrings
sudo touch -y /etc/apt/keyrings/kubernetes-apt-keyring.gpg
curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.28/deb/Release.key | sudo gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg
echo 'deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.28/deb/ /' | sudo tee /etc/apt/sources.list.d/kubernetes.list
sudo apt-get update
sudo apt-get install -y kubelet kubeadm kubectl
sudo apt-mark hold kubelet kubeadm kubectl
kubectl version

#Setup Minikube
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube_latest_amd64.deb
sudo dpkg -i minikube_latest_amd64.deb
minikube start
minikube kubectl -- get po -A #Interact with Minikube cluster
echo minikube started

#helm install
curl https://baltocdn.com/helm/signing.asc | gpg --dearmor | sudo tee /usr/share/keyrings/helm.gpg > /dev/null
sudo apt-get install apt-transport-https --yes
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/helm.gpg] https://baltocdn.com/helm/stable/debian/ all main" | sudo tee /etc/apt/sources.list.d/helm-stable-debian.list
sudo apt-get update
sudo apt-get install helm

#payment install
kubectl apply -f https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/main/example/prometheus-operator-crd/monitoring.coreos.com_servicemonitors.yaml #Install ServiceMonitor
kubectl create namespace paymenthub
kubectl get -A namespace
helm repo add g2p-sandbox-1-3-1 https://fynarfin.io/images/ph-ee-g2psandbox-1.3.1/
helm install ph-ee-g2psandbox g2p-sandbox-1-3-1/ph-ee-g2psandbox --version 1.3.1 -n paymenthub
sleep 300
kubectl get pods -n paymenthub

#create secrets
git clone -b 7.17 https://github.com/elastic/helm-charts.git elastic/helm-charts
# sleep 300
cd elastic/helm-charts/elasticsearch/examples/security/
make secrets || echo "elastic-secrets" already exists
git clone -b 7.17 https://github.com/elastic/helm-charts.git elastic/helm-charts
cd elastic/helm-charts/kibana/examples/security/
make secrets || echo "kibana-secrets" already exists
kubectl get secret elastic-certificate-crt -n default -o yaml | sed 's/namespace: default/namespace: paymenthub/' | kubectl create -f -
kubectl get secret elastic-certificate-pem -n default -o yaml | sed 's/namespace: default/namespace: paymenthub/' | kubectl create -f -
kubectl get secret elastic-certificates -n default -o yaml | sed 's/namespace: default/namespace: paymenthub/' | kubectl create -f -
kubectl get secret elastic-credentials -n default -o yaml | sed 's/namespace: default/namespace: paymenthub/' | kubectl create -f -
kubectl get secret kibana -n default -o yaml | sed 's/namespace: default/namespace: paymenthub/' | kubectl create -f -
kubectl get secrets -n paymenthub

#insatll netcat
apt install -y netcat
# until nc -vz ph-ee-zeebe-ops 80; do echo "Waiting for zeebe-ops service"; sleep 2; done;
#Deploy BPMN
kubectl port-forward service/ph-ee-zeebe-ops 5000:80 -n paymenthub & #portforward zeebe-ops &'
git clone https://github.com/openMF/ph-ee-env-labs.git openMF/ph-ee-env-labs
cd openMF/ph-ee-env-labs/orchestration
ls
sed -i "/HOST=/c\HOST=http://localhost:5000/zeebe/upload" deployBpmn.sh
cat deployBpmn.sh
cd ..
sh orchestration/deployBpmn.sh
ls /home/circleci/project/test/openAPI/result/
# checkout
#helm test
pwd
kubectl get pods -n paymenthub
# kubectl describe po -n paymenthub `kubectl get pods -n paymenthub | grep ph-ee-zeebe-ops |cut -d ' ' -f1` || echo ' '
# sleep 20m
helm test ph-ee-g2psandbox -n paymenthub --timeout 5m
kubectl get pods -n paymenthub
echo test completed
kubectl describe pod g2p-sandbox-test-connection -n paymenthub
echo check for the logs
kubectl logs -f g2p-sandbox-test-connection -n paymenthub
# no_output_timeout=900

#export test results
mkdir -p integration_report/test-report
kubectl cp paymenthub/`kubectl get pods -n paymenthub | grep g2p-sandbox-test-connection |cut -d " " -f1`:/ph-ee-connector-integration-test/build /home/circleci/project/test/openAPI/result/

# Specify the path to the downloaded file
downloaded_file="/home/circleci/project/test/openAPI/result/cucumber.xml"

# Loop until the file is not empty
while [ ! -s $downloaded_file ]; do
echo "File is empty, waiting..."
sleep 60 # You can adjust the sleep interval as needed
kubectl cp paymenthub/`kubectl get pods -n paymenthub | grep g2p-sandbox-test-connection |cut -d " " -f1`:/ph-ee-connector-integration-test/build/ /home/circleci/project/test/openAPI/result/
downloaded_file="/home/circleci/project/test/openAPI/result/cucumber.xml "
done
echo "File is no longer empty, processing..."