Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: Yang Chiu <[email protected]>
  • Loading branch information
yangchiu committed Aug 22, 2024
1 parent 5d79328 commit 46245f2
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 13 deletions.
18 changes: 17 additions & 1 deletion .github/workflows/qase-sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,29 @@ jobs:
for file_path in "${test_cases[@]}"; do
if [[ ! -e "${file_path}" ]]; then
echo "${file_path} has been deleted"
git checkout HEAD^ -- "${file_path}"
delete_test_case=true
fi
title=$(grep '^title:' ${file_path} | sed 's/title: //g' | sed 's/"/\\"/g')
echo "got test case title: ${title}"
description=$(sed -z 's/\n/\\n/g' ${file_path} | sed 's/ \\/ \\\\/g' | sed 's/"/\\"/g')
echo "got test case description: ${description}"
res=$(curl -s --request GET --url "https://api.qase.io/v1/case/LH" --get --data-urlencode "search=${title}" --header "Token: ${token}" --header "accept: application/json")
if [[ $(echo $res | jq .result.count) -ne "0" ]]; then
if [[ $(echo $res | jq .result.count) -ne "0" ]] && [[ ${delete_test_case} ]]; then
# delete existing test case
test_case_id=$(echo $res | jq .result.entities[0].id)
res=$(curl --request DELETE -s \
--url "https://api.qase.io/v1/case/LH/${test_case_id}" \
--header "Token: ${token}" \
--header "accept: application/json")
echo "deleted existing test case: ${res}"
elif [[ $(echo $res | jq .result.count) -ne "0" ]]; then
# update existing test case
test_case_id=$(echo $res | jq .result.entities[0].id)
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Restore to a new cluster
---

#### Back up the old cluster
1. Deploy the 1st cluster then install Longhorn system and Velero.
1. Deploy the 1st cluster then install Longhorn system and Velero.OKOK
2. Deploy some workloads using Longhorn volumes then write some data:
1. A simple pod using multiple volumes. And some volumes are using backing images.
2. A StatefulSet.
Expand Down

0 comments on commit 46245f2

Please sign in to comment.