Unverified Commit e76f8ca8 authored by Karthik Satchitanand's avatar Karthik Satchitanand Committed by GitHub

Merge pull request #10 from gprasath/percona-singlereplica

Deploying percona app with single replica and executing snapshot functional test.
parents 9b108c41 6089421b
......@@ -79,6 +79,12 @@ percona-jiva-run/load/check 1:2:
script:
- ./script/apps/percona/workload/jiva/percona-app-workload-jiva
## PERCONA-JIVA-SINGLE-REPLICA
percona-jiva-single-replica-run/load/check:
extends: .app_deploy_template
script:
- ./script/apps/percona/deployer/percona-deploy-jiva-single-replica
## MONGO-JIVA
mongo-jiva-run/load/check 0:2:
extends: .app_deploy_template
......
#!/bin/bash
set -x
#################
## ENVIRONMENT ##
#################
#utils_path="/openebs/e2e-aws/script/utils"
## https://github.com/openebs/litmus/blob/master/apps/percona/deployers/test_vars.yml
run_id="single-replica"; test_name=$(${utils_path}/generate_test_name testcase=percona-deployment metadata=${run_id})
###################
## DEPENDENCIES ##
###################
${utils_path}/setup_dependencies litmus-test
## Clone the litmus repo,navigate to litmus root
git clone https://github.com/openebs/litmus.git
cd litmus
############################
## LITMUS PRECONDITIONING ##
############################
cp apps/percona/deployers/run_litmus_test.yml run_test.yml
sed -i -e 's/value: openebs-standard/value: openebs-standalone/g' \
-e 's/app: percona-deployment/app: percona-deployment-single-replica/g' \
-e 's/value: app-percona-ns/value: percona-single-replica/g' run_test.yml
sed -i '/command:/i \
- name: RUN_ID\
value: '"$run_id"'\
' run_test.yml
#################
## RUNNER MAIN ##
#################
echo "Running the litmus test.."
${utils_path}/litmus_job_runner label='app:percona-deployment-single-replica' job=run_test.yml
${utils_path}/task_delimiter;
echo "Dumping state of cluster post job run"; echo ""
${utils_path}/dump_cluster_state;
${utils_path}/task_delimiter;
#################
## GET RESULT ##
#################
## Check the test status & result from the litmus result custom resource
${utils_path}/get_litmus_result ${test_name}
......@@ -25,6 +25,9 @@ cd litmus
cp apps/percona/functional/k8s_snapshot/run_litmus_test.yml run_test.yml
# Updating the namespace in snapshot litmus book.
sed -i -e 's/value: app-percona-ns/value: percona-single-replica/g' run_test.yml
#################
## RUNNER MAIN ##
#################
......
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