Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1040,7 +1040,7 @@ contract-cli list-encryptioncert-versions

Output:
```json
{"ccco":[{"mod":"1.2.2","fixpacks":["1.2.2.1","1.2.2.2"]},{"mod":"1.2.1","fixpacks":[]},{"mod":"1.2.0","fixpacks":[]}],"ccrt":["26.5.0","26.2.0"],"ccrv":["26.4.1","25.11.0"],"hpvs":["26.5.0","26.2.0"]}
{"ccco":[{"mod":"1.2.2","fixpacks":["1.2.2.1","1.2.2.2","1.2.2.3"]},{"mod":"1.2.1","fixpacks":[]},{"mod":"1.2.0","fixpacks":[]}],"ccrt":["26.5.0","26.2.0"],"ccrv":["26.4.1","25.11.0"],"hpvs":["26.5.0","26.2.0"]}
```

> **Note:** CCRT, CCRV and HPVS list the latest three certificate versions as flat lists.
Expand All @@ -1055,7 +1055,7 @@ contract-cli list-encryptioncert-versions --os ccco

Output (latest mod release first; `--ver` accepts any `mod` or `fixpacks` value shown):
```json
{"ccco":[{"mod":"1.2.2","fixpacks":["1.2.2.1","1.2.2.2"]},{"mod":"1.2.1","fixpacks":[]},{"mod":"1.2.0","fixpacks":[]}]}
{"ccco":[{"mod":"1.2.2","fixpacks":["1.2.2.1","1.2.2.2","1.2.2.3"]},{"mod":"1.2.1","fixpacks":[]},{"mod":"1.2.0","fixpacks":[]}]}
```

YAML (`--format yaml`):
Expand All @@ -1065,6 +1065,7 @@ ccco:
fixpacks:
- 1.2.2.1
- 1.2.2.2
- 1.2.2.3
- mod: 1.2.1
fixpacks: []
- mod: 1.2.0
Expand All @@ -1088,6 +1089,7 @@ ccco:
fixpacks:
- 1.2.2.1
- 1.2.2.2
- 1.2.2.3
- mod: 1.2.1
fixpacks: []
- mod: 1.2.0
Expand Down
2 changes: 1 addition & 1 deletion lib/encryptString/encryptString_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ func TestProcess_CCCO_InvalidCertVersion(t *testing.T) {

// TestProcess_CCCO_ValidCertVersion tests that declared CCCO mod releases and fixpacks are accepted
func TestProcess_CCCO_ValidCertVersion(t *testing.T) {
for _, version := range []string{"1.2.2", "1.2.2.1", "1.2.1"} {
for _, version := range []string{"1.2.2", "1.2.2.1", "1.2.2.3", "1.2.1"} {
t.Run(version, func(t *testing.T) {
result, err := Process(testInputText, TextFormat, "ccco", "", version)
assert.NoError(t, err)
Expand Down
Loading