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

Write differential testing driver using ibc-go framework #87

Closed
2 of 3 tasks
danwt opened this issue May 4, 2022 · 1 comment
Closed
2 of 3 tasks

Write differential testing driver using ibc-go framework #87

danwt opened this issue May 4, 2022 · 1 comment
Assignees
Labels
scope: testing Code review, testing, making sure the code is following the specification.

Comments

@danwt
Copy link
Contributor

danwt commented May 4, 2022

Idea

A driver will be needed for differential testing. For the first application, the driver should have the actions outlined by Marius and should orchestrate the system in memory using ibc-go/testing.

In particular the actions are

  • on provider
    • delegate(D, V, A), where D is a delegator, V is a validator and A is an amount
    • undelegate(D, V, A)
    • redelegate(D, Vsrc, Vdst, A)
    • slash(V, infractionHeight, slashFactor)
    • jumpToBlock(h), where h is a height larger than the current height
  • on consumer
    • slash(V, infractionHeight, slashFactor)
    • jumpToBlock(h)

Tasks

  • Locate the code locations where these abstract actions can be called
  • Write a driver using ibc-go/testing to call these actions
  • Write some input traces by hand to check if the driver is sensible

Resources

@danwt danwt added the scope: testing Code review, testing, making sure the code is following the specification. label May 4, 2022
@danwt danwt self-assigned this May 4, 2022
@danwt danwt moved this to Todo in Replicated Security May 4, 2022
@danwt danwt moved this from Todo to In Progress in Replicated Security May 4, 2022
@danwt danwt changed the title Write property based testing driver using ibc-go framework Write differential testing driver using ibc-go framework Jun 6, 2022
@danwt
Copy link
Contributor Author

danwt commented Jun 8, 2022

Closed as PR

tackles this but now it is blocked by the TDD dev cycle. That is: the tests in the PR fail due to a the SUT not being fully implemented. I'm not sure if it makes sense to merge the PR currently, so I'll create another issue for further work.

@danwt danwt closed this as completed Jun 8, 2022
Repository owner moved this from In Progress to Done in Replicated Security Jun 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: testing Code review, testing, making sure the code is following the specification.
Projects
No open projects
Status: Done
Development

No branches or pull requests

1 participant