Skip to content

Commit

Permalink
Adjust existing tests for new Bech32 key output
Browse files Browse the repository at this point in the history
  • Loading branch information
intricate authored and newhoggy committed Apr 2, 2023
1 parent 8bb88de commit 765a236
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 24 deletions.
7 changes: 2 additions & 5 deletions cardano-cli/test/Test/Golden/Shelley/Address/KeyGen.hs
Expand Up @@ -27,8 +27,5 @@ golden_shelleyAddressKeyGen = propertyOnce . H.moduleWorkspace "tmp" $ \tempDir
void $ H.readFile addressVKeyFile
void $ H.readFile addressSKeyFile

H.assertFileOccurences 1 "PaymentVerificationKeyShelley" addressVKeyFile
H.assertFileOccurences 1 "PaymentSigningKeyShelley_ed25519" addressSKeyFile

H.assertEndsWithSingleNewline addressVKeyFile
H.assertEndsWithSingleNewline addressSKeyFile
H.assertFileOccurences 1 "addr_vk" addressVKeyFile
H.assertFileOccurences 1 "addr_sk" addressSKeyFile
6 changes: 2 additions & 4 deletions cardano-cli/test/Test/Golden/Shelley/Node/KeyGen.hs
Expand Up @@ -26,10 +26,8 @@ golden_shelleyNodeKeyGen = propertyOnce . H.moduleWorkspace "tmp" $ \tempDir ->
, "--operational-certificate-issue-counter", opCertCounterFile
]

H.assertFileOccurences 1 "StakePoolVerificationKey_ed25519" verificationKeyFile
H.assertFileOccurences 1 "StakePoolSigningKey_ed25519" signingKeyFile
H.assertFileOccurences 1 "pool_vk" verificationKeyFile
H.assertFileOccurences 1 "pool_sk" signingKeyFile
H.assertFileOccurences 1 "NodeOperationalCertificateIssueCounter" opCertCounterFile

H.assertEndsWithSingleNewline verificationKeyFile
H.assertEndsWithSingleNewline signingKeyFile
H.assertEndsWithSingleNewline opCertCounterFile
7 changes: 2 additions & 5 deletions cardano-cli/test/Test/Golden/Shelley/Node/KeyGenKes.hs
Expand Up @@ -24,8 +24,5 @@ golden_shelleyNodeKeyGenKes = propertyOnce . H.moduleWorkspace "tmp" $ \tempDir
, "--signing-key-file", signingKey
]

H.assertFileOccurences 1 "KesVerificationKey_ed25519_kes_2^6" verificationKey
H.assertFileOccurences 1 "KesSigningKey_ed25519_kes_2^6" signingKey

H.assertEndsWithSingleNewline verificationKey
H.assertEndsWithSingleNewline signingKey
H.assertFileOccurences 1 "kes_vk" verificationKey
H.assertFileOccurences 1 "kes_sk" signingKey
7 changes: 2 additions & 5 deletions cardano-cli/test/Test/Golden/Shelley/Node/KeyGenVrf.hs
Expand Up @@ -24,8 +24,5 @@ golden_shelleyNodeKeyGenVrf = propertyOnce . H.moduleWorkspace "tmp" $ \tempDir
, "--signing-key-file", signingKey
]

H.assertFileOccurences 1 "VRF Verification Key" verificationKey
H.assertFileOccurences 1 "VRF Signing Key" signingKey

H.assertEndsWithSingleNewline verificationKey
H.assertEndsWithSingleNewline signingKey
H.assertFileOccurences 1 "vrf_vk" verificationKey
H.assertFileOccurences 1 "vrf_sk" signingKey
7 changes: 2 additions & 5 deletions cardano-cli/test/Test/Golden/Shelley/StakeAddress/KeyGen.hs
Expand Up @@ -24,8 +24,5 @@ golden_shelleyStakeAddressKeyGen = propertyOnce . H.moduleWorkspace "tmp" $ \tem
, "--signing-key-file", signingKeyFile
]

H.assertFileOccurences 1 "StakeVerificationKeyShelley_ed25519" verificationKeyFile
H.assertFileOccurences 1 "StakeSigningKeyShelley_ed25519" signingKeyFile

H.assertEndsWithSingleNewline verificationKeyFile
H.assertEndsWithSingleNewline signingKeyFile
H.assertFileOccurences 1 "stake_vk" verificationKeyFile
H.assertFileOccurences 1 "stake_sk" signingKeyFile

0 comments on commit 765a236

Please sign in to comment.