-
Notifications
You must be signed in to change notification settings - Fork 10
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
Feat/cart/cpc 1033/retrieve cart for client #623
Conversation
…fications to the application.yaml to add a mongo database. still have to put it on the api gateway
… profiles("test") now every test pass
Everything looks fine to me. |
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.
Please check out the comment i left regarding the commented out test before merging into main.
// @Test | ||
// void findCartByCartId_withExistingId_thenReturnCart() { | ||
// StepVerifier | ||
// .create(cartRepository.save(cart1)) | ||
// .consumeNextWith(insertedCart -> { | ||
// assertNotNull(insertedCart); | ||
// assertEquals(cart1.getCartId(), insertedCart.getCartId()); | ||
// assertEquals(cart1.getCustomerId(), insertedCart.getCustomerId()); | ||
// }) | ||
// .verifyComplete(); | ||
// | ||
// //act and assert | ||
// StepVerifier | ||
// .create(cartRepository.findCartByCartId(cart1.getCartId())) | ||
// .consumeNextWith(foundCart -> { | ||
// assertNotNull(foundCart); | ||
// assertEquals(cart1.getCartId(), foundCart.getCartId()); | ||
// assertEquals(cart1.getCustomerId(), foundCart.getCustomerId()); | ||
// }) | ||
// .verifyComplete(); | ||
// } |
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.
You should not be pushing commented out code into main.
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.
Thank you. This will be fixed ASAP
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.
Looks good to me. I don't see any code that can occur an error. It mostly looks how the previous teams did.
JIRA: https://champlainsaintlambert.atlassian.net/browse/CPC-1033 ## Context: Retrieve the informations of a cart with all its products using a clientId ## Changes - created the cart entity - implemented the get cart by cart id - added a domain client layer for a product client - added some tests - modified the application.yaml to integrate a mongo Database ## Dev notes (Optional) - Still need to add it to the API gateway --------- Co-authored-by: NtsoaElie <[email protected]>
JIRA: https://champlainsaintlambert.atlassian.net/browse/CPC-1033
Context:
Retrieve the informations of a cart with all its products using a clientId
Changes
Dev notes (Optional)