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

FAB-16437 Remove common/mocks from validator #352

Merged
merged 2 commits into from
Dec 3, 2019

Conversation

mastersingh24
Copy link
Contributor

@mastersingh24 mastersingh24 commented Dec 3, 2019

Type of change

Improvement

Description

Mocks should be generated in the package in which they are used.
This is part of removing the use of common/mocks as it is a
bad pattern.

  • stop using common/mocks in core/handlers/validation/builtin/v13
  • stop using mock cc as it adds more complexity than needed when you can simply "create" lscc records

Additional details

This removes common/mocks from core/handlers/validation.

Related issues

FAB-16437

    - stop using common/mocks in
    core/handlers/validation/builtin/v13
    - stop using mock cc as it adds more complexity than
    needed when you can simply "create" lscc records

Change-Id: I459eb4e0c1ec30d5374de5a5feda56a6d26948d6
Signed-off-by: Gari Singh <[email protected]>
- generate mocks within the package

Change-Id: Idf8dcd70a59c68d323ea78880cebec22b63966fb
Signed-off-by: Gari Singh <[email protected]>
@mastersingh24 mastersingh24 changed the title FAB-16437 Remove common/mocks from v13 validator FAB-16437 Remove common/mocks from validator Dec 3, 2019
@kchristidis kchristidis merged commit f84b1f0 into hyperledger:master Dec 3, 2019
@mastersingh24 mastersingh24 deleted the kill-common-mocks2 branch December 4, 2019 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants