@@ -512,7 +512,7 @@ def test_operator_upgrade(self, manifest, service, version_from, version_to=None
512
512
with When ("I create new shells" ):
513
513
shell_1 = get_shell ()
514
514
shell_2 = get_shell ()
515
- shell_3 = get_shell ()
515
+ # shell_3 = get_shell()
516
516
517
517
Check ("run query until receive stop event" , test = run_select_query , parallel = True )(
518
518
host = service ,
@@ -574,7 +574,7 @@ def test_operator_upgrade(self, manifest, service, version_from, version_to=None
574
574
@Name ("test_009_1. Test operator upgrade" )
575
575
@Requirements (RQ_SRS_026_ClickHouseOperator_Managing_UpgradingOperator ("1.0" ))
576
576
@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 ):
578
578
if version_to is None :
579
579
version_to = self .context .operator_version
580
580
@@ -590,7 +590,7 @@ def test_009_1(self, version_from="0.23.7", version_to=None):
590
590
@TestScenario
591
591
@Name ("test_009_2. Test operator upgrade" )
592
592
@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 ):
594
594
if version_to is None :
595
595
version_to = self .context .operator_version
596
596
@@ -943,12 +943,13 @@ def test_011_3(self):
943
943
sasl_username_env = ""
944
944
sasl_password_env = ""
945
945
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" ]
952
953
953
954
with By ("Secrets are properly propagated to env variables" ):
954
955
print (f"Found env variables: { sasl_username_env } { sasl_password_env } { user5_password_env } " )
@@ -1897,7 +1898,7 @@ def test_016(self):
1897
1898
"1" ,
1898
1899
)
1899
1900
# Wait for changes to propagate
1900
- time .sleep (90 )
1901
+ time .sleep (60 )
1901
1902
1902
1903
with Then ("test_norestart user should be available" ):
1903
1904
version = clickhouse .query (chi , sql = "select version()" , user = "test_norestart" )
@@ -4073,7 +4074,7 @@ def test_039_1(self):
4073
4074
4074
4075
@TestScenario
4075
4076
@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" )
4077
4078
def test_039_2 (self ):
4078
4079
"""Check clickhouse-operator support inter-cluster communications with plan text secret."""
4079
4080
create_shell_namespace_clickhouse_template ()
@@ -5129,9 +5130,9 @@ def test_053(self):
5129
5130
current ().context .operator_version = version_from
5130
5131
create_shell_namespace_clickhouse_template ()
5131
5132
5132
- manifest = "manifests/chi/test-001 .yaml"
5133
+ manifest = "manifests/chi/test-005-acm .yaml"
5133
5134
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"
5135
5136
pod = f"{ sts } -0"
5136
5137
5137
5138
kubectl .create_and_check (
0 commit comments