repo stringclasses 454
values | file_path stringlengths 5 201 | extension stringclasses 1
value | content stringlengths 8 509k | num_lines int64 3 16.9k | size_bytes int64 8 511k |
|---|---|---|---|---|---|
kafka | tests/kafkatest/tests/streams/streams_application_upgrade_test.py | .py | # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use ... | 316 | 17,111 |
kafka | tests/kafkatest/tests/streams/streams_upgrade_test.py | .py | # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use ... | 550 | 30,540 |
kafka | tests/kafkatest/tests/streams/streams_topology_description_plugin_test.py | .py | # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use ... | 164 | 8,031 |
kafka | tests/kafkatest/tests/streams/streams_static_membership_test.py | .py | # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use ... | 468 | 18,971 |
kafka | tests/kafkatest/tests/streams/streams_broker_down_resilience_test.py | .py | # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use ... | 341 | 18,773 |
kafka | tests/kafkatest/tests/streams/streams_shutdown_deadlock_test.py | .py | # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use ... | 51 | 1,913 |
kafka | tests/kafkatest/tests/streams/streams_smoke_test.py | .py | # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use ... | 125 | 6,468 |
kafka | tests/kafkatest/tests/streams/base_streams_test.py | .py | # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use ... | 141 | 6,643 |
kafka | tests/kafkatest/tests/streams/streams_broker_compatibility_test.py | .py | # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use ... | 109 | 5,481 |
kafka | tests/kafkatest/tests/streams/streams_named_repartition_topic_test.py | .py | # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use ... | 97 | 4,105 |
kafka | tests/kafkatest/tests/streams/streams_broker_bounce_test.py | .py | # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use ... | 293 | 12,798 |
kafka | tests/kafkatest/tests/streams/streams_optimized_test.py | .py | # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use ... | 149 | 7,208 |
kafka | tests/kafkatest/tests/streams/utils/util.py | .py | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the Li... | 44 | 2,097 |
kafka | tests/kafkatest/utils/transactions_utils.py | .py | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the Li... | 56 | 2,355 |
kafka | tests/kafkatest/utils/util.py | .py | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the Li... | 181 | 8,159 |
kafka | tests/kafkatest/utils/remote_account.py | .py | # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use ... | 59 | 2,124 |
kafka | tests/kafkatest/directory_layout/kafka_path.py | .py | # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use ... | 144 | 5,787 |
kafka | tests/unit/version/check_version.py | .py | # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use ... | 33 | 1,257 |
kafka | tests/unit/directory_layout/check_project_paths.py | .py | # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use ... | 91 | 3,681 |
kafka | committer-tools/find-unfinished-test.py | .py | # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use ... | 67 | 2,438 |
kafka | committer-tools/kafka-merge-pr.py | .py | #!/usr/bin/env python
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "Li... | 484 | 19,696 |
kafka | committer-tools/reviewers.py | .py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import json
import shlex
import subprocess
import tempfile
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
... | 146 | 5,372 |
kafka | committer-tools/verify_license.py | .py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache Licens... | 151 | 5,703 |
kafka | committer-tools/refresh_collaborators.py | .py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 151 | 5,271 |
kafka | release/notes.py | .py | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 175 | 6,491 |
kafka | release/runtime.py | .py | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 147 | 4,034 |
kafka | release/preferences.py | .py | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 92 | 2,256 |
kafka | release/textfiles.py | .py | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 74 | 2,033 |
kafka | release/gh_actions.py | .py | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 96 | 3,300 |
kafka | release/git.py | .py | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 141 | 4,004 |
kafka | release/test_gh_actions.py | .py | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 408 | 15,216 |
kafka | release/test_docker_trigger_interactive.py | .py | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 105 | 3,579 |
kafka | release/svn.py | .py | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 61 | 2,474 |
kafka | release/release.py | .py | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 435 | 20,572 |
kafka | release/gpg.py | .py | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 91 | 2,628 |
kafka | release/templates.py | .py | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 308 | 13,752 |
confluent-kafka-python | setup.py | .py | #!/usr/bin/env python
import os
import platform
from setuptools import Extension, setup
work_dir = os.path.dirname(os.path.realpath(__file__))
mod_dir = os.path.join(work_dir, 'src', 'confluent_kafka')
ext_dir = os.path.join(mod_dir, 'src')
# On Un*x the library is linked as -lrdkafka,
# while on windows we need th... | 34 | 922 |
confluent-kafka-python | tools/generate_kafka_error_stub_codes.py | .py | #!/usr/bin/env python3
"""
Generate KafkaError codes to be exposed in KafkaError stub class in cimpl.pyi
This script introspects the compiled C extension to extract all error codes
and generates the KafkaError class error codes
Usage:
python3 tools/generate_kafka_error_stub_codes.py # Prints the error co... | 139 | 4,660 |
confluent-kafka-python | tools/unasync.py | .py | #!/usr/bin/env python
import argparse
import difflib
import os
import re
import subprocess
import sys
import tempfile
# List of directories to convert from async to sync
# Each tuple contains the async directory and its sync counterpart
# If you add a new _async directory and want the _sync directory to be
# generate... | 313 | 12,263 |
confluent-kafka-python | tools/download-s3.py | .py | #!/usr/bin/env python3
#
#
# Collects CI artifacts from S3 storage, downloading them
# to a local directory.
#
# The artifacts' folder in the S3 bucket must have the following token
# format:
# <token>-[<value>]__ (repeat)
#
# Recognized tokens (unrecognized tokens are ignored):
# p - project (e.g., "confluen... | 176 | 6,002 |
confluent-kafka-python | tools/wheels/install-macos-python-required-by-cibuildwheel.py | .py | #!/usr/bin/env python3
#
#
# Get python versions required for cibuildwheel from their config and
# install them. This implementation is based on cibuildwheel 3.2.1
# version. Might need tweak if something changes in cibuildwheel.
#
# This was added as there is a permission issue when cibuildwheel
# tries to install the... | 74 | 2,483 |
confluent-kafka-python | tests/test_AIOProducer.py | .py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Unit tests for AIOProducer class.
"""
import asyncio
import concurrent.futures
from unittest.mock import Mock, patch
import pytest
from confluent_kafka import KafkaError, KafkaException
from confluent_kafka.aio.producer._AIOProducer import AIOProducer
class TestAI... | 647 | 27,053 |
confluent-kafka-python | tests/test_partitioners.py | .py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Unit tests for partitioner functions.
"""
import pytest
from confluent_kafka import consistent, fnv1a, murmur2
class TestPartitioners:
def test_deterministic(self):
"""Test that deterministic partitioners produce the same output for the same input."""
... | 37 | 1,107 |
confluent-kafka-python | tests/test_serializer_error.py | .py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import unittest
from confluent_kafka.avro.serializer import SerializerError
class SerializerErrorTest(unittest.TestCase):
def test_message(self):
try:
raise SerializerError("message")
except SerializerError as e:
assert e.mess... | 15 | 337 |
confluent-kafka-python | tests/test_producer_batch_processor.py | .py | #!/usr/bin/env python3
"""
Unit tests for the BatchProcessor class (_batch_processor.py)
This module tests the BatchProcessor class to ensure proper
message batching, topic grouping, and future management.
"""
import asyncio
import concurrent.futures
import os
import sys
import unittest
from unittest.mock import Mock... | 460 | 17,861 |
confluent-kafka-python | tests/test_log.py | .py | #!/usr/bin/env python
import logging
from io import StringIO
import confluent_kafka
import confluent_kafka.admin
import confluent_kafka.avro
from tests.common import TestConsumer
from tests.common.schema_registry import TestAvroConsumer
class CountingFilter(logging.Filter):
def __init__(self, name):
sel... | 185 | 5,375 |
confluent-kafka-python | tests/test_misc.py | .py | #!/usr/bin/env python
import json
import os
import sys
import time
import pytest
import confluent_kafka
from confluent_kafka import Consumer, Producer
from confluent_kafka.admin import AdminClient
from tests.common import TestConsumer
def test_version():
print('Using confluent_kafka module version %s' % conflu... | 213 | 6,439 |
confluent-kafka-python | tests/test_Consumer.py | .py | #!/usr/bin/env python
import pytest
from confluent_kafka import (
OFFSET_INVALID,
TIMESTAMP_NOT_AVAILABLE,
Consumer,
KafkaError,
KafkaException,
Message,
TopicPartition,
)
from tests.common import TestConsumer
def test_basic_api():
"""Basic API tests, these wont really do anything sin... | 788 | 24,474 |
confluent-kafka-python | tests/test_buffer_timeout_manager.py | .py | #!/usr/bin/env python3
"""
Unit tests for the BufferTimeoutManager class (_buffer_timeout_manager.py)
This module tests the BufferTimeoutManager class to ensure proper
buffer timeout monitoring and automatic flush handling.
"""
import asyncio
import time
import unittest
from unittest.mock import AsyncMock, Mock
from... | 287 | 11,674 |
confluent-kafka-python | tests/test_Messages.py | .py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2026 Confluent Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | 114 | 3,490 |
confluent-kafka-python | tests/test_Producer.py | .py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import gc
import threading
import time
from struct import pack
import pytest
from confluent_kafka import Consumer, KafkaError, KafkaException, Producer, SerializingProducer, TopicPartition
from confluent_kafka.avro import AvroProducer
# Additional imports for batch integ... | 1,386 | 49,498 |
confluent-kafka-python | tests/test_topic_partition.py | .py | #!/usr/bin/env python
from confluent_kafka import TopicPartition
def test_sort():
"""TopicPartition sorting (rich comparator)"""
# sorting uses the comparator
correct = [
TopicPartition('topic1', 3),
TopicPartition('topic3', 0),
TopicPartition('topicA', 5),
TopicPartition... | 60 | 1,612 |
confluent-kafka-python | tests/test_error.py | .py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2020 Confluent Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | 67 | 2,221 |
confluent-kafka-python | tests/test_DeserializingConsumer.py | .py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2026 Confluent Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | 124 | 4,428 |
confluent-kafka-python | tests/test_oauth_cb.py | .py | #!/usr/bin/env python
#
# Copyright 2026 Confluent Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | 261 | 7,619 |
confluent-kafka-python | tests/test_Admin.py | .py | #!/usr/bin/env python
import concurrent.futures
import pytest
from confluent_kafka import (
ConsumerGroupState,
ConsumerGroupTopicPartitions,
IsolationLevel,
KafkaError,
KafkaException,
TopicCollection,
TopicPartition,
)
from confluent_kafka.admin import (
AclBinding,
AclBindingFil... | 1,598 | 57,244 |
confluent-kafka-python | tests/test_enums.py | .py | #!/usr/bin/env python
import confluent_kafka
def test_enums():
"""Make sure librdkafka error enums are reachable directly from the
KafkaError class without an instantiated object."""
print(confluent_kafka.KafkaError._NO_OFFSET)
print(confluent_kafka.KafkaError.REBALANCE_IN_PROGRESS)
def test_tstype... | 26 | 844 |
confluent-kafka-python | tests/test_kafka_batch_executor.py | .py | #!/usr/bin/env python3
"""
Unit tests for the KafkaBatchExecutor class (_kafka_batch_executor.py)
This module tests the KafkaBatchExecutor class to ensure proper
Kafka batch execution and partial failure handling.
"""
import asyncio
import concurrent.futures
import os
import sys
import unittest
from unittest.mock imp... | 141 | 5,238 |
confluent-kafka-python | tests/test_Wakeable.py | .py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Tests for wakeable poll/flush/consume functionality.
These tests verify the interruptibility of blocking operations (poll, flush, consume)
using the wakeable pattern with signal checking between chunks.
Includes:
- Utility function tests (calculate_chunk_timeout, chec... | 1,441 | 50,991 |
confluent-kafka-python | tests/test_ShareConsumer_callbacks.py | .py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Unit tests for ShareConsumer callback dispatch.
Covers the librdkafka callbacks routed through common_conf_setup
(error_cb, throttle_cb, stats_cb, log_cb, and
oauthbearer_token_refresh_cb), plus the share-consumer paths where they
may be dispatched (poll, commit_sync, ... | 1,046 | 35,068 |
confluent-kafka-python | tests/test_kafka_error.py | .py | #!/usr/bin/env python
import time
import pytest
from confluent_kafka import KafkaError, KafkaException, Producer
seen_all_brokers_down = False
def error_cb(err):
print('error_cb', err)
assert err.fatal() is False
if err.code() == KafkaError._ALL_BROKERS_DOWN:
global seen_all_brokers_down
... | 116 | 3,321 |
confluent-kafka-python | tests/test_AIOConsumer.py | .py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import asyncio
import concurrent.futures
from unittest.mock import Mock, patch
import pytest
from confluent_kafka import KafkaError, KafkaException, TopicPartition
from confluent_kafka.aio._AIOConsumer import AIOConsumer
class TestAIOConsumer:
"""Unit tests for AIOC... | 174 | 6,896 |
confluent-kafka-python | tests/test_unasync.py | .py | import os
import tempfile
import pytest
from tools.unasync import unasync, unasync_file_check, unasync_line
@pytest.fixture
def temp_dirs():
"""Create temporary directories for testing."""
with tempfile.TemporaryDirectory() as temp_dir:
# Create async and sync directories
async_dir = os.path... | 191 | 5,609 |
confluent-kafka-python | tests/test_message.py | .py | import pickle
import pytest
from confluent_kafka.cimpl import Message
def empty_message_1():
return Message()
def empty_message_2():
return Message(None, -2, -2, None, None, None, None, None, -2.0, -2)
def empty_message_3():
msg = Message()
msg.set_topic(None)
msg.set_value(None)
msg.set... | 311 | 9,498 |
confluent-kafka-python | tests/test_docs.py | .py | #!/usr/bin/env python
import enum
import re
import sys
from collections import defaultdict
from types import ModuleType
import confluent_kafka
def build_doctree(tree, prefix, parent):
"""Build doctree dict with format:
dict key = full class/type name (e.g, "confluent_kafka.Message.timestamp")
value = ob... | 105 | 3,516 |
confluent-kafka-python | tests/test_threads.py | .py | #!/usr/bin/env python
import threading
import time
from confluent_kafka import Producer
try:
from queue import Empty, Queue
except ImportError:
from Queue import Empty, Queue
class IntendedException(Exception):
pass
def thread_run(myid, p, q):
def do_crash(err, msg):
raise IntendedExcepti... | 70 | 1,467 |
confluent-kafka-python | tests/test_ShareConsumer.py | .py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2026 Confluent Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | 949 | 34,321 |
confluent-kafka-python | tests/test_DeserializingShareConsumer.py | .py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2026 Confluent Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | 346 | 13,304 |
confluent-kafka-python | tests/oauthbearer/aws/test_aws_iam_marker.py | .py | # Copyright 2026 Confluent Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 49 | 1,754 |
confluent-kafka-python | tests/oauthbearer/aws/test_sasl_extensions_parser.py | .py | # Copyright 2026 Confluent Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 87 | 2,383 |
confluent-kafka-python | tests/oauthbearer/aws/test_aws_oauthbearer_config.py | .py | # Copyright 2026 Confluent Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 365 | 12,988 |
confluent-kafka-python | tests/oauthbearer/aws/test_aws_sts_token_provider.py | .py | # Copyright 2026 Confluent Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 462 | 16,744 |
confluent-kafka-python | tests/oauthbearer/aws/test_contract.py | .py | # Copyright 2026 Confluent Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 136 | 4,999 |
confluent-kafka-python | tests/oauthbearer/aws/test_dispatch.py | .py | # Copyright 2026 Confluent Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 474 | 17,597 |
confluent-kafka-python | tests/oauthbearer/aws/test_aws_autowire.py | .py | # Copyright 2026 Confluent Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 262 | 8,868 |
confluent-kafka-python | tests/oauthbearer/aws/test_real_sts.py | .py | # Copyright 2026 Confluent Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 377 | 16,397 |
confluent-kafka-python | tests/oauthbearer/aws/test_jwt_extractor.py | .py | # Copyright 2026 Confluent Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 239 | 9,116 |
confluent-kafka-python | tests/integration/integration_test.py | .py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
#
# Copyright 2016 Confluent Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless req... | 1,338 | 43,036 |
confluent-kafka-python | tests/integration/cluster_fixture.py | .py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2020 Confluent Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | 497 | 16,587 |
confluent-kafka-python | tests/integration/conftest.py | .py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2020 Confluent Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | 126 | 3,602 |
confluent-kafka-python | tests/integration/share_consumer_sasl/test_share_consumer_sasl.py | .py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2026 Confluent Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | 131 | 5,442 |
confluent-kafka-python | tests/integration/share_consumer_sasl/conftest.py | .py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2026 Confluent Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | 52 | 1,820 |
confluent-kafka-python | tests/integration/serialization/test_serializers.py | .py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2020 Confluent Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | 155 | 4,376 |
confluent-kafka-python | tests/integration/share_consumer_oauth/test_oauth_integration.py | .py | """End-to-end integration tests for ShareConsumer with OAUTHBEARER.
These cover the full SASL handshake, which the unit tests in
tests/test_ShareConsumer_callbacks.py cannot reach: the unit
test_oauthbearer_token_refresh_cb only checks that oauth_cb fires during
init, and the literal string 'token' it produces never r... | 205 | 7,867 |
confluent-kafka-python | tests/integration/share_consumer_oauth/unsecured_token.py | .py | """
Token helper for OAUTHBEARER integration tests.
Produces unsigned JWTs that Apache Kafka's
OAuthBearerUnsecuredValidatorCallbackHandler (KIP-255) accepts. Used by
the share_consumer_oauth/ tests against the trivup OAUTHBEARER fixture.
Defaults use sub="admin" and scope="requiredScope" because trivup's
unsecured l... | 73 | 2,561 |
confluent-kafka-python | tests/integration/share_consumer_oauth/conftest.py | .py | """Fixtures for ShareConsumer OAUTHBEARER integration tests.
Starts a single-broker trivup KRaft cluster with the unsecured
OAUTHBEARER listener so tests can run a real SASL handshake. This suite
lives outside tests/integration/share_consumer/ on purpose, to avoid
that directory's autouse _delete_share_test_topics fix... | 87 | 3,232 |
confluent-kafka-python | tests/integration/consumer/test_consumer_memberid.py | .py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2022 Confluent Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | 65 | 1,990 |
confluent-kafka-python | tests/integration/consumer/test_consumer_upgrade_downgrade.py | .py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2025 Confluent Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | 128 | 4,835 |
confluent-kafka-python | tests/integration/consumer/test_cooperative_rebalance_2.py | .py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2020 Confluent Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | 86 | 2,575 |
confluent-kafka-python | tests/integration/consumer/test_incremental_assign.py | .py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2020 Confluent Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | 91 | 3,235 |
confluent-kafka-python | tests/integration/consumer/test_consumer_error.py | .py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2020 Confluent Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | 117 | 4,401 |
confluent-kafka-python | tests/integration/consumer/test_consumer_wakeable_poll_consume.py | .py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2024 Confluent Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | 145 | 5,897 |
confluent-kafka-python | tests/integration/consumer/test_cooperative_rebalance_1.py | .py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2020 Confluent Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | 112 | 3,578 |
confluent-kafka-python | tests/integration/consumer/test_consumer_topicpartition_metadata.py | .py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2022 Confluent Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | 64 | 2,130 |
confluent-kafka-python | tests/integration/share_consumer/test_share_consumer_close.py | .py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2026 Confluent Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | 254 | 10,215 |
confluent-kafka-python | tests/integration/share_consumer/test_share_consumer_callbacks.py | .py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2026 Confluent Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | 329 | 12,817 |
confluent-kafka-python | tests/integration/share_consumer/test_share_consumer_ack.py | .py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2026 Confluent Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | 1,744 | 70,467 |
confluent-kafka-python | tests/integration/share_consumer/test_share_consumer_commit.py | .py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2026 Confluent Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | 1,700 | 66,590 |
confluent-kafka-python | tests/integration/share_consumer/test_share_consumer.py | .py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2026 Confluent Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | 1,745 | 73,872 |
confluent-kafka-python | tests/integration/share_consumer/test_share_consumer_deserialization.py | .py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2026 Confluent Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | 331 | 13,742 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.