Comments in Transaction Request Test / OAuth

This commit is contained in:
Simon Redfern 2017-04-13 10:07:55 +02:00
parent 2c8ae21598
commit 3824dbc14f
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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)
}
}