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

Downgrade circe and circe-yaml versions #53

Merged
merged 2 commits into from
Mar 23, 2021
Merged

Conversation

r-glyde
Copy link
Contributor

@r-glyde r-glyde commented Mar 22, 2021

Relates to #52

This reverts part of #51 to remove the constraint on total number of yaml aliases that was introduced into snakeyaml. Hopefully we will be able to upgrade properly in the future once circe/circe-yaml#136 is resolved and we have a way to configure this maximum.

@@ -116,4 +116,39 @@ class TopicConfigurationParserSpec extends BaseSpec {
TopicConfigurationParser(new StringReader(yml)).right.value shouldBe List.empty
}

it should "parse topics configured using yaml anchors and aliases" in {

Choose a reason for hiding this comment

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

Feel like the second test covers this as well. Maybe just keep the second test?

Copy link
Contributor

Choose a reason for hiding this comment

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

I agree, its unnecessary duplication. It would be great to have this as a property based test, but I'm not sure we use those in this project.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah happy to remove it from here. Do we think testing anchors/aliases at a higher level would be useful (e.g. KafkaConfiguratorIntSpec) or is showing that the parsing is working here enough?

Copy link
Contributor

Choose a reason for hiding this comment

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

It could have value only as documentation, showing that we support it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've removed this test and added on to KafkaConfiguratorIntSpec in 75222fb. Also updated the readme to mention that anchors can be used.

@r-glyde r-glyde merged commit 6b4df19 into master Mar 23, 2021
@r-glyde r-glyde deleted the 52-circe-yaml-downgrade branch March 23, 2021 13:56
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.

3 participants