Skip to content

Commit 8b55bed

Browse files
committed
Fix golden tests
1 parent 5d64f67 commit 8b55bed

19 files changed

+22
-31
lines changed

cardano-cli/test/cardano-cli-golden/Test/Golden/Governance/Committee.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ hprop_golden_governance_CommitteeCreateHotKeyAuthorizationCertificate =
116116
]
117117

118118
assertHasMappings
119-
[ ("type", "CertificateConway")
119+
[ ("type", "Certificate")
120120
, ("description", "Constitutional Committee Hot Key Registration Certificate")
121121
]
122122
certFile
@@ -156,7 +156,7 @@ hprop_golden_governance_CommitteeCreateColdKeyResignationCertificate =
156156
]
157157

158158
assertHasMappings
159-
[ ("type", "CertificateConway")
159+
[ ("type", "Certificate")
160160
, ("description", "Constitutional Committee Cold Key Resignation Certificate")
161161
]
162162
certFile

cardano-cli/test/cardano-cli-golden/Test/Golden/Shelley/TextEnvelope/Certificates/GenesisKeyDelegation.hs

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,6 @@
22

33
module Test.Golden.Shelley.TextEnvelope.Certificates.GenesisKeyDelegation where
44

5-
import Cardano.Api
6-
( AsType (..)
7-
, CardanoEra (..)
8-
, cardanoEraConstraints
9-
, textEnvelopeTypeInEra
10-
)
11-
125
import Control.Monad (void)
136

147
import Test.Cardano.CLI.Util
@@ -20,8 +13,6 @@ import Hedgehog.Extras.Test.File qualified as H
2013
hprop_golden_shelleyGenesisKeyDelegationCertificate :: Property
2114
hprop_golden_shelleyGenesisKeyDelegationCertificate =
2215
watchdogProp . propertyOnce . H.moduleWorkspace "tmp" $ \tempDir -> do
23-
let era = BabbageEra
24-
2516
-- Reference certificate
2617
referenceCertificateFilePath <-
2718
noteInputFile $
@@ -106,8 +97,8 @@ hprop_golden_shelleyGenesisKeyDelegationCertificate =
10697
]
10798

10899
H.assertFilesExist [genesisKeyDelegCertFilePath]
109-
110-
let certificateType = cardanoEraConstraints era $ textEnvelopeTypeInEra era AsCertificate
100+
-- TODO: Left off here. You need to expose textEnvelopeTypeInEra for experimental
101+
let certificateType = "Certificate"
111102

112103
checkTextEnvelopeFormat
113104
certificateType
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"type": "CertificateConway",
2+
"type": "Certificate",
33
"description": "DRep Key Registration Certificate",
44
"cborHex": "84108200581ceb09d5556a8bce421074e394d02c79ced96741657b4cf7ca8995294d00826964756d6d792d75726c582052e69500a92d80f2126c836a4903dc582006709f004cf7a28ed648f732dff8d2"
55
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"type": "CertificateConway",
2+
"type": "Certificate",
33
"description": "DRep Script Registration Certificate",
44
"cborHex": "84108201581c0000000000000000000000000000000000000000000000000000000300826964756d6d792d75726c582052e69500a92d80f2126c836a4903dc582006709f004cf7a28ed648f732dff8d2"
55
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"type": "CertificateConway",
2+
"type": "Certificate",
33
"description": "DRep Key Retirement Certificate",
44
"cborHex": "83118200581ceb09d5556a8bce421074e394d02c79ced96741657b4cf7ca8995294d1a000f4240"
55
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"type": "CertificateConway",
2+
"type": "Certificate",
33
"description": "DRep Key Update Certificate",
44
"cborHex": "83128200581ceb09d5556a8bce421074e394d02c79ced96741657b4cf7ca8995294d826964756d6d792d75726c582052e69500a92d80f2126c836a4903dc582006709f004cf7a28ed648f732dff8d2"
55
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"type": "CertificateConway",
2+
"type": "Certificate",
33
"description": "DRep Script Update Certificate",
44
"cborHex": "83128201581c8f33600845940d65bdbc7ea7a247a7997aa8558649128fa82c4c046882785e68747470733a2f2f7261772e67697468756275736572636f6e74656e742e636f6d2f63617264616e6f2d666f756e646174696f6e2f434950732f6d61737465722f4349502d303131392f6578616d706c65732f647265702e6a736f6e6c645820fecc1773db89b45557d82e07719c275f6877a6cadfd2469f4dc5a7df5b38b4a4"
55
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"type": "CertificateConway",
2+
"type": "Certificate",
33
"description": "Stake address registration and vote delegation certificate",
44
"cborHex": "840c8200581cef1785cf18928f8353c90e76b7a8fc60855472d31a0ea1c1c774ab018200581ce68f9ee70599cb93d9f60678f9c6463c01938c27d9820c7bf93887a51a001e8480"
55
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"type": "CertificateConway",
2+
"type": "Certificate",
33
"description": "Stake address registration and stake delegation certificate",
44
"cborHex": "840b8200581cef1785cf18928f8353c90e76b7a8fc60855472d31a0ea1c1c774ab01581cc27cf021914a2b3bcb286d3d741979083422378c577fe757702b69881a001e8480"
55
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"type": "CertificateConway",
2+
"type": "Certificate",
33
"description": "Stake address registration and vote delegation certificate",
44
"cborHex": "850d8200581cef1785cf18928f8353c90e76b7a8fc60855472d31a0ea1c1c774ab01581cc27cf021914a2b3bcb286d3d741979083422378c577fe757702b69888200581ce68f9ee70599cb93d9f60678f9c6463c01938c27d9820c7bf93887a51a001e8480"
55
}

0 commit comments

Comments
 (0)