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

Adds a check for running in test mode without db connection #71

Merged
merged 14 commits into from
Mar 18, 2022

Conversation

re-Tick
Copy link
Contributor

@re-Tick re-Tick commented Mar 17, 2022

No description provided.

@slayerjain
Copy link
Member

@re-Tick As discussed, please ensure to correctly deserialize errors so that they match the exact declared in the sql/driver packages.

re-Tick and others added 3 commits March 18, 2022 15:24
…stead of KError.Err

This is done because sql package compares errors by using == or errors.Is so, errors should be same instances.
@slayerjain slayerjain merged commit 3ed54ad into main Mar 18, 2022
re-Tick added a commit that referenced this pull request Aug 18, 2022
* feat(mongo): Adds Distinct, CountDocuments and Aggregate methods to mock their outputs.

* fix(keploy): adds a delay in between capture and denoise calls to keploy server

delay is necessary to capture the noise fields of response accurately

* fix(kmongo): adds a check for nil pointer to prevent crash in find, findone mocked method

refactors kmongo code to improve maintainence #63

* feat(kmux): adds a middleware function for gorilla/mux multiplexer #66

* fix(khttpClient): adds an interceptor for http client to mock the outputs of external http calls

* docs: fixed typo in sql driver's example

* fix(khttpClient): register types to gob and fixes UnmarshalBinay method of ReadCloser to decode gcp response

in UnmarshalBinary method, the b byte array contents are copied to a temp byte array to prevent alteration in the given parameter b byte array

* docs(gcp): adds an example in readme for a gcp compute

* fix(ksql): run the mocked outputs of sql queries when database is down #70

* fix(ksql): keploy sql driver methods returns the sql/driver errors instead of KError.Err

This is done because sql package compares errors by using == or errors.Is so, errors should be same instances.

Co-authored-by: Ritik Jain <[email protected]>
Signed-off-by: re-Tick <[email protected]>
re-Tick added a commit that referenced this pull request Aug 25, 2022
* feat(mongo): Adds Distinct, CountDocuments and Aggregate methods to mock their outputs.

* fix(keploy): adds a delay in between capture and denoise calls to keploy server

delay is necessary to capture the noise fields of response accurately

* fix(kmongo): adds a check for nil pointer to prevent crash in find, findone mocked method

refactors kmongo code to improve maintainence #63

* feat(kmux): adds a middleware function for gorilla/mux multiplexer #66

* fix(khttpClient): adds an interceptor for http client to mock the outputs of external http calls

* docs: fixed typo in sql driver's example

* fix(khttpClient): register types to gob and fixes UnmarshalBinay method of ReadCloser to decode gcp response

in UnmarshalBinary method, the b byte array contents are copied to a temp byte array to prevent alteration in the given parameter b byte array

* docs(gcp): adds an example in readme for a gcp compute

* fix(ksql): run the mocked outputs of sql queries when database is down #70

* fix(ksql): keploy sql driver methods returns the sql/driver errors instead of KError.Err

This is done because sql package compares errors by using == or errors.Is so, errors should be same instances.

Co-authored-by: Ritik Jain <[email protected]>
Signed-off-by: re-Tick <[email protected]>
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.

2 participants