Skip to content
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

test: fix PKI magic strings in besu tests - genesis account #1104

Closed
petermetz opened this issue Jul 1, 2021 · 1 comment · Fixed by #1110
Closed

test: fix PKI magic strings in besu tests - genesis account #1104

petermetz opened this issue Jul 1, 2021 · 1 comment · Fixed by #1110
Labels
Developer_Experience good-first-issue Good for newcomers good-first-issue-100-introductory Hacktoberfest Hacktoberfest participants are welcome to take a stab at issues marked with this label.

Comments

@petermetz
Copy link
Contributor

Description

We have dozens of test cases where the the default besu genesis accounts are hardcoded in magic strings.
The BesuTestLedger class has methods retrieving the same values and therefore we should migrate the tests over to use those instead of the magic strings.

What it boils down to is applying this change in all the other test cases where the private/public key pair of the high net worth genesis account appears in magic strings.
The change (example): #1102 (comment)

Acceptance Criteria

  1. If I search for 627306090abaB3A6e1400e9345bC60c78a8BEf57 or c87509a1c067bbde78beb793e6fa76530b6382a4c0241e5e4a9ec0a0f44dc0d3 in the entire project, there are no test cases where I see it. It only appears inside the besu test ledger class.

cc: @ty-lazar @Jeff-Ushry @twiggins120 @awadhana @Leeyoungone

@petermetz petermetz added good-first-issue Good for newcomers Developer_Experience Hacktoberfest Hacktoberfest participants are welcome to take a stab at issues marked with this label. good-first-issue-100-introductory labels Jul 1, 2021
@awadhana
Copy link
Contributor

awadhana commented Jul 1, 2021

I'm going to work on this 👍🏼

awadhana added a commit to awadhana/cactus that referenced this issue Jul 6, 2021
Fixes hyperledger-cacti#1104

Signed-off-by: Hana Awad <awadhana0825@gmail.com>
awadhana added a commit to awadhana/cactus that referenced this issue Jul 6, 2021
Fixes hyperledger-cacti#1104

Signed-off-by: Hana Awad <awadhana0825@gmail.com>
awadhana added a commit to awadhana/cactus that referenced this issue Jul 8, 2021
…e previously causing linter issues.

Fixes hyperledger-cacti#1104

Signed-off-by: Hana Awad <awadhana0825@gmail.com>
awadhana added a commit to awadhana/cactus that referenced this issue Jul 8, 2021
…e previously causing linter issues.

Fixes hyperledger-cacti#1104

Signed-off-by: Hana Awad <awadhana0825@gmail.com>
awadhana added a commit to awadhana/cactus that referenced this issue Jul 8, 2021
and linter warnings

Fixes hyperledger-cacti#1104

Signed-off-by: Hana Awad <awadhana0825@gmail.com>
petermetz pushed a commit that referenced this issue Jul 11, 2021
and linter warnings

Fixes #1104

Signed-off-by: Hana Awad <awadhana0825@gmail.com>
RafaelAPB pushed a commit to RafaelAPB/blockchain-integration-framework that referenced this issue Mar 9, 2022
and linter warnings

Fixes hyperledger-cacti#1104

Signed-off-by: Hana Awad <awadhana0825@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Developer_Experience good-first-issue Good for newcomers good-first-issue-100-introductory Hacktoberfest Hacktoberfest participants are welcome to take a stab at issues marked with this label.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants