# README

Integration Testing

Integration tests are categorized into files as follows:

  • setup.go - setup for the integration tests
  • common.go - helper functions
  • valset_update.go - integration tests for the Validator Set Update sub-protocol
  • unbonding.go - integration tests for the Completion of Unbonding Operations
  • slashing.go - integration tests for the Consumer Initiated Slashing sub-protocol
  • distribution.go - integration tests for the Reward Distribution sub-protocol
  • stop_consumer.go - integration tests for the Consumer Chain Removal sub-protocol
  • normal_operations.go - integration tests for normal operations of ICS enabled chains
  • query_providerinfo_test.go - integration tests for the GetProviderInfo method
  • changeover.go - integration tests for reuse of existing transfer channels
  • double_vote.go - integration tests for the handling of double voting
  • misbehavior.go - integration tests for the handling of misbehaviors
  • partial_set_security_test.go - integration tests for the partial set security
  • expired_client.go - integration tests for expired clients
  • key_assignment.go - integration tests for key assignment
  • instance_test.go - ties the integration test structure into golang's standard test mechanism, with appropriate definitions for concrete app types and setup callback

To run the integration tests defined in this repo on any arbitrary consumer and provider implementation, copy the pattern exemplified in instance_test.go and specific_setup.go

# Functions

NewCCVTestSuite returns a new instance of CCVTestSuite, ready to be tested against using suite.Run().
NewConsumerDemocracyTestSuite returns a new instance of ConsumerDemocracyTestSuite, ready to be tested against using suite.Run().
ParsePacketsFromEvents returns all packets found in events.

# Constants

No description provided by the author
No description provided by the author

# Structs

CCVTestSuite is an in-mem test suite which implements the standard group of tests validating the integration functionality of ccv enabled chains.
No description provided by the author

# Type aliases

ChainType defines the type of chain (either provider or consumer).
Callback for instantiating a new coordinator, consumer test chain, and consumer app before every test defined on the suite.
Callback for instantiating a new consumer test chain and consumer app before every test defined on the suite.
Callback for instantiating a new coordinator with a provider test chains and provider app before every test defined on the suite.