Skip to content

Commit

Permalink
fix folder name in test scripts (#578)
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-sun-star authored Sep 27, 2024
1 parent 0c2fb7e commit 3474c5a
Show file tree
Hide file tree
Showing 41 changed files with 62 additions and 62 deletions.
4 changes: 2 additions & 2 deletions tests/case_p2_Resource/check_P2_v211_01_with_anno.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
source setup.sh
source util.sh
source env.sh
#source case_p2_v211/env_vars.sh
#source case_p2_Resource/env_vars.sh

# prepare create related resources to create obcluster
prepare() {
Expand Down Expand Up @@ -175,7 +175,7 @@ check_pvc() {
}

export_to_file() {
local output_file="case_p2_v211/env_vars.sh"
local output_file="case_p2_Resource/env_vars.sh"
cat <<EOF > "$output_file"
export PASSWORD="$PASSWORD"
export SUFFIX="$SUFFIX"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
source setup.sh
source util.sh
source env.sh
source case_p2_v211/env_vars.sh
source case_p2_Resource/env_vars.sh

#prepare create related resources to create obcluster
prepare() {
Expand Down
4 changes: 2 additions & 2 deletions tests/case_p2_Resource/check_P2_v211_05_extra_opt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
source setup.sh
source util.sh
source env.sh
source case_p2_v211/env_vars.sh
source case_p2_Resource/env_vars.sh

# prepare create related resources to create obcluster
prepare() {
Expand Down Expand Up @@ -108,7 +108,7 @@ check_parameters() {
}

export_to_file() {
local output_file="case_p2_v211/env_vars.sh"
local output_file="case_p2_Resource/env_vars.sh"
cat <<EOF > "$output_file"
export PASSWORD="$PASSWORD"
export SUFFIX="$SUFFIX"
Expand Down
6 changes: 3 additions & 3 deletions tests/case_p2_Resource/check_P2_v211_06_disk_resources.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
source setup.sh
source util.sh
source env.sh
source case_p2_v211/env_vars.sh
source case_p2_Resource/env_vars.sh

# clean up delete everything by deleting the entire namespace
cleanup() {
kubectl delete namespace $NAMESPACE
rm -rf case_p2_v211/env_vars.sh
rm -rf case_p2_Resource/env_vars.sh
}

run() {
Expand Down Expand Up @@ -96,7 +96,7 @@ check_disk_resources() {
}

export_to_file() {
local output_file="case_p2_v211/env_vars.sh"
local output_file="case_p2_Resource/env_vars.sh"
cat <<EOF > "$output_file"
export PASSWORD="$PASSWORD"
export SUFFIX="$SUFFIX"
Expand Down
6 changes: 3 additions & 3 deletions tests/case_p2_Resource/check_P2_v211_07_tenant_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
source setup.sh
source util.sh
source env.sh
source case_p2_v211/env_211_vars.sh
source case_p2_Resource/env_211_vars.sh

# prepare create related resources to create obcluster
prepare() {
Expand Down Expand Up @@ -46,7 +46,7 @@ prepare() {
# clean up delete everything by deleting the entire namespace
cleanup() {
kubectl delete namespace $NAMESPACE
rm -rf case_p2_v211/env_211_vars.sh
rm -rf case_p2_Resource/env_211_vars.sh
}

run() {
Expand Down Expand Up @@ -175,7 +175,7 @@ check_operation() {
}

export_to_file() {
local output_file="case_p2_v211/env_211_vars.sh"
local output_file="case_p2_Resource/env_211_vars.sh"
cat <<EOF > "$output_file"
export PASSWORD="$PASSWORD"
export SUFFIX="$SUFFIX"
Expand Down
4 changes: 2 additions & 2 deletions tests/case_p3_AdvancedConfig/check_P3_v212_01_standalone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
source setup.sh
source util.sh
source env.sh
#source case_p3_v212/env_vars.sh
#source case_p3_AdvancedConfig/env_vars.sh

# prepare create related resources to create obcluster
prepare() {
Expand Down Expand Up @@ -87,7 +87,7 @@ check_in_obcluster() {


export_to_file() {
local output_file="case_p3_v212/env_vars.sh"
local output_file="case_p3_AdvancedConfig/env_vars.sh"
cat <<EOF > "$output_file"
export PASSWORD="$PASSWORD"
export SUFFIX="$SUFFIX"
Expand Down
2 changes: 1 addition & 1 deletion tests/case_p3_AdvancedConfig/check_P3_v212_02_scaled_up.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
source setup.sh
source util.sh
source env.sh
source case_p3_v212/env_vars.sh
source case_p3_AdvancedConfig/env_vars.sh

# prepare create related resources to create obcluster
prepare() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
source setup.sh
source util.sh
source env.sh
source case_p3_v212/env_vars.sh
source case_p3_AdvancedConfig/env_vars.sh

# prepare create related resources to create obcluster

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
source setup.sh
source util.sh
source env.sh
source case_p3_v212/env_vars.sh
source case_p3_AdvancedConfig/env_vars.sh
# prepare create related resources to create obcluster
prepare() {
export OBCLUSTER_NAME_THREE_NODE=testthreenode$SUFFIX
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
source setup.sh
source util.sh
source env.sh
source case_p3_v212/env_vars.sh
source case_p3_AdvancedConfig/env_vars.sh
# prepare create related resources to create obcluster
prepare() {
export OBCLUSTER_NAME_STANDBY=obclusterstandby$SUFFIX
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
source setup.sh
source util.sh
source env.sh
source case_p3_v212/env_vars.sh
source case_p3_AdvancedConfig/env_vars.sh

# clean up delete everything by deleting the entire namespace
cleanup() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
source setup.sh
source util.sh
source env.sh
source case_p3_v212/env_vars.sh
source case_p3_AdvancedConfig/env_vars.sh

# prepare create related resources to create obcluster
prepare() {
Expand All @@ -16,7 +16,7 @@ prepare() {
# clean up delete everything by deleting the entire namespace
cleanup() {
kubectl delete namespace $NAMESPACE
rm -rf case_p3_v212/env_vars.sh
rm -rf case_p3_AdvancedConfig/env_vars.sh
}

run() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
source setup.sh
source util.sh
source env.sh
#source case_p4_v220_and_v211/env_vars.sh
#source case_p4_ResourceModification/env_vars.sh

# prepare create related resources to create obcluster
prepare() {
Expand Down Expand Up @@ -105,7 +105,7 @@ check_obtenant_not_running() {
}

export_to_file() {
local output_file="case_p4_v220_and_v211/env_vars.sh"
local output_file="case_p4_ResourceModification/env_vars.sh"
cat <<EOF > "$output_file"
export PASSWORD="$PASSWORD"
export SUFFIX="$SUFFIX"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
source setup.sh
source util.sh
source env.sh
source case_p4_v220_and_v211/env_vars.sh
source case_p4_ResourceModification/env_vars.sh

# prepare create related resources to create obcluster
prepare() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
source setup.sh
source util.sh
source env.sh
source case_p4_v220_and_v211/env_vars.sh
source case_p4_ResourceModification/env_vars.sh

# prepare create related resources to create obcluster
prepare() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
source setup.sh
source util.sh
source env.sh
source case_p4_v220_and_v211/env_vars.sh
source case_p4_ResourceModification/env_vars.sh

# prepare create related resources to create obcluster
prepare() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
source setup.sh
source util.sh
source env.sh
source case_p4_v220_and_v211/env_vars.sh
source case_p4_ResourceModification/env_vars.sh

# prepare create related resources to create obcluster
prepare() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
source setup.sh
source util.sh
source env.sh
source case_p4_v220_and_v211/env_vars.sh
source case_p4_ResourceModification/env_vars.sh

# prepare create related resources to create obcluster
prepare() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
source setup.sh
source util.sh
source env.sh
source case_p4_v220_and_v211/env_vars.sh
source case_p4_ResourceModification/env_vars.sh

# prepare create related resources to create obcluster
prepare() {
Expand All @@ -14,7 +14,7 @@ prepare() {
# clean up delete everything by deleting the entire namespace
cleanup() {
kubectl delete namespace $NAMESPACE
rm -rf case_p4_v220_and_v211/env_vars.sh
rm -rf case_p4_ResourceModification/env_vars.sh
}

cleanup_obcluster() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
source setup.sh
source util.sh
source env.sh
source case_p4_v220_and_v211/env_221_vars.sh
source case_p4_ResourceModification/env_221_vars.sh

# prepare create related resources to create obcluster
prepare() {
Expand Down Expand Up @@ -56,7 +56,7 @@ prepare() {
}

export_to_file() {
local output_file="case_p4_v220_and_v211/env_221_vars.sh"
local output_file="case_p4_ResourceModification/env_221_vars.sh"
cat <<EOF > "$output_file"
export PASSWORD="$PASSWORD"
export SUFFIX="$SUFFIX"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
source setup.sh
source util.sh
source env.sh
source case_p4_v220_and_v211/env_221_vars.sh
source case_p4_ResourceModification/env_221_vars.sh

# prepare create related resources to create obcluster
prepare() {
Expand All @@ -26,7 +26,7 @@ prepare() {
}

export_to_file() {
local output_file="case_p4_v220_and_v211/env_221_vars.sh"
local output_file="case_p4_ResourceModification/env_221_vars.sh"
cat <<EOF > "$output_file"
export PASSWORD="$PASSWORD"
export SUFFIX="$SUFFIX"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
source setup.sh
source util.sh
source env.sh
source case_p4_v220_and_v211/env_221_vars.sh
source case_p4_ResourceModification/env_221_vars.sh

# prepare create related resources to create obcluster
prepare() {
Expand All @@ -29,7 +29,7 @@ prepare() {
}

export_to_file() {
local output_file="case_p4_v220_and_v211/env_221_vars.sh"
local output_file="case_p4_ResourceModification/env_221_vars.sh"
cat <<EOF > "$output_file"
export PASSWORD="$PASSWORD"
export SUFFIX="$SUFFIX"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
source setup.sh
source util.sh
source env.sh
source case_p4_v220_and_v211/env_221_vars.sh
source case_p4_ResourceModification/env_221_vars.sh

# prepare create related resources to create obcluster
prepare() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
source setup.sh
source util.sh
source env.sh
source case_p4_v220_and_v211/env_221_vars.sh
source case_p4_ResourceModification/env_221_vars.sh

# prepare create related resources to create obcluster
prepare() {
Expand All @@ -29,7 +29,7 @@ prepare() {
}

export_to_file() {
local output_file="case_p4_v220_and_v211/env_221_vars.sh"
local output_file="case_p4_ResourceModification/env_221_vars.sh"
cat <<EOF > "$output_file"
export PASSWORD="$PASSWORD"
export SUFFIX="$SUFFIX"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
source setup.sh
source util.sh
source env.sh
source case_p4_v220_and_v211/env_221_vars.sh
source case_p4_ResourceModification/env_221_vars.sh

# prepare create related resources to create obcluster
prepare() {
Expand All @@ -29,7 +29,7 @@ prepare() {
}

export_to_file() {
local output_file="case_p4_v220_and_v211/env_221_vars.sh"
local output_file="case_p4_ResourceModification/env_221_vars.sh"
cat <<EOF > "$output_file"
export PASSWORD="$PASSWORD"
export SUFFIX="$SUFFIX"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
source setup.sh
source util.sh
source env.sh
source case_p4_v220_and_v211/env_221_vars.sh
source case_p4_ResourceModification/env_221_vars.sh

# prepare create related resources to create obcluster
prepare() {
Expand All @@ -26,7 +26,7 @@ prepare() {
}

export_to_file() {
local output_file="case_p4_v220_and_v211/env_221_vars.sh"
local output_file="case_p4_ResourceModification/env_221_vars.sh"
cat <<EOF > "$output_file"
export PASSWORD="$PASSWORD"
export SUFFIX="$SUFFIX"
Expand All @@ -44,7 +44,7 @@ EOF
# clean up delete everything by deleting the entire namespace
cleanup() {
kubectl delete namespace $NS_DEFAULT $NS_OCEANBASE_TEST
rm -rf case_p4_v220_and_v211/env_221_vars.sh
rm -rf case_p4_ResourceModification/env_221_vars.sh
}

run() {
Expand Down
Loading

0 comments on commit 3474c5a

Please sign in to comment.