-
Notifications
You must be signed in to change notification settings - Fork 35
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
Integration test for rotating single-sig delegate identifier #160
Integration test for rotating single-sig delegate identifier #160
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## development #160 +/- ##
============================================
Coverage 81.42% 81.42%
============================================
Files 46 46
Lines 4141 4141
Branches 1030 1030
============================================
Hits 3372 3372
Misses 737 737
Partials 32 32 ☔ View full report in Codecov by Sentry. |
@psteniusubi and others: Do we intend to wait with this until the functionality is fixed so the test passes for real? Or should we merge it regardless? An alternative is to just add all the passing tests, then add a PR with the failing test on top of that. Just to make sure we don't forget about it and have a bunch of skipped tests in the test run. |
It's a good question. |
I'd rather have an issue, with a link to a fork with the failing test. When I see PRs I think "mergable code". |
b9ab255
to
67e86c7
Compare
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.
The library needs drt
support.
let delegate1 = await client2.identifiers().get('delegate1'); | ||
let seal = { | ||
i: delegate1.prefix, | ||
s: 0, |
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.
This sn value needs to be a string like '0'
test('delegate1c', async () => { | ||
// delegate rotates identifier | ||
let kargs: RotateIdentifierArgs = {}; | ||
let result = await client2.identifiers().rotate('delegate1', kargs); |
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.
This rotate
method does not support drt
event types for delegated identifiers. It will need to be enhanced to support delegated AIDs
I'm going to add drt support to the library and then retry this test. |
0944806
to
945293e
Compare
I reintroduced this test in #197 where I also fixed the other delegation integration tests. Closing this no in favor of that one. Thanks for the script!! |
The last test is marked as failing. Reproduces issue #159
Keria stack trace