Skip to content

Commit

Permalink
updating for 1.19.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ptankov committed Nov 20, 2024
1 parent c9ba565 commit 12dcce1
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions e2e-tests/upgrade-consistency/run
Original file line number Diff line number Diff line change
Expand Up @@ -12,44 +12,43 @@ main() {
create_infra $namespace

desc 'create secrets and start client'
kubectl_bin apply -f "${conf_dir}/client.yml" \
-f "${conf_dir}/secrets.yml"
kubectl_bin apply -f "${conf_dir}/client.yml" -f "${conf_dir}/secrets.yml"

desc "create first PSMDB cluster 1.16.2 $CLUSTER"
desc "create first PSMDB cluster 1.17.0 $CLUSTER"
apply_cluster "$test_dir/conf/${CLUSTER}-rs0.yml"

desc 'check if Pod started'
wait_for_running "${CLUSTER}-rs0" "3" "true"

desc 'check if service and statefulset created with expected config'
compare_kubectl service/${CLUSTER}-rs0 "-1162"
compare_kubectl statefulset/${CLUSTER}-rs0 "-1162"
compare_kubectl service/${CLUSTER}-rs0 "-1170"
compare_kubectl statefulset/${CLUSTER}-rs0 "-1170"

desc 'test 1.17.0'
desc 'test 1.18.0'
kubectl_bin patch psmdb "${CLUSTER}" --type=merge --patch '{
"spec": {"crVersion":"1.17.0"}
"spec": {"crVersion":"1.18.0"}
}'
# Wait for at least one reconciliation
sleep 10
desc 'check if Pod started'
wait_for_running "${CLUSTER}-rs0" "3" "true"

desc 'check if service and statefulset created with expected config'
compare_kubectl service/${CLUSTER}-rs0 "-1170"
compare_kubectl statefulset/${CLUSTER}-rs0 "-1170"
compare_kubectl service/${CLUSTER}-rs0 "-1180"
compare_kubectl statefulset/${CLUSTER}-rs0 "-1180"

desc 'test 1.18.0'
desc 'test 1.19.0'
kubectl_bin patch psmdb "${CLUSTER}" --type=merge --patch '{
"spec": {"crVersion":"1.18.0"}
"spec": {"crVersion":"1.19.0"}
}'
# Wait for at least one reconciliation
sleep 10
desc 'check if Pod started'
wait_for_running "${CLUSTER}-rs0" "3" "true"

desc 'check if service and statefulset created with expected config'
compare_kubectl service/${CLUSTER}-rs0 "-1180"
compare_kubectl statefulset/${CLUSTER}-rs0 "-1180"
compare_kubectl service/${CLUSTER}-rs0 "-1190"
compare_kubectl statefulset/${CLUSTER}-rs0 "-1190"

destroy $namespace

Expand Down

0 comments on commit 12dcce1

Please sign in to comment.