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

Test #570

Closed
wants to merge 181 commits into from
Closed

Test #570

wants to merge 181 commits into from

Conversation

shaspitz
Copy link
Contributor

@shaspitz shaspitz commented Dec 7, 2022


name: Pull request template
about: Template for interchain security templates
title: ''
labels: ''
assignees: ''


Description

Please include a summary of the changes and the related issue. If the issue was ambiguous try to clarify it in this section.

Linked issues

Closes: #<issue>

Type of change

Please delete options that are not relevant.

  • Non-breaking changes
  • New feature (adding functionality)
  • Breaking change (fix, feature or refactoring that changes existing functionality)
  • Requires state migrations
  • Proto files changes
  • Updates in store keepers or store keys
  • Changes in genesis (import/export)
  • Testing
  • Dependency management (updates dependencies, adds replace calls in go.mod, go mod tidy)
  • Documentation updates

How was the feature tested?

  • Unit tests
  • E2E tests
  • Integration tests/simulation
  • Custom difference tests

Issues and further questions

Please write any concerns you may have about this feature (remove if not relevant).

Other information

Checklist:

Please delete options that are not relevant.

  • Relevant issus are linked
  • PR depends on other features: #<issue>
  • Other PRs depend on this feature: #<issue>
  • Tests are passing (make test)
  • make proto-gen was run (for changes in .proto files)
  • make proto-lint was run (for changes in .proto files)
  • PR satisfies closing criteria defined in issue (remove if not applicable or issue has no criteria)
  • Added iterators follow SDK pattern (IterateX(ctx sdk.Context, cb func(arg1, arg2) (stop bool)))
  • testutil/e2e/debug_test.go is up-to-date with additional or changed e2e test names
  • Documentation has been updated

shaspitz and others added 27 commits November 25, 2022 16:06
* add MsgAssignConsumerKey

* add MsgAssignConsumerKey

* fix package name

* add keys

* add keeper methods for key assignment

* handle MsgAssignConsumerKey

* map addresses in slash requests

* prune old consumer addresses

* move AssignConsumerKey logic to keeper

* update consumer initial valset

* add ApplyKeyAssignmentToValUpdates

* fix client creation

* do not check init valset on consumer

* clean state on val removal

* fix TestAssignConsensusKeyForConsumerChain

* delete on val removal

* remove reverse mapping on val removal

* remove pending key assignment in EndBlock

* add query endpoints
add summary of indexes
change ConsumerValidatorByVscID to ConsumerAddrsToPrune

* Refactor AssignConsumerKey for clarity (IMO)

* finish key assignment genesis code- untested

* FIxed mocks compile issue - not sure if it works right though.

* add test for init and export genesis

* set after get in AssignConsumerKey

* enable AssignConsumerKey to be called twice

* remove key assignment on chain removal

* apply some review comments

* fix bug: two validator with same consumer key

* rename key: ConsumerValidatorsByVscIDBytePrefix -> ConsumerAddrsToPruneBytePrefix

* PendingKeyAssignment -> KeyAssignmentReplacements

* msg.ProviderAddr is a validator addr

* fix: key assignment genesis tests (#517)

* Fix consumer init genesis test

* fix provider genesis tests

* fix key assignement handler

* fix linter

* fix merge conflict

* fix ProviderValidatorAddress

* remove unused expectation

Co-authored-by: Marius Poke <[email protected]>

* add key assignment CRUD operations unit tests (#516)

* test val consumer key related CRUD

* test val consumer addr related CRUD

* test pending key assignments related CRUD

* refactor after review session

* refactor after review session

* add prune key CRUD tests

* renamings in testfiles

* improve KeyAssignmentReplacement set and get

* remove ApplyKeyAssignmentToInitialValset (redundant)

* add invariant to docstring of AppendConsumerAddrsToPrune

* fix address conversion

* adding e2e tests

* fix linter

* add queries; setup integration tests (#519)

* add queries; setup integration testse

* test key assignment before chain start

* fix state queries; refactor

* rm extra comment

* rm unused action field

* bump voting times in all tests

* add provider address query to tests

* Adds some very basic random testing and unit tests (#522)

* Adds imports

* Does multi iterations: fails!

* Handle errs

* checkpoint debug

* Pre introduce dynamic mock

* Issue seems to be resolved

* Removes prints in key asisgn

* Removes debug, pre reintroduce all test features

* Fix some magic numbers, bring back prune check

* Pre rework initial assignments

* Refactor and tidyup

* Better docs, clarity, org

Co-authored-by: Daniel <[email protected]>

* Enable key assignment testing for all e2e tests (#524)

* split CCVTestSuite.setupCallback in two

* pre-assign keys for all vals of first consumer

* fix linter

* remove TestConsumerGenesis

Co-authored-by: mpoke <[email protected]>
Co-authored-by: Simon Noetzlin <[email protected]>
Co-authored-by: MSalopek <[email protected]>
Co-authored-by: Daniel T <[email protected]>
Co-authored-by: Daniel <[email protected]>
@shaspitz shaspitz closed this Dec 7, 2022
@shaspitz shaspitz deleted the test branch December 7, 2022 22:40
@mergify
Copy link
Contributor

mergify bot commented Dec 7, 2022

⚠️ The sha of the head commit of this PR conflicts with #565. Mergify cannot evaluate rules on this PR. ⚠️

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