Skip to content

Commit

Permalink
Fix Migrations integration tests (new parsing errors from server)
Browse files Browse the repository at this point in the history
  • Loading branch information
paolino committed Jan 26, 2024
1 parent bd8e3aa commit 787c737
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
8 changes: 8 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,14 @@ babbage-integration-tests-cabal-no-wallet:
TESTS_RETRY_FAILED=1 \
cabal test integration -O0 -v0

babbage-integration-tests-cabal-no-wallet-match match:
echo "Running integration tests without cardano-wallet exe compiled"
LOCAL_CLUSTER_CONFIGS=../../lib/local-cluster/test/data/cluster-configs \
CARDANO_WALLET_TEST_DATA=test/data \
LOCAL_CLUSTER_ERA=babbage \
TESTS_RETRY_FAILED=1 \
cabal test integration -O0 -v0 --test-options '--match="{{match}}"'

# run wallet-e2e suite against the preprod network
e2e-preprod:
nix run '.#cardano-wallet-e2e' -- preprod \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,7 @@ import Test.Integration.Framework.DSL
, (.>)
)
import Test.Integration.Framework.TestData
( errMsg400ParseError
, errMsg403NothingToMigrate
( errMsg403NothingToMigrate
, errMsg403WrongPass
, errMsg404NoWallet
)
Expand Down Expand Up @@ -541,7 +540,9 @@ spec = describe "BYRON_MIGRATIONS" $ do
(NonJson "{passphrase:,}")
verify response
[ expectResponseCode HTTP.status400
, expectErrorMessage errMsg400ParseError
, expectErrorMessage
"Unexpected 'passphrase:,}', \
\expecting record key literal or }"
]

it "BYRON_MIGRATE_08 - \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,7 @@ import Test.Integration.Framework.DSL
, (.>)
)
import Test.Integration.Framework.TestData
( errMsg400ParseError
, errMsg403NothingToMigrate
( errMsg403NothingToMigrate
, errMsg403WrongPass
, errMsg404NoWallet
)
Expand Down Expand Up @@ -847,7 +846,9 @@ spec = describe "SHELLEY_MIGRATIONS" $ do
(NonJson "{passphrase:,}")
verify response
[ expectResponseCode HTTP.status400
, expectErrorMessage errMsg400ParseError
, expectErrorMessage
"Unexpected 'passphrase:,}', \
\expecting record key literal or }"
]

Hspec.it "SHELLEY_MIGRATE_08 - \
Expand Down

0 comments on commit 787c737

Please sign in to comment.