Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

node_integration_tests - use granary for key reuse #4276

Merged
merged 7 commits into from
Jun 13, 2019

Conversation

maaktweluit
Copy link
Contributor

  • Separated out the key reuse feature in its own file ( commit 1 )
  • Extended it to pick between local files and the remote granary by specifying the granary hostname ( commit 2).

The granary is disabled by default.

Copy link
Contributor

@etam etam left a comment

Choose a reason for hiding this comment

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

Added some comments. Nothing critical though.

scripts/node_integration_tests/key_reuse.py Outdated Show resolved Hide resolved
scripts/node_integration_tests/key_reuse.py Outdated Show resolved Hide resolved
enabled = True

@classmethod
def get(cls, test_dir: Path):
Copy link
Contributor

Choose a reason for hiding this comment

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

Not critical: If you call this second time, with different test_dir you might get a bit surprising results.

Copy link
Contributor Author

@maaktweluit maaktweluit Jun 11, 2019

Choose a reason for hiding this comment

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

fixed!

Protected our future selves from this by splitting the functions and adding asserts

Please resolve if you like the fix ( only this commit )

scripts/node_integration_tests/key_reuse.py Outdated Show resolved Hide resolved
scripts/node_integration_tests/key_reuse.py Outdated Show resolved Hide resolved
scripts/node_integration_tests/key_reuse.py Outdated Show resolved Hide resolved
tests/factories/granary.py Outdated Show resolved Hide resolved
tests/factories/granary.py Outdated Show resolved Hide resolved
tests/factories/granary.py Outdated Show resolved Hide resolved
@etam
Copy link
Contributor

etam commented Jun 7, 2019

Is the Granary code available somewhere?

@maaktweluit
Copy link
Contributor Author

@etam thanks for the comments! will look into them :)

the granary is available here: https://github.com/golemfactory/golem-granary

@maaktweluit maaktweluit requested a review from etam June 7, 2019 10:44
scripts/node_integration_tests/key_reuse.py Outdated Show resolved Hide resolved
scripts/node_integration_tests/key_reuse.py Outdated Show resolved Hide resolved
scripts/node_integration_tests/key_reuse.py Outdated Show resolved Hide resolved
scripts/node_integration_tests/key_reuse.py Outdated Show resolved Hide resolved
scripts/node_integration_tests/key_reuse.py Show resolved Hide resolved
scripts/node_integration_tests/key_reuse.py Outdated Show resolved Hide resolved
tests/factories/granary.py Outdated Show resolved Hide resolved
scripts/node_integration_tests/key_reuse.py Outdated Show resolved Hide resolved
@maaktweluit
Copy link
Contributor Author

@mfranciszkiewicz thanks for the review, great comments!

I have addressed all of them and resolved the simple fixes, please resolve your other comments when happy with the fixes

@maaktweluit maaktweluit merged commit 59039b6 into develop Jun 13, 2019
@maaktweluit maaktweluit deleted the mwu/int-granary-config branch June 13, 2019 14:06
maaktweluit added a commit that referenced this pull request Jul 2, 2019
node_integration_tests - use granary for key reuse
@maaktweluit maaktweluit mentioned this pull request Jul 2, 2019
maaktweluit added a commit that referenced this pull request Jul 18, 2019
node_integration_tests - use granary for key reuse
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants