mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 11:06:49 +00:00
Comments in Transaction Request Test / OAuth
This commit is contained in:
parent
2c8ae21598
commit
3824dbc14f
@ -277,7 +277,7 @@ object OAuthHandshake extends RestHelper with Loggable {
|
||||
case _ => secret+= "&"
|
||||
}
|
||||
logger.info("base string: " + baseString)
|
||||
//signing process
|
||||
//signing process // TODO default to HmacSHA256?
|
||||
val signingAlgorithm : String = if(OAuthparameters.get("oauth_signature_method").get.toLowerCase == "hmac-sha256")
|
||||
"HmacSHA256"
|
||||
else
|
||||
|
||||
@ -201,7 +201,7 @@ class TransactionRequestsTest extends ServerSetupWithTestData with DefaultUsers
|
||||
def checkAllGetTransResBodyField(getTransactionResponse: APIResponse, withChellenge: Boolean): Unit = {
|
||||
Then("we should get a 200 created code")
|
||||
(getTransactionResponse.code) should equal(200)
|
||||
And("we should get the body sie is one")
|
||||
And("we should get the body size is one")
|
||||
(getTransactionResponse.body.children.size) should equal(1)
|
||||
if (withChellenge) {
|
||||
And("we should get None, there is no transaction yet")
|
||||
@ -879,7 +879,7 @@ class TransactionRequestsTest extends ServerSetupWithTestData with DefaultUsers
|
||||
Then("We checked all the fields of getTransResponse body")
|
||||
helper.checkAllGetTransResBodyField(getTransResponse, false)
|
||||
|
||||
When("We checked all the data in database, we need check the account amout info")
|
||||
When("We checked all the data in database, we need check the account amount info")
|
||||
helper.checkBankAccountBalance(true)
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user