Skip to content

Commit

Permalink
LogFilterSpec: update txids
Browse files Browse the repository at this point in the history
  • Loading branch information
locallycompact committed Dec 4, 2023
1 parent 0700813 commit b21aae6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions hydra-cluster/test/Test/LogFilterSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ import Test.Hydra.Prelude

logEntries :: [LBS.ByteString]
logEntries =
[ "{\"timestamp\":\"2023-06-06T16:42:23.153630815Z\",\"threadId\":340,\"namespace\":\"0\",\"message\":{\"api\":{\"receivedInput\":{\"tag\":\"NewTx\",\"transaction\":{\"body\":{\"fees\":0,\"inputs\":[\"7530768ed9b5752c6f6979351a88c72253c199cea2b2d656e59385ae26b043f7#0\"],\"outputs\":[{\"address\":\"addr_test1vr6jlh98jjweeqpe4dnsetcn48323q89vm508vgs7rfl2qcslpnka\",\"datum\":null,\"datumhash\":null,\"inlineDatum\":null,\"referenceScript\":null,\"value\":{\"lovelace\":610286507302}}]},\"id\":\"f415a0346fe5ff938ef42b538b4a178e120baaa873dbc0edd693490001477e7d\",\"isValid\":true,\"witnesses\":{\"keys\":[\"825820ea1e117a06ca414271bdb5f305d6c40abea2959a182337ed71f26b749d10fae9584070295ad7116d11432ef5bb30c269b4423b00ae9cb3946655e1202b4301bc7063ca426eab497f59a4d7c858090e1dbab602c30f16a62728d32267a575a981fe01\"]}}},\"tag\":\"APIInputReceived\"},\"tag\":\"APIServer\"}}"
, "{\"timestamp\":\"2023-06-06T16:42:23.154153279Z\",\"threadId\":73,\"namespace\":\"0\",\"message\":{\"node\":{\"by\":{\"vkey\":\"cd03fbddcaaa2703c251656d5ccdd99f5635b1e0653c0636b951a3a3db21dad4\"},\"event\":{\"clientInput\":{\"tag\":\"NewTx\",\"transaction\":{\"body\":{\"fees\":0,\"inputs\":[\"7530768ed9b5752c6f6979351a88c72253c199cea2b2d656e59385ae26b043f7#0\"],\"outputs\":[{\"address\":\"addr_test1vr6jlh98jjweeqpe4dnsetcn48323q89vm508vgs7rfl2qcslpnka\",\"datum\":null,\"datumhash\":null,\"inlineDatum\":null,\"referenceScript\":null,\"value\":{\"lovelace\":610286507302}}]},\"id\":\"f415a0346fe5ff938ef42b538b4a178e120baaa873dbc0edd693490001477e7d\",\"isValid\":true,\"witnesses\":{\"keys\":[\"825820ea1e117a06ca414271bdb5f305d6c40abea2959a182337ed71f26b749d10fae9584070295ad7116d11432ef5bb30c269b4423b00ae9cb3946655e1202b4301bc7063ca426eab497f59a4d7c858090e1dbab602c30f16a62728d32267a575a981fe01\"]}}},\"tag\":\"ClientEvent\"},\"eventId\":11,\"tag\":\"BeginEvent\"},\"tag\":\"Node\"}}"
, "{\"timestamp\":\"2023-06-06T16:42:23.154158309Z\",\"threadId\":73,\"namespace\":\"0\",\"message\":{\"node\":{\"by\":{\"vkey\":\"cd03fbddcaaa2703c251656d5ccdd99f5635b1e0653c0636b951a3a3db21dad4\"},\"outcome\":{\"effects\":[{\"message\":{\"party\":{\"vkey\":\"cd03fbddcaaa2703c251656d5ccdd99f5635b1e0653c0636b951a3a3db21dad4\"},\"tag\":\"ReqTx\",\"transaction\":{\"body\":{\"fees\":0,\"inputs\":[\"7530768ed9b5752c6f6979351a88c72253c199cea2b2d656e59385ae26b043f7#0\"],\"outputs\":[{\"address\":\"addr_test1vr6jlh98jjweeqpe4dnsetcn48323q89vm508vgs7rfl2qcslpnka\",\"datum\":null,\"datumhash\":null,\"inlineDatum\":null,\"referenceScript\":null,\"value\":{\"lovelace\":610286507302}}]},\"id\":\"f415a0346fe5ff938ef42b538b4a178e120baaa873dbc0edd693490001477e7d\",\"isValid\":true,\"witnesses\":{\"keys\":[\"825820ea1e117a06ca414271bdb5f305d6c40abea2959a182337ed71f26b749d10fae9584070295ad7116d11432ef5bb30c269b4423b00ae9cb3946655e1202b4301bc7063ca426eab497f59a4d7c858090e1dbab602c30f16a62728d32267a575a981fe01\"]}}},\"tag\":\"NetworkEffect\"}],\"tag\":\"Effects\"},\"tag\":\"LogicOutcome\"},\"tag\":\"Node\"}}"
, "{\"timestamp\":\"2023-06-06T16:42:23.154163359Z\",\"threadId\":73,\"namespace\":\"0\",\"message\":{\"node\":{\"by\":{\"vkey\":\"cd03fbddcaaa2703c251656d5ccdd99f5635b1e0653c0636b951a3a3db21dad4\"},\"effect\":{\"message\":{\"party\":{\"vkey\":\"cd03fbddcaaa2703c251656d5ccdd99f5635b1e0653c0636b951a3a3db21dad4\"},\"tag\":\"ReqTx\",\"transaction\":{\"body\":{\"fees\":0,\"inputs\":[\"7530768ed9b5752c6f6979351a88c72253c199cea2b2d656e59385ae26b043f7#0\"],\"outputs\":[{\"address\":\"addr_test1vr6jlh98jjweeqpe4dnsetcn48323q89vm508vgs7rfl2qcslpnka\",\"datum\":null,\"datumhash\":null,\"inlineDatum\":null,\"referenceScript\":null,\"value\":{\"lovelace\":610286507302}}]},\"id\":\"f415a0346fe5ff938ef42b538b4a178e120baaa873dbc0edd693490001477e7d\",\"isValid\":true,\"witnesses\":{\"keys\":[\"825820ea1e117a06ca414271bdb5f305d6c40abea2959a182337ed71f26b749d10fae9584070295ad7116d11432ef5bb30c269b4423b00ae9cb3946655e1202b4301bc7063ca426eab497f59a4d7c858090e1dbab602c30f16a62728d32267a575a981fe01\"]}}},\"tag\":\"NetworkEffect\"},\"effectId\":0,\"eventId\":11,\"tag\":\"BeginEffect\"},\"tag\":\"Node\"}}"
[ "{\"timestamp\":\"2023-06-06T16:42:23.153630815Z\",\"threadId\":340,\"namespace\":\"0\",\"message\":{\"api\":{\"receivedInput\":{\"tag\":\"NewTx\",\"transaction\":{\"body\":{\"fees\":0,\"inputs\":[\"7530768ed9b5752c6f6979351a88c72253c199cea2b2d656e59385ae26b043f7#0\"],\"outputs\":[{\"address\":\"addr_test1vr6jlh98jjweeqpe4dnsetcn48323q89vm508vgs7rfl2qcslpnka\",\"datum\":null,\"datumhash\":null,\"inlineDatum\":null,\"referenceScript\":null,\"value\":{\"lovelace\":610286507302}}]},\"id\":\"535be0d5f431aa654cdc2edda75d9c97f7bf2fe3d6954ec32f60921340c21953\",\"isValid\":true,\"witnesses\":{\"keys\":[\"825820ea1e117a06ca414271bdb5f305d6c40abea2959a182337ed71f26b749d10fae9584070295ad7116d11432ef5bb30c269b4423b00ae9cb3946655e1202b4301bc7063ca426eab497f59a4d7c858090e1dbab602c30f16a62728d32267a575a981fe01\"]}}},\"tag\":\"APIInputReceived\"},\"tag\":\"APIServer\"}}"
, "{\"timestamp\":\"2023-06-06T16:42:23.154153279Z\",\"threadId\":73,\"namespace\":\"0\",\"message\":{\"node\":{\"by\":{\"vkey\":\"cd03fbddcaaa2703c251656d5ccdd99f5635b1e0653c0636b951a3a3db21dad4\"},\"event\":{\"clientInput\":{\"tag\":\"NewTx\",\"transaction\":{\"body\":{\"fees\":0,\"inputs\":[\"7530768ed9b5752c6f6979351a88c72253c199cea2b2d656e59385ae26b043f7#0\"],\"outputs\":[{\"address\":\"addr_test1vr6jlh98jjweeqpe4dnsetcn48323q89vm508vgs7rfl2qcslpnka\",\"datum\":null,\"datumhash\":null,\"inlineDatum\":null,\"referenceScript\":null,\"value\":{\"lovelace\":610286507302}}]},\"id\":\"535be0d5f431aa654cdc2edda75d9c97f7bf2fe3d6954ec32f60921340c21953\",\"isValid\":true,\"witnesses\":{\"keys\":[\"825820ea1e117a06ca414271bdb5f305d6c40abea2959a182337ed71f26b749d10fae9584070295ad7116d11432ef5bb30c269b4423b00ae9cb3946655e1202b4301bc7063ca426eab497f59a4d7c858090e1dbab602c30f16a62728d32267a575a981fe01\"]}}},\"tag\":\"ClientEvent\"},\"eventId\":11,\"tag\":\"BeginEvent\"},\"tag\":\"Node\"}}"
, "{\"timestamp\":\"2023-06-06T16:42:23.154158309Z\",\"threadId\":73,\"namespace\":\"0\",\"message\":{\"node\":{\"by\":{\"vkey\":\"cd03fbddcaaa2703c251656d5ccdd99f5635b1e0653c0636b951a3a3db21dad4\"},\"outcome\":{\"effects\":[{\"message\":{\"party\":{\"vkey\":\"cd03fbddcaaa2703c251656d5ccdd99f5635b1e0653c0636b951a3a3db21dad4\"},\"tag\":\"ReqTx\",\"transaction\":{\"body\":{\"fees\":0,\"inputs\":[\"7530768ed9b5752c6f6979351a88c72253c199cea2b2d656e59385ae26b043f7#0\"],\"outputs\":[{\"address\":\"addr_test1vr6jlh98jjweeqpe4dnsetcn48323q89vm508vgs7rfl2qcslpnka\",\"datum\":null,\"datumhash\":null,\"inlineDatum\":null,\"referenceScript\":null,\"value\":{\"lovelace\":610286507302}}]},\"id\":\"535be0d5f431aa654cdc2edda75d9c97f7bf2fe3d6954ec32f60921340c21953\",\"isValid\":true,\"witnesses\":{\"keys\":[\"825820ea1e117a06ca414271bdb5f305d6c40abea2959a182337ed71f26b749d10fae9584070295ad7116d11432ef5bb30c269b4423b00ae9cb3946655e1202b4301bc7063ca426eab497f59a4d7c858090e1dbab602c30f16a62728d32267a575a981fe01\"]}}},\"tag\":\"NetworkEffect\"}],\"tag\":\"Effects\"},\"tag\":\"LogicOutcome\"},\"tag\":\"Node\"}}"
, "{\"timestamp\":\"2023-06-06T16:42:23.154163359Z\",\"threadId\":73,\"namespace\":\"0\",\"message\":{\"node\":{\"by\":{\"vkey\":\"cd03fbddcaaa2703c251656d5ccdd99f5635b1e0653c0636b951a3a3db21dad4\"},\"effect\":{\"message\":{\"party\":{\"vkey\":\"cd03fbddcaaa2703c251656d5ccdd99f5635b1e0653c0636b951a3a3db21dad4\"},\"tag\":\"ReqTx\",\"transaction\":{\"body\":{\"fees\":0,\"inputs\":[\"7530768ed9b5752c6f6979351a88c72253c199cea2b2d656e59385ae26b043f7#0\"],\"outputs\":[{\"address\":\"addr_test1vr6jlh98jjweeqpe4dnsetcn48323q89vm508vgs7rfl2qcslpnka\",\"datum\":null,\"datumhash\":null,\"inlineDatum\":null,\"referenceScript\":null,\"value\":{\"lovelace\":610286507302}}]},\"id\":\"535be0d5f431aa654cdc2edda75d9c97f7bf2fe3d6954ec32f60921340c21953\",\"isValid\":true,\"witnesses\":{\"keys\":[\"825820ea1e117a06ca414271bdb5f305d6c40abea2959a182337ed71f26b749d10fae9584070295ad7116d11432ef5bb30c269b4423b00ae9cb3946655e1202b4301bc7063ca426eab497f59a4d7c858090e1dbab602c30f16a62728d32267a575a981fe01\"]}}},\"tag\":\"NetworkEffect\"},\"effectId\":0,\"eventId\":11,\"tag\":\"BeginEffect\"},\"tag\":\"Node\"}}"
, "{\"timestamp\":\"2023-06-06T16:42:23.154170212Z\",\"threadId\":73,\"namespace\":\"0\",\"message\":{\"node\":{\"by\":{\"vkey\":\"cd03fbddcaaa2703c251656d5ccdd99f5635b1e0653c0636b951a3a3db21dad4\"},\"effectId\":0,\"eventId\":11,\"tag\":\"EndEffect\"},\"tag\":\"Node\"}}"
, "{\"timestamp\":\"2023-06-06T16:42:23.154172246Z\",\"threadId\":73,\"namespace\":\"0\",\"message\":{\"node\":{\"by\":{\"vkey\":\"cd03fbddcaaa2703c251656d5ccdd99f5635b1e0653c0636b951a3a3db21dad4\"},\"eventId\":11,\"tag\":\"EndEvent\"},\"tag\":\"Node\"}}"
]
Expand All @@ -33,14 +33,14 @@ spec = parallel $ do
`shouldBe` [ object
[ "timestamp" .= (fromJust $ iso8601ParseM "2023-06-06T16:42:23.154163359Z" :: UTCTime)
, "effect" .= ("ReqTx" :: Text)
, "txid" .= ("f415a0346fe5ff938ef42b538b4a178e120baaa873dbc0edd693490001477e7d" :: Text)
, "txid" .= ("535be0d5f431aa654cdc2edda75d9c97f7bf2fe3d6954ec32f60921340c21953" :: Text)
, "us" .= (6.853 :: Double)
, "tag" .= ("TraceEffect" :: Text)
]
, object
[ "timestamp" .= (fromJust $ iso8601ParseM "2023-06-06T16:42:23.154153279Z" :: UTCTime)
, "event" .= ("NewTx" :: Text)
, "txid" .= ("f415a0346fe5ff938ef42b538b4a178e120baaa873dbc0edd693490001477e7d" :: Text)
, "txid" .= ("535be0d5f431aa654cdc2edda75d9c97f7bf2fe3d6954ec32f60921340c21953" :: Text)
, "us" .= (18.967 :: Double)
, "tag" .= ("TraceEvent" :: Text)
]
Expand Down

0 comments on commit b21aae6

Please sign in to comment.