-
Notifications
You must be signed in to change notification settings - Fork 366
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
[1209-1] Remove old client's fucntions #600
[1209-1] Remove old client's fucntions #600
Conversation
Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
…t_state_proof; problem with wrong bls keys Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
…te_proof test Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
…n/INDY-1058 Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
…INDY-1058 Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
Test this please |
1 similar comment
Test this please |
Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
Test this please |
Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
…INDY-1209-1 Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
""" | ||
Client should be not be blacklisted by node on sending an unsigned request | ||
""" | ||
|
||
client_name = poolTxnClientNames[0] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test itself does not correspond to test description.
I think invalid signature is not the same as no signature.
SDK has a method to send msg without singing it, so generate request and send it without signature
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test rewritten
plenum/test/bls/helper.py
Outdated
def sdk_change_bls_key(looper, txnPoolNodeSet, | ||
node, | ||
sdk_pool_handle, | ||
sdk_wallet_steward, | ||
add_wrong=False, | ||
new_bls=None): | ||
new_bls=None, | ||
use_in_plenum=True): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm disagree with such a decision to make function behave differently depending the project it is called from
If we need it then split this func into two part
- changing key - behavior is the same everywhere
- check pool functional - is called as separate function after the first one finished. could be different for different modules.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed.
plenum/test/bls/helper.py
Outdated
sdk_ensure_pool_functional(looper, txnPoolNodeSet, | ||
sdk_wallet_steward, sdk_pool_handle) | ||
else: | ||
sdk_add_new_nym(looper, sdk_pool_handle, sdk_wallet_steward, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Create a function in the Node module with the same name as in Plenum - sdk_ensure_pool_functional - but Node specific check
call it where appropriate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed this way.
plenum/test/client/test_client.py
Outdated
@@ -111,6 +111,7 @@ def testRequestFullRoundTrip(replied1, client1): | |||
|
|||
|
|||
# noinspection PyIncorrectDocstring | |||
@pytest.mark.skip(reason='sdk integration') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it could be deleted
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deleted
plenum/test/client/test_client.py
Outdated
@@ -127,6 +128,7 @@ def chk(): | |||
|
|||
|
|||
# noinspection PyIncorrectDocstring | |||
@pytest.mark.skip(reason='sdk integration') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test should be discussed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test should be rewritten
send req, get and check resp
after that send the same req and check resp
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rewritten
import pytest | ||
|
||
|
||
@pytest.mark.skip(reason='sdk integration') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it could be deleted
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deleted
@@ -38,7 +38,10 @@ def test_authenticator_registration(pre_reqs, registration): | |||
assert req_authnr.get_authnr_by_type(CoreAuthNr) == core_authnr | |||
|
|||
|
|||
def test_authentication(pre_reqs, registration, client1, wallet1): | |||
@pytest.mark.skip(reason='sdk integration') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is it skipped?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rewritten
@@ -117,7 +117,7 @@ def test_6th_node_join_after_view_change_by_master_restart( | |||
|
|||
timeout = waits.expectedPoolCatchupTime(nodeCount=len(pool_of_nodes)) | |||
for node in pool_of_nodes: | |||
looper.run(eventually(catchuped, node, timeout=2 * timeout)) | |||
looper.run(eventually(catchuped, node, timeout=3 * timeout)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure we need to increase it? Could you describe a problem?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sometimes viewchange does not complete in time. So we need to wait longer.
@@ -10,6 +12,7 @@ | |||
|
|||
|
|||
# noinspection PyIncorrectDocstring | |||
@pytest.mark.skip(reason='sdk integration') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be discussed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could be deleted
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deleted
@@ -28,6 +28,7 @@ def nodeChangesRequest(txnPoolNodeSet): | |||
|
|||
|
|||
# noinspection PyIncorrectDocstring,PyUnusedLocal,PyShadowingNames | |||
@pytest.mark.skip(reason='sdk integration') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be discussed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rewrite the test
do not change node modifications
just send req and check resp
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rewritten
plenum/test/client/test_client.py
Outdated
@@ -127,6 +128,7 @@ def chk(): | |||
|
|||
|
|||
# noinspection PyIncorrectDocstring | |||
@pytest.mark.skip(reason='sdk integration') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test should be rewritten
send req, get and check resp
after that send the same req and check resp
|
||
|
||
@pytest.mark.skip(reason='sdk client cannot do that yet') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could be deleted
@@ -10,6 +12,7 @@ | |||
|
|||
|
|||
# noinspection PyIncorrectDocstring | |||
@pytest.mark.skip(reason='sdk integration') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could be deleted
@@ -28,6 +28,7 @@ def nodeChangesRequest(txnPoolNodeSet): | |||
|
|||
|
|||
# noinspection PyIncorrectDocstring,PyUnusedLocal,PyShadowingNames | |||
@pytest.mark.skip(reason='sdk integration') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rewrite the test
do not change node modifications
just send req and check resp
…INDY-1209-1 Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
Test this please |
Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
…INDY-1209-1 Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
* Initial test integration Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * Two more files done Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * new test Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * 4 more folders done Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * two more files Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * some changes Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * More tests integrated. Problems: validator functions of client in test_state_proof; problem with wrong bls keys Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * Initial commit Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * Script fix. bls validation fix Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * more changes Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * little fix Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * Fix for bls validation tests. Not done: update_incorrect test and state_proof test Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * Only state_proof test left Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * Tests integration done Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * Deletion of Client1Connected. More test fix Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * Import deletion. flake8 error fix. Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * More changes to txnPoolNodeSet Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * Changes in tests Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * Remove pf TestNodeSet. Change of helper methods. Part 1. Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * Remove TestNodeSet from helper. part 2 Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * More tests integrated Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * Functions fixes. Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * Fix for genesis txns Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * More tests integrated Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * primary_selection dependency fix Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * Fixture fix for view_change Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * View change test fix Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * Skips for merkle proof tests Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * Skips for merkle proof tests Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * Remove sendRandomRequest of old client. Part 1. Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * Review changes Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * Review changes Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * Deletion of sendRandomRequest. Part 2. Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * Little error fix Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * waitReqNackFromPoolWithReason function deletion Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * waitRejectFromPoolWithReason function deletion Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * checkReqNack function deletion Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * Two more fucntions deletion Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * Deletion of sendRandomRequests. Part 1. Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * Deletion of sendRandomRequests. Part 2. send_reqs_to_nodes_and_verify_all_replies deleted. Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * Deletion of sendRandomRequests. Part 3. Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * Little fix Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * Deletion of sendRandomRequest. Part 4. Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * Deletion of sendRandomRequests. Part 5. Deleted: ensure_pool_functional, NodeSetWithNodeAddedAfterSomeTxns, nodeCreatedAfterSomeTxns, newNodeCaughtUp. Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * little fix Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * little fix Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * little fix Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * Review changes Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * little fix for test passing Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * little fix for test passing Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * Review change Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * deletion of send_signed_request Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * Deletion of send_signed_request Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * deletion of waitForSufficientReplies. Part 1. Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * little fixes Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * more tests Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * more fixes Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * little fix Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * little fix Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * more changes Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * fix Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * fix Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * little addition Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * some fixes Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * Changes in helper functions Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * Some changes for node's tests Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * deletions of client Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * fixes for test Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * little fixes Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * INDY-1209: fix test timeout Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * INDY-1209: Fix tests according to review Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * INDY-1209: Add functionality for skipping verkey in request Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * INDY-1209: Reset timeout back Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
Remove old client's fucntions and assosiated tests