[Brigade] Storage Tests #601
Replies: 5 comments 18 replies
-
Hey @nate-double-u. I'm unclear on status / next steps. Were all the project ideas for which you opened a discussion accepted? |
Beta Was this translation helpful? Give feedback.
-
Awesome. Thanks for the info @nate-double-u! |
Beta Was this translation helpful? Give feedback.
-
hello! i have been in touch with @krancour in slack over the last three weeks and have created a draft proposal that i would like to get feedback on to improve it before making the final submission. @nate-double-u is there an official process to request reviews from the mentors? |
Beta Was this translation helpful? Give feedback.
-
Hi, I had a confusion, do we need to replace all mock implementations by live database queries or need to deal with only the tests for the functions which execute database queries using the mongodb driver? |
Beta Was this translation helpful? Give feedback.
-
Will it be a good idea to add the table of contents to the proposal pdfs? |
Beta Was this translation helpful? Give feedback.
-
Brigade's data access packages are currently unit-tested against mock implementations of MongoDB client interfaces. These tests have been adequate for asserting that queries and statements are constructed properly (look like we think they should) and that mock query and statement results can be unmarshaled without error into domain types, but this approach cannot assert that DB queries and statements are logically correct and actually achieve the desired results, since a live database would be required to accomplish that. Given the importance of the data access code, we would like to develop a new suite of integration tests directly targeted at that code. These new tests should run against a live (and disposable) MongoDB database and assert that all queries and statements achieve the desired results. If the new suite of tests exposes bugs in the existing data access code, correcting those bugs is within the scope of this project as well.
Mentor(s): Kent Rancourt (@krancour)
https://github.com/cncf/mentoring/blob/main/summerofcode/2022.md#storage-tests
Beta Was this translation helpful? Give feedback.
All reactions