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

Basic integration tests for pool registrations and retirements. #1931

Conversation

jonathanknowles
Copy link
Contributor

@jonathanknowles jonathanknowles commented Jul 20, 2020

Issue Number

#1819

Overview

This PR provides a first step towards a full suite of integration tests for pool registrations and retirements.

  • Adds function issuePoolRetirementCert capable of creating Shelley pool retirement certificates.
  • Adjusts the initialization of the test pool cluster so that a subset of the pools are configured to retire after different time intervals.
  • Adds a basic integration test to verify that the ListStakePools API operation eventually shows the correct retirement epochs for the test pools.

Comments

Future PRs will:

  • Simulate the effect of re-registering a pool after a retirement certificate has already been published.
  • Verify that it is not possible to join a stake pool that has already retired (see Prevent staking to a retired pool. #1913).

@jonathanknowles jonathanknowles added the IMPROVEMENT Mark a PR as an improvement, for auto-generated CHANGELOG label Jul 20, 2020
@jonathanknowles jonathanknowles self-assigned this Jul 20, 2020
@jonathanknowles

This comment has been minimized.

iohk-bors bot added a commit that referenced this pull request Jul 20, 2020
@iohk-bors

This comment has been minimized.

@jonathanknowles jonathanknowles force-pushed the jonathanknowles/basic-pool-registration-retirement-integration-tests branch from f06cca4 to b6cdeea Compare July 21, 2020 02:31
jonathanknowles added a commit that referenced this pull request Jul 21, 2020
For now, we actually want all test stake pools to remain alive for the
full duration of an integration test suite run, hence we configure our
test pools to have retirement dates that are well into the future.

In future, we will add more tests to simulate what happens after a stake
pool has retired.

In response to review feedback:

#1931 (comment)
@jonathanknowles

This comment has been minimized.

iohk-bors bot added a commit that referenced this pull request Jul 21, 2020
@iohk-bors

This comment has been minimized.

@jonathanknowles

This comment has been minimized.

iohk-bors bot added a commit that referenced this pull request Jul 21, 2020
@iohk-bors

This comment has been minimized.

@jonathanknowles

This comment has been minimized.

iohk-bors bot added a commit that referenced this pull request Jul 21, 2020
@iohk-bors

This comment has been minimized.

Justification: later on, we will need to distinguish between different
types of pool certificate.
For now, we actually want all test stake pools to remain alive for the
full duration of an integration test suite run, hence we configure our
test pools to have retirement dates that are well into the future.

In future, we will add more tests to simulate what happens after a stake
pool has retired.

In response to review feedback:

#1931 (comment)
Justification: this is an informational notice to assist with debugging.

(A disclaimer would be appropriate if it were necessary to limit the
scope of legal liability in some way, but that doesn't appear to be
necessary here.)
@jonathanknowles jonathanknowles force-pushed the jonathanknowles/basic-pool-registration-retirement-integration-tests branch from b64aa21 to 228f2a7 Compare July 21, 2020 07:19
@jonathanknowles

This comment has been minimized.

iohk-bors bot added a commit that referenced this pull request Jul 21, 2020
@iohk-bors

This comment has been minimized.

@jonathanknowles
Copy link
Contributor Author

bors r+

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Jul 21, 2020

Build succeeded

@iohk-bors iohk-bors bot merged commit 5161dde into master Jul 21, 2020
@iohk-bors iohk-bors bot deleted the jonathanknowles/basic-pool-registration-retirement-integration-tests branch July 21, 2020 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IMPROVEMENT Mark a PR as an improvement, for auto-generated CHANGELOG
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants