Skip to content

Commit 03fc431

Browse files
committed
adjustments
1 parent c278c1c commit 03fc431

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

e2e-tests/disabled-auth/conf/cluster-with-auth.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ spec:
66
image:
77
imagePullPolicy: Always
88
updateStrategy: SmartUpdate
9+
tls:
10+
mode: preferTLS
911
backup:
1012
enabled: true
1113
image: perconalab/percona-server-mongodb-operator:1.1.0-backup

e2e-tests/disabled-auth/run

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,16 +81,14 @@ echo "Find after restore: $count_no_auth_restored"
8181

8282
desc 'enable authentication'
8383
kubectl_bin apply -f "$conf_dir/secrets.yml"
84-
apply_cluster "$test_dir/conf/cluster-with-auth.yml"
8584

86-
desc 'wait for cluster to restart with auth enabled'
87-
wait_for_running $cluster-rs0 3
88-
wait_for_running $cluster-rs1 3
89-
wait_for_running $cluster-rs2 3
90-
wait_for_running $cluster-cfg 3 "false"
91-
wait_for_running $cluster-mongos 3
85+
pause_cluster "$cluster"
86+
wait_for_cluster_state "${cluster}" "paused"
87+
88+
apply_cluster "$test_dir/conf/cluster-with-auth.yml"
9289

93-
sleep 30
90+
unpause_cluster "$cluster"
91+
wait_for_cluster_state "${cluster}" "ready"
9492

9593
desc 'create users with auth enabled'
9694
run_mongos \

0 commit comments

Comments
 (0)