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

Node wrapper aries testing #53

Merged
merged 3 commits into from
Aug 25, 2020
Merged

Node wrapper aries testing #53

merged 3 commits into from
Aug 25, 2020

Conversation

Patrik-Stas
Copy link
Contributor

@Patrik-Stas Patrik-Stas commented Aug 21, 2020

  • Legacy tests were relying on passing ENABLE_TEST_MODE when calling vcx_init, which would pre-set libvcx into testing mode with mocked enabled.

  • Instead of doing that, tests are passing their own desired configuration now

  • The tests are now specifying they want to run with 3.0 protocol_type (let's move it to 4.0 in next step)

  • Some tests are disabled. Especially those which are relying on some agency 1.0 mock responses. These responses are currently hardcoded in libvcx, so internals must be changed / or testing approach, before these tests are enabled again.

  • Some tests were easy enough to migrate from legacy to Aries (for example test checking generating connection invitation)

  • Additionally fixes issue with vcx node wrapper suite3 logging tests (we were not running these tests and I think it's been probably failing since switch to different ffi packages). The fix is done in wrappers/node/src/api/logging.ts

@Patrik-Stas Patrik-Stas changed the title Node aries testing Node wrapper aries testing Aug 21, 2020
wrappers/node/src/api/logging.ts Show resolved Hide resolved
wrappers/node/test/helpers/utils.ts Outdated Show resolved Hide resolved
wrappers/node/test/helpers/utils.ts Outdated Show resolved Hide resolved
wrappers/node/test/suite1/ariesvcx-connection.test.ts Outdated Show resolved Hide resolved
wrappers/node/test/suite1/ariesvcx-connection.test.ts Outdated Show resolved Hide resolved
wrappers/node/test/helpers/utils.ts Outdated Show resolved Hide resolved
wrappers/node/test/helpers/utils.ts Outdated Show resolved Hide resolved
wrappers/node/src/api/vcx-mock.ts Outdated Show resolved Hide resolved
wrappers/node/package.json Outdated Show resolved Hide resolved
@Patrik-Stas Patrik-Stas force-pushed the node-aries-testing branch 2 times, most recently from f156087 to 16f0e0c Compare August 25, 2020 07:54
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
@mirgee mirgee merged commit 8a0c647 into master Aug 25, 2020
@mirgee mirgee deleted the node-aries-testing branch August 25, 2020 10:44
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.

None yet

2 participants