Skip to content

Commit

Permalink
Update: Fabric CA Reenroll (#72)
Browse files Browse the repository at this point in the history
* test: unit test quorum explorer
1. add quorum explorer service unit test
2. grep Quorum to test coverage
3. edit `.nycrc.json` to coverage quorum service folder
Tickets: CU-8669uqjeg

* test: unit test quorum backup
1. delete Service parameter in describe
2. add quorum backup service unit test

Tickets: CU-8669uqz8u

* test: uint test quorum network
1. add quorum network service unit test
Tickets: CU-8669vjbz2

* fix: fabric and quorum docs

* fix: quorum docs

* fix: quorum docs

* feat: add fabric backup commands

* refactor: ora fabric network

* refactor: fabric ora explorer

* refactor: fabric ora orderer

* refactor: fabric ora peer

* refactor: fabric ora channel

* refactor: fabric ora config

* refactor: fabric ora chaincode

* refactor: fabric ora org

* refactor: fabric ora ca

* fix: fabric backup export orderer and peer

* feat: fabric ca reenroll

* feat: add vhs to create new demo file

* doc: version 2.0.3

---------

Co-authored-by: daphney <[email protected]>
Co-authored-by: Brian <[email protected]>
  • Loading branch information
3 people authored Jun 28, 2023
1 parent 3e61e9b commit 36940f2
Show file tree
Hide file tree
Showing 68 changed files with 2,804 additions and 458 deletions.
6 changes: 4 additions & 2 deletions .nycrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@
"functions": 0,
"statements": 0,
"include": [
"src/fabric/service/**.ts"
"src/fabric/service/**.ts",
"src/quorum/service/**.ts"
],
"exclude":[
"src/fabric/service/Service.abstract.ts"
"src/fabric/service/Service.abstract.ts",
"src/quorum/service/Service.abstract.ts"
],
"reporter": [
"text-summary",
Expand Down
37 changes: 17 additions & 20 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,21 @@
這份文件將記錄 BDK 專案的變更日誌

All notable changes to BDK project will be documented here.
## [2.0.3](https://github.com/cathayddt/bdk/releases/tag/2.0.3) - 2023-06-27

[1.0.0]: https://github.com/cathayddt/bdk/releases/tag/v1.0.0
### Features

[1.0.1]: https://github.com/cathayddt/bdk/releases/tag/v1.0.1
* Add vhs to create new demo file
* Fabric ca reenroll
* Add fabric backup commands

[1.0.2]: https://github.com/cathayddt/bdk/releases/tag/v1.0.2
### Fixes

[1.0.3]: https://github.com/cathayddt/bdk/releases/tag/v1.0.3
* Fabric backup export orderer and peer
* Quorum docs
* Fabric and quorum docs

[1.0.4]: https://github.com/cathayddt/bdk/releases/tag/v1.0.4

[2.0.0]: https://github.com/cathayddt/bdk/releases/tag/v2.0.0

[2.0.1]: https://github.com/cathayddt/bdk/releases/tag/v2.0.1

[2.0.2]: https://github.com/cathayddt/bdk/releases/tag/v2.0.2

## [2.0.2][2.0.2] - 2023-03-
## [2.0.2](https://github.com/cathayddt/bdk/releases/tag/v2.0.2) - 2023-03-

### new
1. New Package: `ora`
Expand All @@ -41,7 +38,7 @@ All notable changes to BDK project will be documented here.
7. Modify: `requestTimeoutSeconds` from 4 to 60
8. Modify: `bdk quorum network create` member node default value 0

## [2.0.1][2.0.1] - 2022-12-
## [2.0.1](https://github.com/cathayddt/bdk/releases/tag/v2.0.1) - 2022-12-

### new

Expand All @@ -56,7 +53,7 @@ All notable changes to BDK project will be documented here.
- Refactor: `bdk quorum network create` ask to delete exist files before creating
- Refactor: `bdk quorum network delete` delete node files

## [2.0.0][2.0.0] - 2022-10-
## [2.0.0](https://github.com/cathayddt/bdk/releases/tag/v2.0.0) - 2022-10-

### new

Expand All @@ -69,7 +66,7 @@ All notable changes to BDK project will be documented here.
- Refactor: move Fabric commands from 'src/' to 'src/fabric'
- Refactor: Fabric command form `bdk` to `bdk fabric`

## [1.0.4][1.0.4] - 2022-02-
## [1.0.4](https://github.com/cathayddt/bdk/releases/tag/v1.0.4) - 2022-02-

### new

Expand All @@ -86,7 +83,7 @@ All notable changes to BDK project will be documented here.

- Fix bug: should createChannelArtifactFolder before convertChannelConfigtxToTx (#56)

## [1.0.3][1.0.3] - 2022-01-24
## [1.0.3](https://github.com/cathayddt/bdk/releases/tag/v1.0.3) - 2022-01-24

### new

Expand All @@ -97,7 +94,7 @@ All notable changes to BDK project will be documented here.
- ICA expiry time #41
- approve and update don't use arrow function #45

## [1.0.2][1.0.2] - 2022-01-03
## [1.0.2](https://github.com/cathayddt/bdk/releases/tag/v1.0.2) - 2022-01-03

### new

Expand All @@ -124,7 +121,7 @@ All notable changes to BDK project will be documented here.
- Fix command: `bdk explorer` #29
- Fix `bdk network create` generate file `org definition json` #44

## [1.0.1][1.0.1] - 2021-11-29
## [1.0.1](https://github.com/cathayddt/bdk/releases/tag/v1.0.1) - 2021-11-29

### new

Expand All @@ -138,7 +135,7 @@ All notable changes to BDK project will be documented here.

- Fix ca file permission issues

## [1.0.0][1.0.0] - 2021-11-02
## [1.0.0](https://github.com/cathayddt/bdk/releases/tag/v1.0.0) - 2021-11-02

### new

Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,21 @@ e.g.
```
bdk quorum network create -i
```
![bdk quorum network create -i](images/bdk-quorum-network-create.gif)
![bdk quorum network create -i](docs/vhs/bdk-quorum-network-create.gif)

```bash
bdk fabric network create -i
```

![bdk fabric network create -i](images/bdk-fabric-network-create.gif)
![bdk fabric network create -i](docs/vhs/bdk-fabric-network-create.gif)

## 版本 (Releases)

| Latest | Stable |
| ---------------- | ---------------- |
| [v2.0.2][v2.0.2] | [v2.0.2][v2.0.2] |
| [v2.0.3][v2.0.3] | [v2.0.3][v2.0.3] |

[v2.0.2]: https://github.com/cathayddt/bdk/releases/tag/v2.0.2
[v2.0.3]: https://github.com/cathayddt/bdk/releases/tag/v2.0.3

[更新內容 (Changelog)](CHANGELOG.md)

Expand Down
97 changes: 97 additions & 0 deletions cliff.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
# configuration file for git-cliff (0.1.0)

[changelog]
# changelog header
header = """
# Changelog
這份文件將記錄 BDK 專案的變更日誌
All notable changes to BDK project will be documented here.
"""
# template for the changelog body
body = """
{% if version %}\
## [{{ version }}](https://github.com/cathayddt/bdk/releases/tag/{{version}}) - {{ timestamp | date(format="%Y-%m-%d") }}
{% else %}\
## [Unreleased]
{% endif %}\
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | striptags | trim | upper_first }}
{% for commit in commits %}
* {{ commit.message | upper_first }}\
{% endfor %}
{% endfor %}\n
"""
# remove the leading and trailing whitespace from the template
trim = true
# changelog footer
footer = """
<!-- generated by git-cliff -->
"""

[git]
# parse the commits based on https://www.conventionalcommits.org
conventional_commits = true
# filter out the commits that are not conventional
filter_unconventional = true
# process each line of a commit as an individual commit
split_commits = false
# regex for preprocessing the commit messages
commit_preprocessors = [
{ pattern = '.*', replace_command = 'sed -E "s/^(\S+)\s(.+)\s\((#[0-9]+)\)$/\1 (\3) \2/"' },
# A reference to an issue is appened to commits that looks like "(#1234)", this will be replaced
# with a link to that issue, e.g. "[#$1234](https://github.com/cathayddt/bdk/issues/1234)".
{ pattern = '\(#(\d+)\)', replace = "[#${1}](https://github.com/cathayddt/bdk/issues/${1})" },
# replace multiple spaces with one space
{ pattern = " +", replace = " "},

# the following patterns only exist because "split_commits" is set to true, and we are processesing
# each line of the commit as a separate message.
# these exist to filter out common messages that appear in commit messages that are technically
# conventional, but we do not way to include in the changelog.
{ pattern = '^Signed-off-by:.*', replace='' },
{ pattern = '^Co-authored-by:.*', replace='' },
# don't include references to issues as changelog entries.
{ pattern = '^ref:.*', replace='' },
# exclude CVSS format, CVE can still be included in regular conventinal commits.
{ pattern = 'CVSS:.*', replace='' },
# don't include dependabot auto merge entries.
{ pattern = '.*dependabot-automerge-.*', replace='' },
# don't include statements saying which issue is closed.
{ pattern = '^closes:.*|Closes:.*', replace='' },
# remove standalone links in the commit messages.
{ pattern = '^https://.*', replace='' },
# remove lines with html.
{ pattern = '^<.*', replace='' },
]

# regex for parsing and grouping commits
commit_parsers = [
# specifying the number in a comment is a workaround to enable ordering of groups.
# these comments are stripped out of the markdown with the filter "{{ group | striptags | trim | upper_first }}"
# above in the body template.
{ message = "^((?i)feature|(?i)feat)", group = "<!-- 0 -->Features" },
{ message = "^((?i)improvements|(?i)imp|(?i)impr|(?i)perf)", group = "<!-- 1 -->Improvements" },
{ message = "^((?i)fix|(?i)bug)", group = "<!-- 2 -->Fixes" },
{ message = '^.*\(api\)!', group = "<!-- 3 -->API Breaking" },
{ message = '^.*\(statemachine\)!', group = "<!-- 4 -->State Machine Breaking" },
{ message = "^((?i)test)", group = "<!-- 5 -->Testing" },
{ message = "^((?i)doc|(?i)docs|(?i)documentation)", group = "<!-- 6 -->Documentation" },
{ message = "^((?i)deprecated)", group = "<!-- 7 -->Deprecated" },
{ message = "^((?i)deps|(?i)dep|(?i)build)", group = "<!-- 8 -->Dependencies" },
{ message = "^revert|^ci|^chore|^refactor", skip = true} # explicitly skips changelog for reverts, CI, chore and refactor commits
]
# filter out the commits that are not matched by commit parsers
filter_commits = true
# glob pattern for matching git tags
# note SDK tags are purposely ignored, only submodules are included.
tag_pattern = "**/v[0-9]*"
# regex for skipping tags
skip_tags = ""
# regex for ignoring tags
ignore_tags = ""
# sort the tags chronologically
date_order = false
# sort the commits inside sections by oldest/newest order
sort_commits = "newest"
Loading

0 comments on commit 36940f2

Please sign in to comment.