mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 19:56:59 +00:00
fixed failing posting image test
This commit is contained in:
parent
7e7e854608
commit
0c95ada627
@ -1425,7 +1425,7 @@ class API1_2_1Test extends ServerSetup{
|
||||
}
|
||||
|
||||
feature("We get one specific other bank account among the other accounts "){
|
||||
scenario("we will get one random other bank account of a bank account", API1_2, GetOtherBankAccount, CurrentTest) {
|
||||
scenario("we will get one random other bank account of a bank account", API1_2, GetOtherBankAccount) {
|
||||
Given("We will use an access token")
|
||||
val bankId = randomBank
|
||||
val bankAccount : AccountJSON = randomPrivateAccount(bankId)
|
||||
@ -4571,7 +4571,7 @@ class API1_2_1Test extends ServerSetup{
|
||||
val bankAccount : AccountJSON = randomPrivateAccount(bankId)
|
||||
val view = randomViewPermalink(bankId, bankAccount)
|
||||
val transaction = randomTransaction(bankId, bankAccount.id, view)
|
||||
val randomImage = PostTransactionImageJSON(randomString(5),"http://www.mysuperimage.com")
|
||||
val randomImage = PostTransactionImageJSON(randomString(5),"http://www.mysuperimage.com/"+randomString(5))
|
||||
When("the request is sent")
|
||||
val postReply = postImageForOneTransaction(bankId, bankAccount.id, view, transaction.id, randomImage, None)
|
||||
Then("we should get a 400 code")
|
||||
|
||||
@ -4582,9 +4582,9 @@ class API1_2Test extends ServerSetup{
|
||||
Given("We will use an access token")
|
||||
val bankId = randomBank
|
||||
val bankAccount : AccountJSON = randomPrivateAccount(bankId)
|
||||
val view = randomViewPermalink(bankId, bankAccount)
|
||||
val view = randomViewPermalink(bankId, bankAccount)
|
||||
val transaction = randomTransaction(bankId, bankAccount.id, view)
|
||||
val randomImage = PostTransactionImageJSON(randomString(5),"http://www.mysuperimage.com")
|
||||
val randomImage = PostTransactionImageJSON(randomString(5),"http://www.mysuperimage.com/"+randomString(5))
|
||||
When("the request is sent")
|
||||
val postReply = postImageForOneTransaction(bankId, bankAccount.id, randomString(5), transaction.id, randomImage, user1)
|
||||
Then("we should get a 400 code")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user