This repository was archived by the owner on Jan 24, 2024. It is now read-only.
Add test framework to be able to run unit test.#17
Merged
sijie merged 8 commits intostreamnative:masterfrom Jul 24, 2019
jiazhai:test
Merged
Add test framework to be able to run unit test.#17sijie merged 8 commits intostreamnative:masterfrom jiazhai:test
sijie merged 8 commits intostreamnative:masterfrom
jiazhai:test
Conversation
sijie
reviewed
Jul 23, 2019
Contributor
Author
|
@sijie Tests added Pulsar consumer . |
sijie
suggested changes
Jul 24, 2019
| // 2. Consume messages use Pulsar client Consumer. | ||
| for (int i = 0; i < totalMsgs; i++) { | ||
| msg = consumer.receive(100, TimeUnit.MILLISECONDS); | ||
| log.info("Pulsar consumer get message: {}", new String(msg.getData())); |
Member
There was a problem hiding this comment.
Can you add an assertion to compare the message payload?
Also I think you need to test a few variants:
- with key
- with message headers
- with timestamp
- with compression
Contributor
Author
sijie
approved these changes
Jul 24, 2019
michaeljmarshall
pushed a commit
to michaeljmarshall/kop
that referenced
this pull request
Dec 13, 2022
…egistryProxyEnableTls on the broker (streamnative#17)
Demogorgon314
pushed a commit
to Demogorgon314/kop
that referenced
this pull request
Nov 28, 2023
…treamnative#17) Fixes streamnative/ksn#7 ### Modifications - Migrate `KerberosLogin` from Kafka for the Kerberos related operations, it's simplified that many configurations are not configurable. - Implement a trivial `KerberosCallbackHandler` - When the client sends authentication requests with GSSAPI mechanism, create the `SaslServer` via `Sasl.createSaslServer` with the params that are parsed from `KerberosLogin#subject()`. - Use the same logic with Kafka to convert the original Kerberos principal to the short principal. e.g. - `client@EXAMPLE.com` to `client` - `client/localhost@EXAMPLE.com` to `client` - Add the `GssapiAuthenticationTest` to verify granting permission on a Kerberos principal and the short name conversion. (cherry picked from commit 53c413bfa97f6c0afec79200725ff317e6ce56fe) Fix conclicts caused by: - apache/pulsar#15121 the new config introduced from Pulsar 2.11 - streamnative#1731 a simple enhancement that is not cherry-picked into branch-2.10 - streamnative#1759 adds the `config` field to `PlainSaslServer` for the new `authenticateAsync` API
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR is based on
Produce request, which is in PR #14, please review and merge that first.
changes:
KafkaBrokerServiceandKafkaService. Or it is not able to do the mock in test framework.