Skip to content

Commit

Permalink
Info action test: use DReps created by create-testnet-data
Browse files Browse the repository at this point in the history
  • Loading branch information
smelc committed Jan 23, 2024
1 parent e837efc commit 0bcf75e
Showing 1 changed file with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ import qualified Testnet.Process.Run as H
import qualified Testnet.Property.Utils as H
import Testnet.Runtime


-- | Execute me with:
-- @DISABLE_RETRIES=1 cabal test cardano-testnet-test --test-options '-p "/InfoAction/'@
hprop_ledger_events_info_action :: Property
hprop_ledger_events_info_action = H.integrationRetryWorkspace 2 "info-hash" $ \tempAbsBasePath' -> do

Expand Down Expand Up @@ -101,18 +102,11 @@ hprop_ledger_events_info_action = H.integrationRetryWorkspace 2 "info-hash" $ \t
}

let drepVkeyFp :: Int -> FilePath
drepVkeyFp n = gov </> "drep-keys" <>"drep" <> show n <> ".vkey"
drepVkeyFp n = tempAbsPath' </> "drep-keys" </> ("drep" <> show n) </> "drep.vkey"

drepSKeyFp :: Int -> FilePath
drepSKeyFp n = gov </> "drep-keys" <>"drep" <> show n <> ".skey"
drepSKeyFp n = tempAbsPath' </> "drep-keys" </> ("drep" <> show n) </> "drep.skey"

-- Create DReps -- TODO: Refactor with shelleyKeyGen
H.forConcurrently_ [1..3] $ \n -> do
H.execCli' execConfig
[ "conway", "governance", "drep", "key-gen"
, "--verification-key-file", drepVkeyFp n
, "--signing-key-file", drepSKeyFp n
]

-- Create Drep registration certificates
let drepCertFile :: Int -> FilePath
Expand Down

0 comments on commit 0bcf75e

Please sign in to comment.