Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

[PAN-2727] Permissioning Acceptance Test - Verify OnChain Nodes Out of Sync #1759

Merged
merged 4 commits into from
Jul 26, 2019
Merged

[PAN-2727] Permissioning Acceptance Test - Verify OnChain Nodes Out of Sync #1759

merged 4 commits into from
Jul 26, 2019

Conversation

usmansaleem
Copy link
Contributor

PR description

Add acceptance test that verifies that while a new node is being added to OnChain and is out of sync, it doesn't accept connections. Once synced, it starts accepts connection from allowed nodes.

 -- Verify that while a new node is being added and is out of sync, it doesnt accept connections, it accepts connection once it is synced

@Test
public void testOutOfSyncNodeConnectionToPeers() {
final long blockChainHeight = 50L;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: s/blockChain/blockchain

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is 50 enough for a reliable test?

}

@Test
public void testOutOfSyncNodeConnectionToPeers() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prob could have a better test name - maybe addingNodeToClusterSyncsAndThenConnectsToNonBootnodePeer

Copy link
Contributor

@lucassaldanha lucassaldanha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test logic looks good. We need to keep an eye on this test to ensure it won't be flaky.

@usmansaleem usmansaleem merged commit 86e57c4 into PegaSysEng:master Jul 26, 2019
@usmansaleem usmansaleem deleted the feature/PAN-2727 branch July 26, 2019 00:45
rain-on pushed a commit to rain-on/pantheon that referenced this pull request Jul 26, 2019
…f Sync (PegaSysEng#1759)

-- Verify that while a new node is being added and is out of sync, it doesn't accept connections, it accepts connection once it is synced
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants