-
Notifications
You must be signed in to change notification settings - Fork 0
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 autoconfiguration for the ComsosTokenStore
#3
Conversation
5f0886b
to
7bb7bf1
Compare
ComsosTokenStore
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My biggest pain point is not having a unit test for the auto-configuration class. Other than that, my comments are just small fry I trust you will pick up correctly.
axon-cosmosdb-spring-boot-autoconfigure/src/test/resources/log4j2.properties
Show resolved
Hide resolved
import static org.junit.jupiter.api.Assertions.*; | ||
|
||
@Testcontainers | ||
class CosmosAutoConfigurationIntegrationTest { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Although I understand that testing the CosmosTokenStore
through a unit test didn't work ideal, we can still make a unit test for our auto-configuration. Especially with an eye on the fact the CosmosDBEmulatorContainer
doesn't work on GitHub, I think this would be beneficial.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we even need an integration test if the test is to check whether a bean is constructed with the right components?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How can we unit test it without a client?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you perhaps make a NoOp version of the client?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, since it's both a final class, and doesn't use an interface (besides Closable
).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Boooh, lame :-(
I dislike this inflexibility.
...java/org/axonframework/extensions/cosmosdb/eventsourcing/tokenstore/CosmosTokenItemTest.java
Show resolved
Hide resolved
...nframework/extensions/cosmosdb/eventsourcing/tokenstore/CosmosTokenStoreIntegrationTest.java
Show resolved
Hide resolved
There is some activity on the repo of the docker image, so I have good hopes it's fixed soon. |
e4a33a1
to
b0a7f72
Compare
b0a7f72
to
b3dd5da
Compare
b3dd5da
to
c7aa962
Compare
Quality Gate failedFailed conditions 0.0% Coverage on New Code (required ≥ 80%) |
No description provided.