-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PLT-8221 - Port of golden tests (where applicable) (#222)
* PLT-8221 - Port of golden tests (where applicable) * PLT-8221 - Removed unnecessary dependencies * PLT-8221 - Updated a name (sidechain -> chain-index) * PLT-8221 - Trying to fix tests on CI build
- Loading branch information
1 parent
fead9d1
commit 830f9ea
Showing
25 changed files
with
761 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...chain-index/test/Spec/Golden/CLIInputValidation/invalidAddress-MissingBech32Prefix.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
option --addresses-to-index: Invalid address (not a valid Bech32 address representation): "x8phkx6acpnf78fuvxn0mkew3l0fd058hzquvz7w36x4gt7r0vd4msrxnuwnccdxlhdjar77j6lg0wypcc9uar5d2shskhj42g" | ||
|
||
Usage: marconi-chain-index [--version] (-s|--socket-path FILE-PATH) | ||
(--mainnet | --testnet-magic NATURAL) | ||
[(-n|--slot-no SLOT-NO) | ||
(-b|--block-header-hash BLOCK-HEADER-HASH)] | ||
[--max-indexing-depth | --min-indexing-depth NATURAL] | ||
[--initial-retry-time NATURAL] | ||
[--no-max-retry-time | --max-retry-time NATURAL] | ||
(-d|--db-dir DIR) [--enable-txoutref] | ||
[--disable-utxo] [--disable-address-datum] | ||
[--disable-script-tx] | ||
[--disable-epoch-stakepool-size] [--disable-mintburn] | ||
[--http-port INT] | ||
[(-a|--addresses-to-index BECH32-ADDRESS)] | ||
[(--match-asset-id POLICY_ID[.ASSET_NAME])] | ||
[--node-config-path ARG] | ||
[--fail-if-resyncing-from-genesis] | ||
|
||
marconi |
20 changes: 20 additions & 0 deletions
20
marconi-chain-index/test/Spec/Golden/CLIInputValidation/invalidAddress-badFormat.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
option --addresses-to-index: Invalid address (not a valid Bech32 address representation): "notAnAddress" | ||
|
||
Usage: marconi-chain-index [--version] (-s|--socket-path FILE-PATH) | ||
(--mainnet | --testnet-magic NATURAL) | ||
[(-n|--slot-no SLOT-NO) | ||
(-b|--block-header-hash BLOCK-HEADER-HASH)] | ||
[--max-indexing-depth | --min-indexing-depth NATURAL] | ||
[--initial-retry-time NATURAL] | ||
[--no-max-retry-time | --max-retry-time NATURAL] | ||
(-d|--db-dir DIR) [--enable-txoutref] | ||
[--disable-utxo] [--disable-address-datum] | ||
[--disable-script-tx] | ||
[--disable-epoch-stakepool-size] [--disable-mintburn] | ||
[--http-port INT] | ||
[(-a|--addresses-to-index BECH32-ADDRESS)] | ||
[(--match-asset-id POLICY_ID[.ASSET_NAME])] | ||
[--node-config-path ARG] | ||
[--fail-if-resyncing-from-genesis] | ||
|
||
marconi |
20 changes: 20 additions & 0 deletions
20
marconi-chain-index/test/Spec/Golden/CLIInputValidation/invalidAddressPrefix-stake1.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
option --addresses-to-index: Invalid address (not a valid Bech32 address representation): "stake1uyehkck0lajq8gr28t9uxnuvgcqrc6070x3k9r8048z8y5gh6ffgw" | ||
|
||
Usage: marconi-chain-index [--version] (-s|--socket-path FILE-PATH) | ||
(--mainnet | --testnet-magic NATURAL) | ||
[(-n|--slot-no SLOT-NO) | ||
(-b|--block-header-hash BLOCK-HEADER-HASH)] | ||
[--max-indexing-depth | --min-indexing-depth NATURAL] | ||
[--initial-retry-time NATURAL] | ||
[--no-max-retry-time | --max-retry-time NATURAL] | ||
(-d|--db-dir DIR) [--enable-txoutref] | ||
[--disable-utxo] [--disable-address-datum] | ||
[--disable-script-tx] | ||
[--disable-epoch-stakepool-size] [--disable-mintburn] | ||
[--http-port INT] | ||
[(-a|--addresses-to-index BECH32-ADDRESS)] | ||
[(--match-asset-id POLICY_ID[.ASSET_NAME])] | ||
[--node-config-path ARG] | ||
[--fail-if-resyncing-from-genesis] | ||
|
||
marconi |
20 changes: 20 additions & 0 deletions
20
...ni-chain-index/test/Spec/Golden/CLIInputValidation/invalidAddressPrefix-stake_test.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
option --addresses-to-index: Invalid address (not a valid Bech32 address representation): "stake_test17rphkx6acpnf78fuvxn0mkew3l0fd058hzquvz7w36x4gtcljw6kf" | ||
|
||
Usage: marconi-chain-index [--version] (-s|--socket-path FILE-PATH) | ||
(--mainnet | --testnet-magic NATURAL) | ||
[(-n|--slot-no SLOT-NO) | ||
(-b|--block-header-hash BLOCK-HEADER-HASH)] | ||
[--max-indexing-depth | --min-indexing-depth NATURAL] | ||
[--initial-retry-time NATURAL] | ||
[--no-max-retry-time | --max-retry-time NATURAL] | ||
(-d|--db-dir DIR) [--enable-txoutref] | ||
[--disable-utxo] [--disable-address-datum] | ||
[--disable-script-tx] | ||
[--disable-epoch-stakepool-size] [--disable-mintburn] | ||
[--http-port INT] | ||
[(-a|--addresses-to-index BECH32-ADDRESS)] | ||
[(--match-asset-id POLICY_ID[.ASSET_NAME])] | ||
[--node-config-path ARG] | ||
[--fail-if-resyncing-from-genesis] | ||
|
||
marconi |
20 changes: 20 additions & 0 deletions
20
marconi-chain-index/test/Spec/Golden/CLIInputValidation/invalidAddress_1CharShort.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
option --addresses-to-index: Invalid address (not a valid Bech32 address representation): "addr1x8phkx6acpnf78fuvxn0mkew3l0fd058hzquvz7w36x4gt7r0vd4msrxnuwnccdxlhdjar77j6lg0wypcc9uar5d2shskhj42" | ||
|
||
Usage: marconi-chain-index [--version] (-s|--socket-path FILE-PATH) | ||
(--mainnet | --testnet-magic NATURAL) | ||
[(-n|--slot-no SLOT-NO) | ||
(-b|--block-header-hash BLOCK-HEADER-HASH)] | ||
[--max-indexing-depth | --min-indexing-depth NATURAL] | ||
[--initial-retry-time NATURAL] | ||
[--no-max-retry-time | --max-retry-time NATURAL] | ||
(-d|--db-dir DIR) [--enable-txoutref] | ||
[--disable-utxo] [--disable-address-datum] | ||
[--disable-script-tx] | ||
[--disable-epoch-stakepool-size] [--disable-mintburn] | ||
[--http-port INT] | ||
[(-a|--addresses-to-index BECH32-ADDRESS)] | ||
[(--match-asset-id POLICY_ID[.ASSET_NAME])] | ||
[--node-config-path ARG] | ||
[--fail-if-resyncing-from-genesis] | ||
|
||
marconi |
20 changes: 20 additions & 0 deletions
20
...x/test/Spec/Golden/CLIInputValidation/invalidAssetId-assetName-invalidBase16Format.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
option --match-asset-id: Expected Base16-encoded bytestring, but got 0000notAToken0; invalid character at offset: 4 | ||
|
||
Usage: marconi-chain-index [--version] (-s|--socket-path FILE-PATH) | ||
(--mainnet | --testnet-magic NATURAL) | ||
[(-n|--slot-no SLOT-NO) | ||
(-b|--block-header-hash BLOCK-HEADER-HASH)] | ||
[--max-indexing-depth | --min-indexing-depth NATURAL] | ||
[--initial-retry-time NATURAL] | ||
[--no-max-retry-time | --max-retry-time NATURAL] | ||
(-d|--db-dir DIR) [--enable-txoutref] | ||
[--disable-utxo] [--disable-address-datum] | ||
[--disable-script-tx] | ||
[--disable-epoch-stakepool-size] [--disable-mintburn] | ||
[--http-port INT] | ||
[(-a|--addresses-to-index BECH32-ADDRESS)] | ||
[(--match-asset-id POLICY_ID[.ASSET_NAME])] | ||
[--node-config-path ARG] | ||
[--fail-if-resyncing-from-genesis] | ||
|
||
marconi |
20 changes: 20 additions & 0 deletions
20
...x/test/Spec/Golden/CLIInputValidation/invalidAssetId-assetName-invalidBase16Length.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
option --match-asset-id: Expected Base16-encoded bytestring, but got deadbeeef; invalid bytestring size | ||
|
||
Usage: marconi-chain-index [--version] (-s|--socket-path FILE-PATH) | ||
(--mainnet | --testnet-magic NATURAL) | ||
[(-n|--slot-no SLOT-NO) | ||
(-b|--block-header-hash BLOCK-HEADER-HASH)] | ||
[--max-indexing-depth | --min-indexing-depth NATURAL] | ||
[--initial-retry-time NATURAL] | ||
[--no-max-retry-time | --max-retry-time NATURAL] | ||
(-d|--db-dir DIR) [--enable-txoutref] | ||
[--disable-utxo] [--disable-address-datum] | ||
[--disable-script-tx] | ||
[--disable-epoch-stakepool-size] [--disable-mintburn] | ||
[--http-port INT] | ||
[(-a|--addresses-to-index BECH32-ADDRESS)] | ||
[(--match-asset-id POLICY_ID[.ASSET_NAME])] | ||
[--node-config-path ARG] | ||
[--fail-if-resyncing-from-genesis] | ||
|
||
marconi |
20 changes: 20 additions & 0 deletions
20
...i-chain-index/test/Spec/Golden/CLIInputValidation/invalidAssetId-assetName-tooLong.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
option --match-asset-id: Failed to deserialise deadbeef0000000000000000000000000000000000000000000000000000000000 as AssetName. Unable to deserialise AssetName (the bytestring should be no longer than 32 bytes long which corresponds to a hex representation of 64 characters) | ||
|
||
Usage: marconi-chain-index [--version] (-s|--socket-path FILE-PATH) | ||
(--mainnet | --testnet-magic NATURAL) | ||
[(-n|--slot-no SLOT-NO) | ||
(-b|--block-header-hash BLOCK-HEADER-HASH)] | ||
[--max-indexing-depth | --min-indexing-depth NATURAL] | ||
[--initial-retry-time NATURAL] | ||
[--no-max-retry-time | --max-retry-time NATURAL] | ||
(-d|--db-dir DIR) [--enable-txoutref] | ||
[--disable-utxo] [--disable-address-datum] | ||
[--disable-script-tx] | ||
[--disable-epoch-stakepool-size] [--disable-mintburn] | ||
[--http-port INT] | ||
[(-a|--addresses-to-index BECH32-ADDRESS)] | ||
[(--match-asset-id POLICY_ID[.ASSET_NAME])] | ||
[--node-config-path ARG] | ||
[--fail-if-resyncing-from-genesis] | ||
|
||
marconi |
20 changes: 20 additions & 0 deletions
20
...-chain-index/test/Spec/Golden/CLIInputValidation/invalidAssetId-policyId-1ByteLong.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
option --match-asset-id: Failed to deserialise 1cdc58c3b6d1ab11dd047ac9e3a2ec26aabf0839abe37b791cb810f2f2 as PolicyId. Incorrect number of bytes | ||
|
||
Usage: marconi-chain-index [--version] (-s|--socket-path FILE-PATH) | ||
(--mainnet | --testnet-magic NATURAL) | ||
[(-n|--slot-no SLOT-NO) | ||
(-b|--block-header-hash BLOCK-HEADER-HASH)] | ||
[--max-indexing-depth | --min-indexing-depth NATURAL] | ||
[--initial-retry-time NATURAL] | ||
[--no-max-retry-time | --max-retry-time NATURAL] | ||
(-d|--db-dir DIR) [--enable-txoutref] | ||
[--disable-utxo] [--disable-address-datum] | ||
[--disable-script-tx] | ||
[--disable-epoch-stakepool-size] [--disable-mintburn] | ||
[--http-port INT] | ||
[(-a|--addresses-to-index BECH32-ADDRESS)] | ||
[(--match-asset-id POLICY_ID[.ASSET_NAME])] | ||
[--node-config-path ARG] | ||
[--fail-if-resyncing-from-genesis] | ||
|
||
marconi |
20 changes: 20 additions & 0 deletions
20
...chain-index/test/Spec/Golden/CLIInputValidation/invalidAssetId-policyId-1ByteShort.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
option --match-asset-id: Failed to deserialise 1cdc58c3b6d1ab11dd047ac9e3a2ec26aabf0839abe37b791cb810 as PolicyId. Incorrect number of bytes | ||
|
||
Usage: marconi-chain-index [--version] (-s|--socket-path FILE-PATH) | ||
(--mainnet | --testnet-magic NATURAL) | ||
[(-n|--slot-no SLOT-NO) | ||
(-b|--block-header-hash BLOCK-HEADER-HASH)] | ||
[--max-indexing-depth | --min-indexing-depth NATURAL] | ||
[--initial-retry-time NATURAL] | ||
[--no-max-retry-time | --max-retry-time NATURAL] | ||
(-d|--db-dir DIR) [--enable-txoutref] | ||
[--disable-utxo] [--disable-address-datum] | ||
[--disable-script-tx] | ||
[--disable-epoch-stakepool-size] [--disable-mintburn] | ||
[--http-port INT] | ||
[(-a|--addresses-to-index BECH32-ADDRESS)] | ||
[(--match-asset-id POLICY_ID[.ASSET_NAME])] | ||
[--node-config-path ARG] | ||
[--fail-if-resyncing-from-genesis] | ||
|
||
marconi |
20 changes: 20 additions & 0 deletions
20
...ain-index/test/Spec/Golden/CLIInputValidation/invalidAssetId-policyId-1HexCharLong.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
option --match-asset-id: Expected Base16-encoded bytestring, but got 1cdc58c3b6d1ab11dd047ac9e3a2ec26aabf0839abe37b791cb810f2f; invalid bytestring size | ||
|
||
Usage: marconi-chain-index [--version] (-s|--socket-path FILE-PATH) | ||
(--mainnet | --testnet-magic NATURAL) | ||
[(-n|--slot-no SLOT-NO) | ||
(-b|--block-header-hash BLOCK-HEADER-HASH)] | ||
[--max-indexing-depth | --min-indexing-depth NATURAL] | ||
[--initial-retry-time NATURAL] | ||
[--no-max-retry-time | --max-retry-time NATURAL] | ||
(-d|--db-dir DIR) [--enable-txoutref] | ||
[--disable-utxo] [--disable-address-datum] | ||
[--disable-script-tx] | ||
[--disable-epoch-stakepool-size] [--disable-mintburn] | ||
[--http-port INT] | ||
[(-a|--addresses-to-index BECH32-ADDRESS)] | ||
[(--match-asset-id POLICY_ID[.ASSET_NAME])] | ||
[--node-config-path ARG] | ||
[--fail-if-resyncing-from-genesis] | ||
|
||
marconi |
20 changes: 20 additions & 0 deletions
20
...in-index/test/Spec/Golden/CLIInputValidation/invalidAssetId-policyId-1HexCharShort.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
option --match-asset-id: Expected Base16-encoded bytestring, but got 1cdc58c3b6d1ab11dd047ac9e3a2ec26aabf0839abe37b791cb810f; invalid bytestring size | ||
|
||
Usage: marconi-chain-index [--version] (-s|--socket-path FILE-PATH) | ||
(--mainnet | --testnet-magic NATURAL) | ||
[(-n|--slot-no SLOT-NO) | ||
(-b|--block-header-hash BLOCK-HEADER-HASH)] | ||
[--max-indexing-depth | --min-indexing-depth NATURAL] | ||
[--initial-retry-time NATURAL] | ||
[--no-max-retry-time | --max-retry-time NATURAL] | ||
(-d|--db-dir DIR) [--enable-txoutref] | ||
[--disable-utxo] [--disable-address-datum] | ||
[--disable-script-tx] | ||
[--disable-epoch-stakepool-size] [--disable-mintburn] | ||
[--http-port INT] | ||
[(-a|--addresses-to-index BECH32-ADDRESS)] | ||
[(--match-asset-id POLICY_ID[.ASSET_NAME])] | ||
[--node-config-path ARG] | ||
[--fail-if-resyncing-from-genesis] | ||
|
||
marconi |
20 changes: 20 additions & 0 deletions
20
...-index/test/Spec/Golden/CLIInputValidation/invalidAssetId-policyId-badBase16Format.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
option --match-asset-id: Expected Base16-encoded bytestring, but got 00aPolicyIdOfCorrectLength000000000000000000000000000000000000; invalid character at offset: 3 | ||
|
||
Usage: marconi-chain-index [--version] (-s|--socket-path FILE-PATH) | ||
(--mainnet | --testnet-magic NATURAL) | ||
[(-n|--slot-no SLOT-NO) | ||
(-b|--block-header-hash BLOCK-HEADER-HASH)] | ||
[--max-indexing-depth | --min-indexing-depth NATURAL] | ||
[--initial-retry-time NATURAL] | ||
[--no-max-retry-time | --max-retry-time NATURAL] | ||
(-d|--db-dir DIR) [--enable-txoutref] | ||
[--disable-utxo] [--disable-address-datum] | ||
[--disable-script-tx] | ||
[--disable-epoch-stakepool-size] [--disable-mintburn] | ||
[--http-port INT] | ||
[(-a|--addresses-to-index BECH32-ADDRESS)] | ||
[(--match-asset-id POLICY_ID[.ASSET_NAME])] | ||
[--node-config-path ARG] | ||
[--fail-if-resyncing-from-genesis] | ||
|
||
marconi |
6 changes: 6 additions & 0 deletions
6
marconi-chain-index/test/Spec/Golden/Routes/current-synced-point-response-1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"blockHeaderHash": null, | ||
"blockNo": null, | ||
"nodeTip": null, | ||
"slotNo": null | ||
} |
10 changes: 10 additions & 0 deletions
10
marconi-chain-index/test/Spec/Golden/Routes/current-synced-point-response-2.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"blockHeaderHash": "6161616161616161616161616161616161616161616161616161616161616161", | ||
"blockNo": 64903, | ||
"nodeTip": { | ||
"blockHeaderHash": "6161616161616161616161616161616161616161616161616161616161616161", | ||
"blockNo": 64903, | ||
"slotNo": 1 | ||
}, | ||
"slotNo": 1 | ||
} |
8 changes: 8 additions & 0 deletions
8
marconi-chain-index/test/Spec/Golden/Routes/epoch-nonce-response.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"_nonceBlockNo": 21645, | ||
"_nonceEpochNo": 2, | ||
"_nonceNonce": { | ||
"contents": "ce4a80f49c44c21d7114d93fe5f992a2f9de6bad4a03a5df7e7403004ebe16fc", | ||
"tag": "Nonce" | ||
} | ||
} |
Oops, something went wrong.