From f01b5c758396492e87dd02605817080b411458a6 Mon Sep 17 00:00:00 2001 From: Anjana A R K Date: Thu, 12 Nov 2026 12:02:02 +0530 Subject: [PATCH] feat: accept CCCO fixpack 1.2.2.3 - Add 1.2.2.3 to the CCCO versions listed in docs/README.md - Cover fixpack 1.2.2.3 in TestProcess_CCCO_ValidCertVersion - Requires contract-go v3.5.0 (already in go.mod), which adds 1.2.2.3 --- docs/README.md | 6 ++++-- lib/encryptString/encryptString_test.go | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/README.md b/docs/README.md index 5a74fc1..405fd78 100644 --- a/docs/README.md +++ b/docs/README.md @@ -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. @@ -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`): @@ -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 @@ -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 diff --git a/lib/encryptString/encryptString_test.go b/lib/encryptString/encryptString_test.go index dd0ca63..452b910 100644 --- a/lib/encryptString/encryptString_test.go +++ b/lib/encryptString/encryptString_test.go @@ -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)