@@ -512,7 +512,7 @@ def test_operator_upgrade(self, manifest, service, version_from, version_to=None
512512 with When ("I create new shells" ):
513513 shell_1 = get_shell ()
514514 shell_2 = get_shell ()
515- shell_3 = get_shell ()
515+ # shell_3 = get_shell()
516516
517517 Check ("run query until receive stop event" , test = run_select_query , parallel = True )(
518518 host = service ,
@@ -574,7 +574,7 @@ def test_operator_upgrade(self, manifest, service, version_from, version_to=None
574574@Name ("test_009_1. Test operator upgrade" )
575575@Requirements (RQ_SRS_026_ClickHouseOperator_Managing_UpgradingOperator ("1.0" ))
576576@Tags ("NO_PARALLEL" )
577- def test_009_1 (self , version_from = "0.23.7 " , version_to = None ):
577+ def test_009_1 (self , version_from = "0.24.3 " , version_to = None ):
578578 if version_to is None :
579579 version_to = self .context .operator_version
580580
@@ -590,7 +590,7 @@ def test_009_1(self, version_from="0.23.7", version_to=None):
590590@TestScenario
591591@Name ("test_009_2. Test operator upgrade" )
592592@Tags ("NO_PARALLEL" )
593- def test_009_2 (self , version_from = "0.23.7 " , version_to = None ):
593+ def test_009_2 (self , version_from = "0.24.3 " , version_to = None ):
594594 if version_to is None :
595595 version_to = self .context .operator_version
596596
@@ -943,12 +943,13 @@ def test_011_3(self):
943943 sasl_username_env = ""
944944 sasl_password_env = ""
945945 for e in envs :
946- if e ["valueFrom" ]["secretKeyRef" ]["key" ] == "KAFKA_SASL_USERNAME" :
947- sasl_username_env = e ["name" ]
948- if e ["valueFrom" ]["secretKeyRef" ]["key" ] == "KAFKA_SASL_PASSWORD" :
949- sasl_password_env = e ["name" ]
950- if e ["valueFrom" ]["secretKeyRef" ]["key" ] == "pwduser5" :
951- user5_password_env = e ["name" ]
946+ if "valueFrom" in e :
947+ if e ["valueFrom" ]["secretKeyRef" ]["key" ] == "KAFKA_SASL_USERNAME" :
948+ sasl_username_env = e ["name" ]
949+ if e ["valueFrom" ]["secretKeyRef" ]["key" ] == "KAFKA_SASL_PASSWORD" :
950+ sasl_password_env = e ["name" ]
951+ if e ["valueFrom" ]["secretKeyRef" ]["key" ] == "pwduser5" :
952+ user5_password_env = e ["name" ]
952953
953954 with By ("Secrets are properly propagated to env variables" ):
954955 print (f"Found env variables: { sasl_username_env } { sasl_password_env } { user5_password_env } " )
@@ -1897,7 +1898,7 @@ def test_016(self):
18971898 "1" ,
18981899 )
18991900 # Wait for changes to propagate
1900- time .sleep (90 )
1901+ time .sleep (60 )
19011902
19021903 with Then ("test_norestart user should be available" ):
19031904 version = clickhouse .query (chi , sql = "select version()" , user = "test_norestart" )
@@ -4073,7 +4074,7 @@ def test_039_1(self):
40734074
40744075@TestScenario
40754076@Requirements (RQ_SRS_026_ClickHouseOperator_InterClusterCommunicationWithSecret ("1.0" ))
4076- @Name ("test_039_2. Inter-cluster communications with plan text secret" )
4077+ @Name ("test_039_2. Inter-cluster communications with plane text secret" )
40774078def test_039_2 (self ):
40784079 """Check clickhouse-operator support inter-cluster communications with plan text secret."""
40794080 create_shell_namespace_clickhouse_template ()
@@ -5129,9 +5130,9 @@ def test_053(self):
51295130 current ().context .operator_version = version_from
51305131 create_shell_namespace_clickhouse_template ()
51315132
5132- manifest = "manifests/chi/test-001 .yaml"
5133+ manifest = "manifests/chi/test-005-acm .yaml"
51335134 chi = yaml_manifest .get_name (util .get_full_path (manifest ))
5134- sts = f"chi-{ chi } -single -0-0"
5135+ sts = f"chi-{ chi } -t1 -0-0"
51355136 pod = f"{ sts } -0"
51365137
51375138 kubectl .create_and_check (
0 commit comments