Created
December 20, 2018 10:04
-
-
Save CosminNechifor/042d01bfa43b2e630205cc641ee3830a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: 2 | |
settings: | |
gas_price: "fast" | |
chain: kovan | |
token: | |
decimals: 3 | |
nodes: | |
mode: managed | |
count: 5 | |
raiden_version: /home/cosmin/Documents/utility/raiden_binary/raiden_binary_fixed_hanging/raiden-v0.19.1.dev44+gaf0eaa6f-linux | |
default_options: | |
gas-price: fast | |
environment-type: development | |
scenario: | |
serial: | |
name: "Routing scenario" | |
tasks: | |
- parallel: | |
name: "Create channels" | |
tasks: | |
- open_channel: {from: 0, to: 1, total_deposit: 0, expected_http_status: 201} | |
- open_channel: {from: 1, to: 2, total_deposit: 100, expected_http_status: 201} | |
- open_channel: {from: 2, to: 3, total_deposit: 100, expected_http_status: 201} | |
- open_channel: {from: 0, to: 3, total_deposit: 100, expected_http_status: 201} | |
- serial: | |
name: "Allow time for nodes to learn about their channels" | |
tasks: | |
- wait: 30 | |
- parallel: | |
name: "Founding the channles" | |
tasks: | |
- deposit: {from: 2, to: 1, total_deposit: 100} | |
- deposit: {from: 3, to: 2, total_deposit: 100} | |
- deposit: {from: 3, to: 0, total_deposit: 100} | |
- serial: | |
name: "Allow time for all nodes to learn about the deposit" | |
tasks: | |
- wait: 15 | |
- parallel: | |
name: "Checking if the deposits were successful" | |
tasks: | |
- assert: {from: 0, to: 1, total_deposit: 0, balance: 0, state: "opened"} | |
- assert: {from: 1, to: 0, total_deposit: 0, balance: 0, state: "opened"} | |
- assert: {from: 1, to: 2, total_deposit: 100, balance: 100, state: "opened"} | |
- assert: {from: 2, to: 1, total_deposit: 100, balance: 100, state: "opened"} | |
- assert: {from: 2, to: 3, total_deposit: 100, balance: 100, state: "opened"} | |
- assert: {from: 3, to: 2, total_deposit: 100, balance: 100, state: "opened"} | |
- assert: {from: 0, to: 3, total_deposit: 100, balance: 100, state: "opened"} | |
- assert: {from: 3, to: 0, total_deposit: 100, balance: 100, state: "opened"} | |
- serial: | |
name: "0 performs payments to 1 using the route 0->3->2->1" | |
repeat: 20 | |
tasks: | |
- transfer: {from: 0, to: 1, amount: 1} | |
- wait: 5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
│2018-12-20 10:06:48.078291 [info ] Task successful [scenario_player.tasks.base] task=<SerialTask: {'name': '0 performs payments to 1 using the route 0->3->2->1', 'repeat'│
│2018-12-20 10:06:48.078636 [info ] Task successful [scenario_player.tasks.base] task=<SerialTask: {'name': 'Routing scenario', 'tasks': [{'parallel': {'name': 'Create cha│
│2018-12-20 10:06:48.447940 [info ] Run finished [scenario_player.main] result=success