This repository has been archived by the owner on Oct 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 284
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4393 from golemfactory/mwu/int-fix-rpc
Fixed rpc tests after disabling concent
- Loading branch information
Showing
9 changed files
with
39 additions
and
46 deletions.
There are no files selected for viewing
File renamed without changes.
19 changes: 19 additions & 0 deletions
19
scripts/node_integration_tests/playbooks/golem/rpc_test/concent/playbook.py
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from ..playbook import Playbook as NodeTestPlaybook | ||
from scripts.node_integration_tests.playbooks.test_config_base import NodeId | ||
|
||
|
||
class Playbook(NodeTestPlaybook): | ||
def step_verify_deposit_balance_call(self): | ||
def on_success(result): | ||
if result['value'] and result['status'] and result['timelock']: | ||
print("Result correct %s" % result) | ||
self.next() | ||
else: | ||
print("Unexpected result: %s" % result) | ||
self.fail() | ||
|
||
def on_error(error): | ||
self.fail(error) | ||
|
||
return self.call(NodeId.provider, 'pay.deposit_balance', | ||
on_success=on_success, on_error=on_error) |
9 changes: 9 additions & 0 deletions
9
scripts/node_integration_tests/playbooks/golem/rpc_test/concent/test_config.py
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
from scripts.node_integration_tests.playbooks.test_config_base import \ | ||
TestConfigBase | ||
|
||
|
||
class TestConfig(TestConfigBase): | ||
def __init__(self): | ||
super().__init__() | ||
for node_config in self.nodes.values(): | ||
node_config.concent = 'staging' |
2 changes: 1 addition & 1 deletion
2
scripts/node_integration_tests/playbooks/golem/rpc_test/mainnet/playbook.py
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
3 changes: 2 additions & 1 deletion
3
scripts/node_integration_tests/playbooks/golem/rpc_test/mainnet/test_config.py
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
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
30 changes: 0 additions & 30 deletions
30
scripts/node_integration_tests/playbooks/golem/rpc_test/testnet/playbook.py
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
scripts/node_integration_tests/playbooks/golem/rpc_test/testnet/test_config.py
This file was deleted.
Oops, something went wrong.
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