Skip to content

Commit

Permalink
Merge #981
Browse files Browse the repository at this point in the history
981: Make API Golden tests filenames compatible with Windows r=rvl a=KtorZ

# Issue Number

<!-- Put here a reference to the issue this PR relates to and which requirements it tackles -->

#703  

# Overview

<!-- Detail in a few bullet points the work accomplished in this PR -->

- [x] I have revised api golden test filenames generation to only use alpha-num characters
- [x] I have re-generated all api golden tests

# Comments

<!-- Additional comments or screenshots to attach if any -->

```
$ ls
AddressAmountTestnet.json         ApiNetworkTip.json                               ApiTimeReference.json                ApiTWalletId.json              ByronWalletPostData.json
ApiAddressTestnet.json            ApiStakePool.json                                ApiTPassphraseencryption.json        ApiTWalletName.json            PostTransactionDataTestnet.json
ApiBlockReference.json            ApiStakePoolMetrics.json                         ApiTransactionTestnet.json           ApiTWalletPassphraseInfo.json  PostTransactionFeeDataTestnet.json
ApiByronWallet.json               ApiTAddressPoolGap.json                          ApiTSyncProgress.json                ApiTxId.json                   WalletPostData.json
ApiByronWalletMigrationInfo.json  ApiTAddressProxyNetworkDiscriminantTestnet.json  ApiTTxStatus.json                    ApiUtxoStatistics.json         WalletPutData.json
ApiFee.json                       ApiTDirection.json                               ApiTWalletBalance.json               ApiWallet.json                 WalletPutPassphraseData.json
ApiNetworkInformation.json        ApiTHashTx.json                                  ApiTWalletDelegationApiTPoolId.json  ApiWalletPassphrase.json
```

<!-- 
Don't forget to:

 ✓ Self-review your changes to make sure nothing unexpected slipped through
 ✓ Assign yourself to the PR
 ✓ Assign one or several reviewer(s)
 ✓ Once created, link this PR to its corresponding ticket
 ✓ Acknowledge any changes required to the Wiki
-->


Co-authored-by: KtorZ <[email protected]>
  • Loading branch information
iohk-bors[bot] and KtorZ authored Nov 8, 2019
2 parents 7c2ae93 + 503b120 commit 80ddeeb
Show file tree
Hide file tree
Showing 53 changed files with 5,361 additions and 6,545 deletions.
1 change: 1 addition & 0 deletions lib/core/cardano-wallet-core.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ test-suite unit
, deepseq
, extra >= 1.6.17
, file-embed
, filepath
, fmt
, foldl
, generic-arbitrary
Expand Down

This file was deleted.

This file was deleted.

75 changes: 0 additions & 75 deletions lib/core/test/data/Cardano/Wallet/Api/AddressAmount 'Testnet.json

This file was deleted.

75 changes: 75 additions & 0 deletions lib/core/test/data/Cardano/Wallet/Api/AddressAmountTestnet.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
"seed": 204870450890311265,
"samples": [
{
"amount": {
"quantity": 20,
"unit": "lovelace"
},
"address": "ta1sjyfdnvykmnsze3cx5wuwj04ydf6a9ryguld225fg48jq0jtckgtvld0rqqaacn0q68n3rfte6hahf6lhl4fmqc5gqe7hk5k34ne547ghf6qwl"
},
{
"amount": {
"quantity": 119,
"unit": "lovelace"
},
"address": "BYsGgmvQWs7RjgXJMFbALWXg6Vvct2AwNGCtvSScuBNpNrNNLEhANVuRJXQwJDc7xuhzTWQv8K"
},
{
"amount": {
"quantity": 116,
"unit": "lovelace"
},
"address": "ta1s02drnmqhma5grd3gacyjz77cfu432dsyqs9ueqwmjcex6m6qacmswxdd5v"
},
{
"amount": {
"quantity": 210,
"unit": "lovelace"
},
"address": "QBr6HHTS9ydYExEcoCXewmrq6nTbg5j4PvirUvWXgXWMZTmx5MniXNWtjMkHLA5Wzz7i2gR4EcXetAFxnw"
},
{
"amount": {
"quantity": 145,
"unit": "lovelace"
},
"address": "ta1sw35luer4qrqne82mx0pq2k9q7pe9fgxsdzlwmymjc9qjhznac5tgypdy8d"
},
{
"amount": {
"quantity": 2,
"unit": "lovelace"
},
"address": "ta1sdumkvuwq7c75583ugpy9mfk0ee2dymnyzjf4644zhughz2expl0wnutkcz"
},
{
"amount": {
"quantity": 65,
"unit": "lovelace"
},
"address": "8niigVuNRTiSqd4qJaYXD4Cof3Dz9k1wdq4jbxRowWkf9CYX6zcrsCVT6GRe7iR1eV1KfMvJjhsHu2FWTakmR"
},
{
"amount": {
"quantity": 146,
"unit": "lovelace"
},
"address": "ta1sddj8fgpyyekd99s4y5h6lxltcw5t4k526gg0ek2n0a9dqu9km9s5m23968"
},
{
"amount": {
"quantity": 96,
"unit": "lovelace"
},
"address": "ta1ss09glmf80nfgj6502gwk57ayxu3f8zk238r8tygt358czrw6uh3n9m0cq6wg75sah0gcvpuw2pl0cn40zqusxsauv4cnfhn68mn4w5d90vf9l"
},
{
"amount": {
"quantity": 202,
"unit": "lovelace"
},
"address": "ta1s0ejl2a3wu4s2m20xpl8l6krdqa7w05qskhczvem4ngag3yvmfuqz95nhg4"
}
]
}
45 changes: 0 additions & 45 deletions lib/core/test/data/Cardano/Wallet/Api/ApiAddress 'Testnet.json

This file was deleted.

45 changes: 45 additions & 0 deletions lib/core/test/data/Cardano/Wallet/Api/ApiAddressTestnet.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"seed": -3133351209903480230,
"samples": [
{
"state": "unused",
"id": "ta1s0vw4mszv9dgn5smy2az4x43qtsuldmyd0uezqapz49cuvujv8qayn890ms"
},
{
"state": "used",
"id": "ta1sv6j89zl8cy380ya6f9uknrjt2ttvlg95ca95jt5f3p22c2fkw5hxn7z48q"
},
{
"state": "unused",
"id": "ta1s3uvxr2xsmry66lycuuut5ra4skvgftxmkcqk2prlnjv54aygl49668rnq070al26zlppg99rj3p0a38mmv9hkmxgwnlqxmpssv4c777v8e5g6"
},
{
"state": "used",
"id": "87iPzcvNTUxXTWTMebgtJHxFW6uzxDANmjd4vk32upVYYmremjwPRFRcU5AdSyBNtxwNYB"
},
{
"state": "used",
"id": "ta1s3trl9yd4a8645jvlfwexlx4qs4hh5qnm2pfw3p07pdnhnfhshk6qn80svml9m586gqwd0z9q4myw84kv5zr4qt3rnmql57wyxasvs6dlv0rh0"
},
{
"state": "used",
"id": "ta1ssldeml5ewjdeu58r2vutvjj983xnrean269huqqwwalcu2wj97pe524pyl500c6x9tuey4h9xpnwamf436tj5zvw38xj0quncy9u5m2k4ayk2"
},
{
"state": "used",
"id": "ta1sshknl0scun2kn978a2fce3jytztxgkx3mm67qkwchllmdunj7q93wcmxhp3md0q0ccfk6n7jva8jtrudca4wnk2n3murlneh9gpw46ejq4dfz"
},
{
"state": "unused",
"id": "J7rQqaLDRKnXVPRz6evx2tU4uhvH5ayCcqQtCYB7UZ5ezSmCc4hkcNdE7XQGehNzPfZUzJ7sQtXjra4G8r75JXcPgW7SB"
},
{
"state": "used",
"id": "ta1sntrznuj3q5ruhuj80vgcjuchr7wvxrhkwxym3g8a0vxpntz4kjvg4kdw283emuahxtqfax8wh4wjy9u2768xc095c7y3v39aun72mrumlfe4g"
},
{
"state": "unused",
"id": "2C2qjNw96gcteRzfhMYbkvT2B5RLHwR58ZW8KQEz8cLPEu7GieMRf1xuEauucJgDECKtuiTuQHJs6dgP"
}
]
}
Loading

0 comments on commit 80ddeeb

Please sign in to comment.