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

Added basic sample of rewriting CLI integration test in GO #615

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,13 @@ func New(
},
)

app.UpgradeKeeper.SetUpgradeHandler(
"v1.4.4",
func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
return app.mm.RunMigrations(ctx, app.configurator, fromVM)
},
)

return app
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Testnet 2.0 CSA public endpoints

- `REST` - <https://on.test-net.dcl.csa-iot.org>
[//]: # (- `REST` - <https://on.test-net.dcl.csa-iot.org>)
- `RPC` - <https://on.test-net.dcl.csa-iot.org:26657>
- `gRPC` - on.test-net.dcl.csa-iot.org:8443
- `Seed Node` - 100.25.175.140:26656
2 changes: 1 addition & 1 deletion docs/design/noc-root-cert-design.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Retrieve NOC root certificates associated with a specific VID.
- CLI Command:
- `dcld query pki get_noc_x509_root_certs --vid=<uint16>`
- REST API:
- GET `/dcl/pki/noc-root-certificates/{vid}`
- GET `/dcl/pki/noc-vid-root-certificates/{vid}`

### GET_ALL_NOC_X509_ROOT_CERTS

Expand Down
4 changes: 2 additions & 2 deletions docs/pool-upgrade-how-to.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ One of the trustees proposes the upgrade using the following steps:
```
Please note, that it must be called against the `dcld` binary, not the platform archive itself. So, for Ubuntu, either take a `dcld` binary from the root folder of the release, or extract it from ` dcld.ubuntu.tar.gz`.

2. Sends [`ProposeUpgrade`](./transactions.md#propose_upgrade) transaction
2. Sends [`ProposeUpgrade`](transactions.md#propose_upgrade) transaction
with the name of the new upgrade handler, the chosen ledger height and the
info containing URLs of the new application version binaries for supported
platforms with the calculated checksums.
Expand Down Expand Up @@ -92,7 +92,7 @@ Each of them uses the following steps to accomplish this:
```
Please note, that it must be called against the `dcld` binary, not the platform archive itself. So, for Ubuntu, either take a `dcld` binary from the root folder of the release, or extract it from ` dcld.ubuntu.tar.gz`.

2. Sends [`ApproveUpgrade`](./transactions.md#approve_upgrade) transaction
2. Sends [`ApproveUpgrade`](transactions.md#approve_upgrade) transaction
with the name of the proposed upgrade.

For example:
Expand Down
6 changes: 3 additions & 3 deletions docs/pool-upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ Any upgrade plan has the following fields:
## Workflow

Initially an upgrade plan is proposed by one of trustees using
[propose-upgrade](./transactions.md#propose_upgrade) command. Then the proposed
[propose-upgrade](transactions.md) command. Then the proposed
upgrade plan has to be approved by the majority of trustees (2/3 including the
trustee who has proposed it) using
[approve-upgrade](./transactions.md#approve_upgrade) command. When the necessary
[approve-upgrade](transactions.md#approve_upgrade) command. When the necessary
count of approvals is gathered, the upgrade plan turns into the approved state
and is actually scheduled.

Expand Down Expand Up @@ -81,5 +81,5 @@ checksum when the URL is provided in the specified format. If the downloaded
file checksum does not equal to the checksum provided in the URL, `go-getter`
reports that checksums did not match. To view `Info` field value of an upgrade
plan, just execute an appropriate query command from `dclupgrade` or `upgrade`
module. See [Upgrade CLI commands reference](./transactions.md#upgrade) for
module. See [Upgrade CLI commands reference](transactions.md#upgrade) for
details.
Loading
Loading