Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add bootstarpServers and headers to Kafka event #385

Merged
merged 4 commits into from Jul 29, 2021
Merged

Conversation

ianpyw
Copy link
Contributor

@ianpyw ianpyw commented Jul 22, 2021

This change update the Kafka event to add bootstrapbrokers and record headers.

@ianpyw ianpyw marked this pull request as draft July 22, 2021 21:07
@codecov-commenter
Copy link

codecov-commenter commented Jul 23, 2021

Codecov Report

Merging #385 (5d6f36f) into master (99b35f2) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #385   +/-   ##
=======================================
  Coverage   72.22%   72.22%           
=======================================
  Files          19       19           
  Lines         738      738           
=======================================
  Hits          533      533           
  Misses        138      138           
  Partials       67       67           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 99b35f2...5d6f36f. Read the comment docs.

}

// 4. check result
assert.JSONEq(t, string(inputJson), string(outputJson))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Kafka header is a list of map between string and []byte.
According to Marshal JSON

Array and slice values encode as JSON arrays, except that []byte encodes as a base64-encoded string, and a nil slice encodes as the null JSON value.

This assertion won't be true anymore.

@ianpyw ianpyw marked this pull request as ready for review July 23, 2021 09:54
Copy link
Contributor

@zsombor-balogh zsombor-balogh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

Copy link

@smirnoal smirnoal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants