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

[PAN-2652] RefactorPrivacyTests #1382

Closed

Conversation

ekellstrand
Copy link
Contributor

  • Generate Account and Contract Hex instead of relying on literals
  • Started conversion to a model that can generate keys & config, and support many nodes

- Generate Account and Contract Hex instead of relying on literals
- Started conversion to a model that can generate keys & config, and support many nodes
Copy link
Contributor

@iikirilov iikirilov left a comment

Choose a reason for hiding this comment

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

Great stuff. Would be useful to move the helper methods in the base class so we can write a cluster test for ibft2.

node2.execute(privateTransactions.createPrivateRawTransaction(storeValueFromNode2));

privateTransactionVerifier.validEventReturned("1000").verify(node1, transactionHash);
public PrivacyNode node(final int i) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Helper methods can go in base class.

/** Verify that each Orion node has connected to every other Orion */
public void verifyAllOrionNetworkConnections() {
for (int i = 0; i < nodes.size(); i++) {
for (int j = i; j < nodes.size(); j++) {
Copy link
Contributor

Choose a reason for hiding this comment

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

int j = i + 1

you do not need to test connectivity between node 0 and node 0...

@ekellstrand ekellstrand changed the title RefactorPrivacyTests [PAN-2652] RefactorPrivacyTests May 13, 2019
@iikirilov
Copy link
Contributor

replaced by #1483

@ekellstrand
Copy link
Contributor Author

Closing as this is superseded by another PR that includes this and some other test enhancements.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants