diff --git a/tests/integration/test_storage_kerberized_kafka/Dockerfile b/tests/integration/test_storage_kerberized_kafka/Dockerfile_kdc similarity index 100% rename from tests/integration/test_storage_kerberized_kafka/Dockerfile rename to tests/integration/test_storage_kerberized_kafka/Dockerfile_kdc diff --git a/tests/integration/test_storage_kerberized_kafka/kerberos_image_config.sh b/tests/integration/test_storage_kerberized_kafka/kerberos_image_config.sh index 5a9669e3db5..419c77e12e5 100644 --- a/tests/integration/test_storage_kerberized_kafka/kerberos_image_config.sh +++ b/tests/integration/test_storage_kerberized_kafka/kerberos_image_config.sh @@ -22,8 +22,8 @@ create_config() { default_realm = $REALM dns_lookup_realm = false dns_lookup_kdc = false - ticket_lifetime = 24h - renew_lifetime = 7d + ticket_lifetime = 15s + renew_lifetime = 15s forwardable = true # WARNING: We use weaker key types to simplify testing as stronger key types # require the enhanced security JCE policy file to be installed. You should diff --git a/tests/integration/test_storage_kerberized_kafka/secrets/krb.conf b/tests/integration/test_storage_kerberized_kafka/secrets/krb.conf index b36fe5bbe98..1efdf510f22 100644 --- a/tests/integration/test_storage_kerberized_kafka/secrets/krb.conf +++ b/tests/integration/test_storage_kerberized_kafka/secrets/krb.conf @@ -7,8 +7,8 @@ default_realm = TEST.CLICKHOUSE.TECH dns_lookup_realm = false dns_lookup_kdc = false - ticket_lifetime = 24h - renew_lifetime = 7d + ticket_lifetime = 15s + renew_lifetime = 15s forwardable = true [realms] diff --git a/tests/integration/test_storage_kerberized_kafka/test.py b/tests/integration/test_storage_kerberized_kafka/test.py index a0d147cffcc..92b4da88f70 100644 --- a/tests/integration/test_storage_kerberized_kafka/test.py +++ b/tests/integration/test_storage_kerberized_kafka/test.py @@ -116,6 +116,7 @@ def test_kafka_json_as_string_no_kdc(kafka_cluster): kafka_produce('kafka_json_as_string_no_kdc', ['{"t": 123, "e": {"x": "woof"} }', '', '{"t": 124, "e": {"x": "test"} }', '{"F1":"V1","F2":{"F21":"V21","F22":{},"F23":"V23","F24":"2019-12-24T16:28:04"},"F3":"V3"}']) kafka_cluster.pause_container('kafka_kerberos') + time.sleep(45) # wait for ticket expiration instance.query(''' CREATE TABLE test.kafka_no_kdc (field String)