Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
E
e2e-packet
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
openebs
e2e-packet
Commits
715b9696
Commit
715b9696
authored
Nov 30, 2018
by
gprasath
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Including k8s snapshot & clone test in packet pipeline
Signed-off-by:
gprasath
<
giridhara.prasad@cloudbyte.com
>
parent
fc864d79
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
65 additions
and
0 deletions
+65
-0
.gitlab-ci.yml
.gitlab-ci.yml
+7
-0
k8s-snapshot-clone-cstor
...pt/apps/percona/functional/cstor/k8s-snapshot-clone-cstor
+58
-0
No files found.
.gitlab-ci.yml
View file @
715b9696
...
...
@@ -227,6 +227,13 @@ k8s-snapshot-clone-creation-{percona-jiva}:
script
:
-
./script/apps/percona/functional/jiva/k8s-snapshot-clone
# K8s-snapshot/clone test on cStor volume
cstor-k8s-snapshot-clone-creation-{snapshot-clone-cStor}
:
extends
:
.func_test_template
script
:
-
./script/apps/percona/functional/cstor/k8s-snapshot-clone-cstor
app-replica-scale-{cassandra-cstor}
:
extends
:
.func_test_template
#dependencies: cassandra-cstor
script
:
...
...
script/apps/percona/functional/cstor/k8s-snapshot-clone-cstor
0 → 100755
View file @
715b9696
#!/bin/bash
set
-x
#################
## ENVIRONMENT ##
#################
## https://github.com/openebs/litmus/blob/master/apps/percona/functional/k8s_snapshot/test_vars.yml
run_id
=
"cstor"
;
test_name
=
$(${
utils_path
}
/generate_test_name
testcase
=
create-k8s-snapshot-clone
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/functional/k8s_snapshot/run_litmus_test.yml run_test.yml
sed
-i
-e
's/value: app-percona-ns/value: percona-cstor/g'
\
-e
's/app: k8s-snapshot-litmus/app: cstor-k8s-snapshot-litmus/g'
run_test.yml
sed
-i
'/command:/i \
- name: RUN_ID\
value: '
"
$run_id
"
'\
'
run_test.yml
#################
## RUNNER MAIN ##
#################
## TODO: Keep testnames & label names similar & keep keys consistent for a type of test
echo
"Running the litmus test.."
${
utils_path
}
/litmus_job_runner
label
=
'app:cstor-k8s-snapshot-litmus'
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
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment