Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Api e2e tests with blockchain - use case 3 #970

Closed
pawelkisielewicz opened this issue Nov 26, 2018 · 2 comments
Closed

Api e2e tests with blockchain - use case 3 #970

pawelkisielewicz opened this issue Nov 26, 2018 · 2 comments
Assignees
Milestone

Comments

@pawelkisielewicz
Copy link
Contributor

pawelkisielewicz commented Nov 26, 2018

It should be tested e2e that concent works properly with blockchain- founds are transferred correctly.

One of possible scenarios is situation, where there is one requestor and two providers. There is Use Case 3- after message timeout both providers send ForceSubtaskResults to concent. In the next step they (providers) send ClientAuthorization and concent finalizes payments.
There are two scenarios to check:

  • requestor has enough founds to pay both providers. In this case both providers should get full amount and requestor's account should be decreased by this amount.
  • requestor has founds to pay only one provider. One provider should get full amount, second provider should be paid, but not fully, requestor's account should be 0.

Message exchange (after message timeout):
Provider 1 -> Concent: ForceSubtaskResults
Provider 2 -> Concent: ForceSubtaskResults
no communication from requestor
Provider 1 -> Concent: ClientAuthorization
Provider 2 -> Concent: ClientAuthorization

It should be created test with communication as above and check on blockchain, if founds are really transferred. In the next step we should ensure that at the end all deposit claims in concent are removed from database. This will be described in separate issue

@pawelkisielewicz pawelkisielewicz self-assigned this Nov 26, 2018
@pawelkisielewicz pawelkisielewicz changed the title Api e2e tests with blockchain Api e2e tests with blockchain - use case 3 Nov 26, 2018
@PaweuB
Copy link

PaweuB commented Nov 26, 2018

@dybi
Copy link
Contributor

dybi commented Nov 26, 2018

for mi this is quite OK. However, this should be done after: #744 (UC#5).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants