github.com/loomnetwork/gamechain@v0.0.0-20200406110549-36c47eb97a92/e2e/test_overlord.toml (about) 1 [[TestCases]] 2 RunCmd = "/bin/echo " 3 Delay = 10000 4 5 [[TestCases]] 6 RunCmd = "zb-cli contract_configuration -k {{index $.AccountPrivKeyPathList 0}} set_fiat_purchase_contract_version -v 3" 7 Condition = "contains" 8 Expected = ["success"] 9 10 [[TestCases]] 11 RunCmd = "zb-cli create_account -k {{index $.AccountPrivKeyPathList 0}} -u loom -v v1" 12 Condition = "contains" 13 Expected = ["created successfully"] 14 15 [[TestCases]] 16 RunCmd = "zb-cli get_account -k {{index $.AccountPrivKeyPathList 0}} -u loom" 17 All = true 18 Condition = "contains" 19 Expected = ["loom"] 20 21 [[TestCases]] 22 RunCmd = "zb-cli list_overlords -k {{index $.AccountPrivKeyPathList 0}} -u loom -v v1" 23 All = true 24 Condition = "contains" 25 Expected = ["overlord_id: 0", "overlord_id: 1"] 26 27 [[TestCases]] 28 RunCmd = "zb-cli get_overlord_user_instance -k {{index $.AccountPrivKeyPathList 0}} -u loom --overlordId 1 -v v1" 29 All = true 30 Condition = "contains" 31 Expected = ["overlord_id: 1", "experience: 0"] 32 33 [[TestCases]] 34 RunCmd = "zb-cli add_solo_experience -k {{index $.AccountPrivKeyPathList 0}} -u loom -v v1 --overlordId 1 -e 10" 35 Condition = "contains" 36 Expected = ["added experience successfully"] 37 38 [[TestCases]] 39 RunCmd = "zb-cli add_solo_experience -k {{index $.AccountPrivKeyPathList 0}} -u loom -v v1 --overlordId 1 -e 5" 40 Condition = "contains" 41 Expected = ["added experience successfully"] 42 43 [[TestCases]] 44 RunCmd = "checkapphash" 45 46 [[TestCases]] 47 RunCmd = "zb-cli get_overlord_user_instance -k {{index $.AccountPrivKeyPathList 0}} -u loom --overlordId 1 -v v1" 48 All = true 49 Condition = "contains" 50 Expected = ["overlord_id: 1", "experience: 15"]