mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 13:07:02 +00:00
test/Comment out payment test cases in EthereumConnector_vSept2025Test to prevent execution during local Anvil setup
This commit is contained in:
parent
49daedf030
commit
07c1b5a740
@ -52,22 +52,22 @@ class EthereumConnector_vSept2025Test extends V510ServerSetup{
|
||||
}
|
||||
|
||||
// This is only for testing; you can comment it out when the local Anvil is running.
|
||||
val resF = StubConnector.makePaymentv210(
|
||||
from,
|
||||
to,
|
||||
TransactionRequestId(java.util.UUID.randomUUID().toString),
|
||||
trxBody,
|
||||
amount,
|
||||
"test",
|
||||
TransactionRequestType("ETHEREUM") ,
|
||||
"none",
|
||||
None
|
||||
)
|
||||
|
||||
val res = Await.result(resF, 10.seconds)
|
||||
res._1 shouldBe a [Full[_]]
|
||||
val txId = res._1.openOrThrowException(ErrorMessages.UnknownError)
|
||||
txId.value should startWith ("0x")
|
||||
// val resF = StubConnector.makePaymentv210(
|
||||
// from,
|
||||
// to,
|
||||
// TransactionRequestId(java.util.UUID.randomUUID().toString),
|
||||
// trxBody,
|
||||
// amount,
|
||||
// "test",
|
||||
// TransactionRequestType("ETHEREUM") ,
|
||||
// "none",
|
||||
// None
|
||||
// )
|
||||
//
|
||||
// val res = Await.result(resF, 10.seconds)
|
||||
// res._1 shouldBe a [Full[_]]
|
||||
// val txId = res._1.openOrThrowException(ErrorMessages.UnknownError)
|
||||
// txId.value should startWith ("0x")
|
||||
}
|
||||
}
|
||||
|
||||
@ -88,22 +88,22 @@ class EthereumConnector_vSept2025Test extends V510ServerSetup{
|
||||
}
|
||||
|
||||
// Enable integration test against private chain
|
||||
val resF = StubConnector.makePaymentv210(
|
||||
from,
|
||||
to,
|
||||
TransactionRequestId(java.util.UUID.randomUUID().toString),
|
||||
trxBody,
|
||||
amount,
|
||||
"test",
|
||||
TransactionRequestType("ETHEREUM") ,
|
||||
"none",
|
||||
None
|
||||
)
|
||||
|
||||
val res = Await.result(resF, 30.seconds)
|
||||
res._1 shouldBe a [Full[_]]
|
||||
val txId = res._1.openOrThrowException(ErrorMessages.UnknownError)
|
||||
txId.value should startWith ("0x")
|
||||
// val resF = StubConnector.makePaymentv210(
|
||||
// from,
|
||||
// to,
|
||||
// TransactionRequestId(java.util.UUID.randomUUID().toString),
|
||||
// trxBody,
|
||||
// amount,
|
||||
// "test",
|
||||
// TransactionRequestType("ETHEREUM") ,
|
||||
// "none",
|
||||
// None
|
||||
// )
|
||||
//
|
||||
// val res = Await.result(resF, 30.seconds)
|
||||
// res._1 shouldBe a [Full[_]]
|
||||
// val txId = res._1.openOrThrowException(ErrorMessages.UnknownError)
|
||||
// txId.value should startWith ("0x")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user