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

Testing maintenance actions #2314

Merged
merged 3 commits into from
Nov 12, 2020
Merged

Conversation

piotr-iohk
Copy link
Contributor

Issue Number

ADP-478

Overview

  • 2bb8359
    Move updateMetadataSource and verifyMetadataSource to DSL.hs

  • 26812b5
    Make PostPoolMaintenance to be 204 No Content to comply with swagger

  • afda594
    Integration tests for triggering maintenance action while metadata source is none or direct

Comments

First two test from the "proposal" https://jira.iohk.io/browse/ADP-478?focusedCommentId=27784&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-27784

And small fix for postMaintenanceAction to return 204 and no content.

@piotr-iohk piotr-iohk added the ADDING FEATURE Mark a PR as adding a new feature, for auto-generated CHANGELOG label Nov 12, 2020
@piotr-iohk piotr-iohk requested a review from hasufell November 12, 2020 11:20
@piotr-iohk piotr-iohk self-assigned this Nov 12, 2020
Copy link
Contributor

@hasufell hasufell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but need to update swagger schema

updateMetadataSource ctx "direct"
verifyMetadataSource ctx FetchDirect
triggerMaintenanceAction ctx "gc_stake_pools"
eventually "GC Status shows as NotApplicable" $ do
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should have an eventually that isn't 90+ seconds. Triggering this should be in the realm of <10s usually.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, added eventually with 10s timeout.

lib/core/src/Cardano/Wallet/Api.hs Show resolved Hide resolved
@piotr-iohk piotr-iohk force-pushed the piotr/testing_maintenance_actions branch from afda594 to e5cce92 Compare November 12, 2020 13:45
@hasufell hasufell self-requested a review November 12, 2020 14:23
@piotr-iohk
Copy link
Contributor Author

bors r+

iohk-bors bot added a commit that referenced this pull request Nov 12, 2020
2314: Testing maintenance actions r=piotr-iohk a=piotr-iohk

# Issue Number

ADP-478

# Overview

- 2bb8359
  Move updateMetadataSource and verifyMetadataSource to DSL.hs
  
- 26812b5
  Make PostPoolMaintenance to be 204 No Content to comply with swagger
  
- afda594
  Integration tests for triggering maintenance action while metadata source is none or direct
  


# Comments

First two test from the "proposal" https://jira.iohk.io/browse/ADP-478?focusedCommentId=27784&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-27784

And small fix for [postMaintenanceAction](https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/postMaintenanceAction) to return `204` and no content.


Co-authored-by: Piotr Stachyra <[email protected]>
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Nov 12, 2020

Build failed:


Failures:
--
  |  
  | src/Test/Integration/Scenario/API/Shelley/Transactions.hs:642:10:
  | 1) API Specifications, SHELLEY_TRANSACTIONS, TRANS_TTL_01 - Pending transaction expiry
  | predicate failed on: SlotNo 102
  | expected expiry: SlotNo 37792
  | actual expiry: SlotNo 37894
  |  
  | To rerun use: --match "/API Specifications/SHELLEY_TRANSACTIONS/TRANS_TTL_01 - Pending transaction expiry/"
  |  
  | Randomized with seed 1262043912
  |  
  | Finished in 691.3851 seconds
  | 699 examples, 1 failure, 5 pending


#2295

@piotr-iohk
Copy link
Contributor Author

bors r+

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Nov 12, 2020

Build succeeded:

@iohk-bors iohk-bors bot merged commit 0fb5139 into master Nov 12, 2020
@iohk-bors iohk-bors bot deleted the piotr/testing_maintenance_actions branch November 12, 2020 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ADDING FEATURE Mark a PR as adding a new feature, for auto-generated CHANGELOG
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants