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

feat: merge mowali branch #286

Merged
merged 144 commits into from
Feb 11, 2022
Merged

feat: merge mowali branch #286

merged 144 commits into from
Feb 11, 2022

Conversation

shashi165
Copy link
Contributor

@shashi165 shashi165 commented Sep 28, 2021

Summary of changes

  1. Now users can provide additional non-standard headers via rules.json. This will enable users to provide additional headers while redirecting the quote request
  2. updated the documentation
  3. some refactoring of code

partiallyordered and others added 30 commits September 23, 2019 18:35
…ed rules engine tests. Added Jest config. Added example rules.json.
… for rules engine. Stubbed validateQuoteRequest method in relevant tests. Running rules engine in validateQuoteRequest (but not doing anything with the results yet).
…nfig to call junit script. Added test results directory to gitignore.
…d rule execution and event handling. Removed empty quote validation, replaced with rules engine execution. Removed redundant setImmediate. New test for INVALID_QUOTE_REQUEST event. Expanded INVALID_QUOTE_REQUEST unit tests.
…nd updated the `quotes.tests.js` accordingly.
Updated unit tests in order to pass according to latest code changes.
shashi165 and others added 6 commits October 20, 2021 11:16
Co-authored-by: Sam <10507686+elnyry-sam-k@users.noreply.github.com>
Co-authored-by: Sam <10507686+elnyry-sam-k@users.noreply.github.com>
Co-authored-by: Sam <10507686+elnyry-sam-k@users.noreply.github.com>
@shashi165 shashi165 requested review from mdebarros and elnyry-sam-k and removed request for bushjames October 29, 2021 14:34
@mdebarros
Copy link
Member

I'm concerned there are no integration tests for this new functionality. Can you please write an integration test that shows the new rules all working together?

@shashi165 any response to my earlier request?

Hey @lewisdaly , there are no Integration Tests for this service, i.e. --> https://github.com/mojaloop/quoting-service/tree/master/test

The best we can do at this stage is to add a backlog item.

mdebarros
mdebarros previously approved these changes Oct 29, 2021
Copy link
Member

@mdebarros mdebarros left a comment

Choose a reason for hiding this comment

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

+1

@lewisdaly
Copy link
Contributor

I'm concerned there are no integration tests for this new functionality. Can you please write an integration test that shows the new rules all working together?

@shashi165 any response to my earlier request?

Hey @lewisdaly , there are no Integration Tests for this service, i.e. --> https://github.com/mojaloop/quoting-service/tree/master/test

The best we can do at this stage is to add a backlog item.

That's troubling. @shashi165 can you please open a backlog item to add integration tests to this service as a part of this task?

@shashi165
Copy link
Contributor Author

I'm concerned there are no integration tests for this new functionality. Can you please write an integration test that shows the new rules all working together?

@shashi165 any response to my earlier request?

Hey @lewisdaly , there are no Integration Tests for this service, i.e. --> https://github.com/mojaloop/quoting-service/tree/master/test
The best we can do at this stage is to add a backlog item.

That's troubling. @shashi165 can you please open a backlog item to add integration tests to this service as a part of this task?

Hi @lewisdaly - created a story here: mojaloop/project#2570

@shashi165 shashi165 requested a review from mdebarros February 8, 2022 14:44
@elnyry-sam-k elnyry-sam-k dismissed lewisdaly’s stale review February 8, 2022 15:00

comments addressed - axios version updated, follow-up story for integration tests created

Copy link
Member

@mdebarros mdebarros left a comment

Choose a reason for hiding this comment

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

Hey @shashi165,

I don't see any issues with the PR. But perhaps we should build a snapshot release and test it against the GP TTK tests before doing a final merge.

Let me know your thoughts on that. I would be happy to schedule a 1 hour call to do so....

Also see my one issue that you will need to address around changing the package version as it is already handled by our automated CI-CD releases.

package.json Outdated Show resolved Hide resolved
@mdebarros
Copy link
Member

Hey @shashi165,

I don't see any issues with the PR. But perhaps we should build a snapshot release and test it against the GP TTK tests before doing a final merge.

Let me know your thoughts on that. I would be happy to schedule a 1 hour call to do so....

Also see my one issue that you will need to address around changing the package version as it is already handled by our automated CI-CD releases.

GP Report

--------------------FINAL REPORT--------------------
Test Suite:GP Tests
Environment:moja2.test.mojaloop.live
┌───────────────────────────────────────────────────┐
│                      SUMMARY                      │
├───────────────────┬───────────────────────────────┤
│ Total assertions  │ 2318                          │
├───────────────────┼───────────────────────────────┤
│ Passed assertions │ 2311                          │
├───────────────────┼───────────────────────────────┤
│ Failed assertions │ 7                             │
├───────────────────┼───────────────────────────────┤
│ Total requests    │ 551                           │
├───────────────────┼───────────────────────────────┤
│ Total test cases  │ 120                           │
├───────────────────┼───────────────────────────────┤
│ Passed percentage │ 99.70%                        │
├───────────────────┼───────────────────────────────┤
│ Started time      │ Wed, 09 Feb 2022 14:28:10 GMT │
├───────────────────┼───────────────────────────────┤
│ Completed time    │ Wed, 09 Feb 2022 14:30:54 GMT │
├───────────────────┼───────────────────────────────┤
│ Runtime duration  │ 164301 ms                     │
└───────────────────┴───────────────────────────────┘

Bulk Report

--------------------FINAL REPORT--------------------
Test Suite:Bulk Tests
Environment:moja2.test.mojaloop.live
┌───────────────────────────────────────────────────┐
│                      SUMMARY                      │
├───────────────────┬───────────────────────────────┤
│ Total assertions  │ 134                           │
├───────────────────┼───────────────────────────────┤
│ Passed assertions │ 25                            │
├───────────────────┼───────────────────────────────┤
│ Failed assertions │ 109                           │
├───────────────────┼───────────────────────────────┤
│ Total requests    │ 14                            │
├───────────────────┼───────────────────────────────┤
│ Total test cases  │ 3                             │
├───────────────────┼───────────────────────────────┤
│ Passed percentage │ 18.66%                        │
├───────────────────┼───────────────────────────────┤
│ Started time      │ Wed, 09 Feb 2022 14:31:07 GMT │
├───────────────────┼───────────────────────────────┤
│ Completed time    │ Wed, 09 Feb 2022 14:31:49 GMT │
├───────────────────┼───────────────────────────────┤
│ Runtime duration  │ 42433 ms                      │
└───────────────────┴───────────────────────────────┘

@shashi165 shashi165 requested a review from mdebarros February 9, 2022 20:20
@shashi165
Copy link
Contributor Author

Screen Shot 2022-02-09 at 14 14 20

test results of GP

@mdebarros
Copy link
Member

mdebarros commented Feb 11, 2022

+1

Test Suite:GP Tests
Environment:Development
┌───────────────────────────────────────────────────┐
│                      SUMMARY                      │
├───────────────────┬───────────────────────────────┤
│ Total assertions  │ 2318                          │
├───────────────────┼───────────────────────────────┤
│ Passed assertions │ 2318                          │
├───────────────────┼───────────────────────────────┤
│ Failed assertions │ 0                             │
├───────────────────┼───────────────────────────────┤
│ Total requests    │ 551                           │
├───────────────────┼───────────────────────────────┤
│ Total test cases  │ 120                           │
├───────────────────┼───────────────────────────────┤
│ Passed percentage │ 100.00%                       │
├───────────────────┼───────────────────────────────┤
│ Started time      │ Thu, 10 Feb 2022 18:44:35 GMT │
├───────────────────┼───────────────────────────────┤
│ Completed time    │ Thu, 10 Feb 2022 18:47:06 GMT │
├───────────────────┼───────────────────────────────┤
│ Runtime duration  │ 151522 ms                     │
└───────────────────┴───────────────────────────────┘
TTK-Assertion-Report-multi-2022-02-10T18:47:06.854Z.html was generated
Test Suite:Bulk Tests
Environment:Development
┌───────────────────────────────────────────────────┐
│                      SUMMARY                      │
├───────────────────┬───────────────────────────────┤
│ Total assertions  │ 134                           │
├───────────────────┼───────────────────────────────┤
│ Passed assertions │ 134                           │
├───────────────────┼───────────────────────────────┤
│ Failed assertions │ 0                             │
├───────────────────┼───────────────────────────────┤
│ Total requests    │ 14                            │
├───────────────────┼───────────────────────────────┤
│ Total test cases  │ 3                             │
├───────────────────┼───────────────────────────────┤
│ Passed percentage │ 100.00%                       │
├───────────────────┼───────────────────────────────┤
│ Started time      │ Thu, 10 Feb 2022 18:47:22 GMT │
├───────────────────┼───────────────────────────────┤
│ Completed time    │ Thu, 10 Feb 2022 18:47:25 GMT │
├───────────────────┼───────────────────────────────┤
│ Runtime duration  │ 3169 ms                       │
└───────────────────┴───────────────────────────────┘
TTK-Assertion-Report-multi-2022-02-10T18:47:25.595Z.html was generated

Thanks @shashi165 !

@shashi165 shashi165 merged commit f92299b into master Feb 11, 2022
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.

8 participants