Skip to content

Commit 06d8acf

Browse files
committed
Rename non-root NOC to NOC ICA
1 parent 9703e38 commit 06d8acf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+2330
-1710
lines changed

go.mod

+6-6
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ require (
1010
github.com/go-playground/universal-translator v0.18.0
1111
github.com/go-playground/validator/v10 v10.9.0
1212
github.com/gogo/protobuf v1.3.3
13-
github.com/golang/protobuf v1.5.3
13+
github.com/golang/protobuf v1.5.4
1414
github.com/gorilla/mux v1.8.0
1515
github.com/grpc-ecosystem/grpc-gateway v1.16.0
1616
github.com/kr/pretty v0.3.1 // indirect
@@ -19,14 +19,14 @@ require (
1919
github.com/spf13/cobra v1.2.1
2020
github.com/spf13/pflag v1.0.5
2121
github.com/spf13/viper v1.8.1
22-
github.com/stretchr/testify v1.8.2
22+
github.com/stretchr/testify v1.8.4
2323
github.com/tendermint/spm v0.1.9
2424
github.com/tendermint/tendermint v0.34.14
2525
github.com/tendermint/tm-db v0.6.4
26-
golang.org/x/net v0.12.0 // indirect
27-
google.golang.org/genproto/googleapis/api v0.0.0-20230724170836-66ad5b6ff146
28-
google.golang.org/genproto/googleapis/rpc v0.0.0-20230724170836-66ad5b6ff146 // indirect
29-
google.golang.org/grpc v1.56.2
26+
golang.org/x/net v0.20.0 // indirect
27+
google.golang.org/genproto/googleapis/api v0.0.0-20240125205218-1f4bbc51befe
28+
google.golang.org/genproto/googleapis/rpc v0.0.0-20240125205218-1f4bbc51befe // indirect
29+
google.golang.org/grpc v1.61.0
3030
sigs.k8s.io/yaml v1.3.0
3131
)
3232

go.sum

+595-23
Large diffs are not rendered by default.

integration_tests/cli/pki-noc-certs.sh

+14-14
Original file line numberDiff line numberDiff line change
@@ -200,12 +200,12 @@ check_response "$result" "\"subjectKeyId\": \"$noc_root_cert_1_subject_key_id\""
200200
check_response "$result" "\"serialNumber\": \"$noc_root_cert_1_serial_number\""
201201
check_response "$result" "\"subjectAsText\": \"$noc_root_cert_1_subject_as_text\""
202202

203-
echo "Add first NOC certificate by vendor with VID = $vid"
204-
result=$(echo "$passphrase" | dcld tx pki add-noc-x509-cert --certificate="$noc_cert_1_path" --from $vendor_account --yes)
203+
echo "Add first intermidiate NOC certificate by vendor with VID = $vid"
204+
result=$(echo "$passphrase" | dcld tx pki add-noc-x509-ica-cert --certificate="$noc_cert_1_path" --from $vendor_account --yes)
205205
check_response "$result" "\"code\": 0"
206206

207-
echo "Request NOC certificate by VID = $vid"
208-
result=$(dcld query pki noc-x509-certs --vid="$vid")
207+
echo "Request intermidiate NOC certificate by VID = $vid"
208+
result=$(dcld query pki noc-x509-ica-certs --vid="$vid")
209209
echo $result | jq
210210
check_response "$result" "\"subject\": \"$noc_cert_1_subject\""
211211
check_response "$result" "\"subjectKeyId\": \"$noc_cert_1_subject_key_id\""
@@ -221,23 +221,23 @@ check_response "$result" "\"subject\": \"$noc_cert_1_subject\""
221221
check_response "$result" "\"subjectKeyId\": \"$noc_cert_1_subject_key_id\""
222222

223223
echo "Try to add intermediate with different VID = $vid_2"
224-
result=$(echo "$passphrase" | dcld tx pki add-noc-x509-cert --certificate="$noc_cert_2_path" --from $vendor_account_2 --yes)
224+
result=$(echo "$passphrase" | dcld tx pki add-noc-x509-ica-cert --certificate="$noc_cert_2_path" --from $vendor_account_2 --yes)
225225
check_response "$result" "\"code\": 439"
226226

227227
test_divider
228228

229229
cert_schema_version_3=3
230230
schema_version_4=4
231231
echo "Add second NOC certificate by vendor with VID = $vid"
232-
result=$(echo "$passphrase" | dcld tx pki add-noc-x509-cert --certificate="$noc_cert_2_path" --certificate-schema-version=$cert_schema_version_3 --schemaVersion=$schema_version_4 --from $vendor_account --yes)
232+
result=$(echo "$passphrase" | dcld tx pki add-noc-x509-ica-cert --certificate="$noc_cert_2_path" --certificate-schema-version=$cert_schema_version_3 --schemaVersion=$schema_version_4 --from $vendor_account --yes)
233233
check_response "$result" "\"code\": 0"
234234

235235
echo "Add third NOC certificate by vendor with VID = $vid"
236-
result=$(echo "$passphrase" | dcld tx pki add-noc-x509-cert --certificate="$noc_cert_1_copy_path" --from $vendor_account --yes)
236+
result=$(echo "$passphrase" | dcld tx pki add-noc-x509-ica-cert --certificate="$noc_cert_1_copy_path" --from $vendor_account --yes)
237237
check_response "$result" "\"code\": 0"
238238

239239
echo "Request all NOC certificates"
240-
result=$(dcld query pki all-noc-x509-certs)
240+
result=$(dcld query pki all-noc-x509-ica-certs)
241241
echo $result | jq
242242
check_response "$result" "\"subject\": \"$noc_cert_1_subject\""
243243
check_response "$result" "\"subjectKeyId\": \"$noc_cert_1_subject_key_id\""
@@ -272,7 +272,7 @@ result=$(echo "$passphrase" | dcld tx pki add-noc-x509-root-cert --certificate="
272272
check_response "$result" "\"code\": 0"
273273

274274
echo "Add NOC leaf certificate by vendor with VID = $vid"
275-
result=$(echo "$passphrase" | dcld tx pki add-noc-x509-cert --certificate="$noc_leaf_cert_1_path" --from $vendor_account --yes)
275+
result=$(echo "$passphrase" | dcld tx pki add-noc-x509-ica-cert --certificate="$noc_leaf_cert_1_path" --from $vendor_account --yes)
276276
check_response "$result" "\"code\": 0"
277277

278278
echo "Request All NOC root certificate"
@@ -283,7 +283,7 @@ check_response "$result" "\"serialNumber\": \"$noc_root_cert_1_copy_serial_numbe
283283
check_response "$result" "\"serialNumber\": \"$noc_root_cert_2_serial_number\""
284284

285285
echo "Request all NOC certificates"
286-
result=$(dcld query pki all-noc-x509-certs)
286+
result=$(dcld query pki all-noc-x509-ica-certs)
287287
echo $result | jq
288288
check_response "$result" "\"serialNumber\": \"$noc_cert_1_serial_number\""
289289
check_response "$result" "\"serialNumber\": \"$noc_cert_1_copy_serial_number\""
@@ -365,7 +365,7 @@ response_does_not_contain "$result" "\"serialNumber\": \"$noc_root_cert_1_copy_s
365365
echo $result | jq
366366

367367
echo "Request NOC certificate by VID = $vid should contain intermediate and leaf certificates"
368-
result=$(dcld query pki noc-x509-certs --vid="$vid")
368+
result=$(dcld query pki noc-x509-ica-certs --vid="$vid")
369369
echo $result | jq
370370
check_response "$result" "\"subject\": \"$noc_cert_1_subject\""
371371
check_response "$result" "\"subject\": \"$noc_leaf_cert_1_subject\""
@@ -395,12 +395,12 @@ test_divider
395395
echo "REVOCATION OF NON-ROOT NOC CERTIFICATES"
396396

397397
echo "Try to revoke NOC certificate with different VID = $vid_2"
398-
result=$(echo "$passphrase" | dcld tx pki revoke-noc-x509-cert --subject="$noc_cert_1_subject" --subject-key-id="$noc_cert_1_subject_key_id" --from $vendor_account_2 --yes)
398+
result=$(echo "$passphrase" | dcld tx pki revoke-noc-x509-ica-cert --subject="$noc_cert_1_subject" --subject-key-id="$noc_cert_1_subject_key_id" --from $vendor_account_2 --yes)
399399
check_response "$result" "\"code\": 439"
400400

401401
revoke_schema_version_6=6
402402
echo "$vendor_account Vendor revokes only NOC certificates, it should not revoke leaf certificates"
403-
result=$(echo "$passphrase" | dcld tx pki revoke-noc-x509-cert --subject="$noc_cert_1_subject" --subject-key-id="$noc_cert_1_subject_key_id" --schemaVersion=$revoke_schema_version_6 --from=$vendor_account --yes)
403+
result=$(echo "$passphrase" | dcld tx pki revoke-noc-x509-ica-cert --subject="$noc_cert_1_subject" --subject-key-id="$noc_cert_1_subject_key_id" --schemaVersion=$revoke_schema_version_6 --from=$vendor_account --yes)
404404
check_response "$result" "\"code\": 0"
405405

406406
echo "Request all revoked certificates should not contain leaf certificate"
@@ -440,7 +440,7 @@ response_does_not_contain "$result" "\"serialNumber\": \"$noc_cert_1_copy_serial
440440
echo $result | jq
441441

442442
echo "Request NOC certificate by VID = $vid should contain one leaf certificate"
443-
result=$(dcld query pki noc-x509-certs --vid="$vid")
443+
result=$(dcld query pki noc-x509-ica-certs --vid="$vid")
444444
echo $result | jq
445445
check_response "$result" "\"subject\": \"$noc_leaf_cert_1_subject\""
446446
check_response "$result" "\"subjectKeyId\": \"$noc_leaf_cert_1_subject_key_id\""

integration_tests/cli/pki-noc-revocation-with-revoking-child.sh

+13-13
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ result=$(echo "$passphrase" | dcld tx pki add-noc-x509-root-cert --certificate="
5757
check_response "$result" "\"code\": 0"
5858

5959
echo "Add first NOC certificate by vendor with VID = $vid"
60-
result=$(echo "$passphrase" | dcld tx pki add-noc-x509-cert --certificate="$noc_cert_1_path" --from $vendor_account --yes)
60+
result=$(echo "$passphrase" | dcld tx pki add-noc-x509-ica-cert --certificate="$noc_cert_1_path" --from $vendor_account --yes)
6161
check_response "$result" "\"code\": 0"
6262

6363
echo "Add NOC leaf certificate by vendor with VID = $vid"
64-
result=$(echo "$passphrase" | dcld tx pki add-noc-x509-cert --certificate="$noc_leaf_cert_1_path" --from $vendor_account --yes)
64+
result=$(echo "$passphrase" | dcld tx pki add-noc-x509-ica-cert --certificate="$noc_leaf_cert_1_path" --from $vendor_account --yes)
6565
check_response "$result" "\"code\": 0"
6666

6767
test_divider
@@ -73,7 +73,7 @@ check_response "$result" "\"serialNumber\": \"$noc_root_cert_1_serial_number\""
7373
check_response "$result" "\"serialNumber\": \"$noc_root_cert_1_copy_serial_number\""
7474

7575
echo "Request all NOC certificates"
76-
result=$(dcld query pki all-noc-x509-certs)
76+
result=$(dcld query pki all-noc-x509-ica-certs)
7777
echo $result | jq
7878
check_response "$result" "\"serialNumber\": \"$noc_cert_1_serial_number\""
7979
check_response "$result" "\"serialNumber\": \"$noc_leaf_cert_1_serial_number\""
@@ -146,7 +146,7 @@ response_does_not_contain "$result" "\"serialNumber\": \"$noc_root_cert_1_serial
146146
echo $result | jq
147147

148148
echo "Request NOC certificate by VID = $vid should be empty"
149-
result=$(dcld query pki noc-x509-certs --vid="$vid")
149+
result=$(dcld query pki noc-x509-ica-certs --vid="$vid")
150150
echo $result | jq
151151
check_response "$result" "Not Found"
152152
response_does_not_contain "$result" "\"subject\": \"$noc_cert_1_subject\""
@@ -180,32 +180,32 @@ echo "Add NOC root certificate by vendor with VID = $vid"
180180
result=$(echo "$passphrase" | dcld tx pki add-noc-x509-root-cert --certificate="$noc_root_cert_2_path" --from $vendor_account --yes)
181181
check_response "$result" "\"code\": 0"
182182

183-
echo "Add NOC certificate by vendor with VID = $vid"
184-
result=$(echo "$passphrase" | dcld tx pki add-noc-x509-cert --certificate="$noc_cert_2_path" --from $vendor_account --yes)
183+
echo "Add intermidiate NOC certificate by vendor with VID = $vid"
184+
result=$(echo "$passphrase" | dcld tx pki add-noc-x509-ica-cert --certificate="$noc_cert_2_path" --from $vendor_account --yes)
185185
check_response "$result" "\"code\": 0"
186186

187-
echo "Add second NOC certificate by vendor with VID = $vid"
188-
result=$(echo "$passphrase" | dcld tx pki add-noc-x509-cert --certificate="$noc_cert_2_copy_path" --from $vendor_account --yes)
187+
echo "Add second intermidiate NOC certificate by vendor with VID = $vid"
188+
result=$(echo "$passphrase" | dcld tx pki add-noc-x509-ica-cert --certificate="$noc_cert_2_copy_path" --from $vendor_account --yes)
189189
check_response "$result" "\"code\": 0"
190190

191191
echo "Add leaf certificate by vendor with VID = $vid"
192-
result=$(echo "$passphrase" | dcld tx pki add-noc-x509-cert --certificate="$noc_leaf_cert_2_path" --from $vendor_account --yes)
192+
result=$(echo "$passphrase" | dcld tx pki add-noc-x509-ica-cert --certificate="$noc_leaf_cert_2_path" --from $vendor_account --yes)
193193
check_response "$result" "\"code\": 0"
194194

195195
echo "Request All NOC root certificate"
196196
result=$(dcld query pki all-noc-x509-root-certs)
197197
echo $result | jq
198198
check_response "$result" "\"serialNumber\": \"$noc_root_cert_2_serial_number\""
199199

200-
echo "Request all NOC certificates"
201-
result=$(dcld query pki all-noc-x509-certs)
200+
echo "Request all intermidiate NOC certificates"
201+
result=$(dcld query pki all-noc-x509-ica-certs)
202202
echo $result | jq
203203
check_response "$result" "\"serialNumber\": \"$noc_cert_2_serial_number\""
204204
check_response "$result" "\"serialNumber\": \"$noc_cert_2_copy_serial_number\""
205205
check_response "$result" "\"serialNumber\": \"$noc_leaf_cert_2_serial_number\""
206206

207207
echo "$vendor_account Vendor revokes non-root NOC certificate by setting \"revoke-child\" flag to true, it should revoke child certificates too"
208-
result=$(echo "$passphrase" | dcld tx pki revoke-noc-x509-cert --subject="$noc_cert_2_subject" --subject-key-id="$noc_cert_2_subject_key_id" --revoke-child=true --from=$vendor_account --yes)
208+
result=$(echo "$passphrase" | dcld tx pki revoke-noc-x509-ica-cert --subject="$noc_cert_2_subject" --subject-key-id="$noc_cert_2_subject_key_id" --revoke-child=true --from=$vendor_account --yes)
209209
check_response "$result" "\"code\": 0"
210210

211211
echo "Request all revoked certificates should two intermediate and one leaf certificates"
@@ -239,7 +239,7 @@ response_does_not_contain "$result" "\"serialNumber\": \"$noc_cert_2_copy_serial
239239
echo $result | jq
240240

241241
echo "Request NOC certificate by VID = $vid should not contain intermediate and leaf certificates"
242-
result=$(dcld query pki noc-x509-certs --vid="$vid")
242+
result=$(dcld query pki noc-x509-ica-certs --vid="$vid")
243243
echo $result | jq
244244
response_does_not_contain "$result" "\"subject\": \"$noc_cert_2_subject\""
245245
response_does_not_contain "$result" "\"subject\": \"$noc_leaf_cert_2_subject\""

integration_tests/cli/pki-noc-revocation-with-serial-number.sh

+17-17
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ echo "Add second NOC root certificate by vendor with VID = $vid"
5656
result=$(echo "$passphrase" | dcld tx pki add-noc-x509-root-cert --certificate="$noc_root_cert_1_copy_path" --from $vendor_account --yes)
5757
check_response "$result" "\"code\": 0"
5858

59-
echo "Add first NOC certificate by vendor with VID = $vid"
60-
result=$(echo "$passphrase" | dcld tx pki add-noc-x509-cert --certificate="$noc_cert_1_path" --from $vendor_account --yes)
59+
echo "Add intermidiate NOC certificate by vendor with VID = $vid"
60+
result=$(echo "$passphrase" | dcld tx pki add-noc-x509-ica-cert --certificate="$noc_cert_1_path" --from $vendor_account --yes)
6161
check_response "$result" "\"code\": 0"
6262

6363
echo "Add NOC leaf certificate by vendor with VID = $vid"
64-
result=$(echo "$passphrase" | dcld tx pki add-noc-x509-cert --certificate="$noc_leaf_cert_1_path" --from $vendor_account --yes)
64+
result=$(echo "$passphrase" | dcld tx pki add-noc-x509-ica-cert --certificate="$noc_leaf_cert_1_path" --from $vendor_account --yes)
6565
check_response "$result" "\"code\": 0"
6666

6767
test_divider
@@ -73,7 +73,7 @@ check_response "$result" "\"serialNumber\": \"$noc_root_cert_1_serial_number\""
7373
check_response "$result" "\"serialNumber\": \"$noc_root_cert_1_copy_serial_number\""
7474

7575
echo "Request all NOC certificates"
76-
result=$(dcld query pki all-noc-x509-certs)
76+
result=$(dcld query pki all-noc-x509-ica-certs)
7777
echo $result | jq
7878
check_response "$result" "\"serialNumber\": \"$noc_cert_1_serial_number\""
7979
check_response "$result" "\"serialNumber\": \"$noc_leaf_cert_1_serial_number\""
@@ -144,7 +144,7 @@ response_does_not_contain "$result" "\"serialNumber\": \"$noc_root_cert_1_serial
144144
echo $result | jq
145145

146146
echo "Request NOC certificate by VID = $vid should contain intermediate and leaf certificates"
147-
result=$(dcld query pki noc-x509-certs --vid="$vid")
147+
result=$(dcld query pki noc-x509-ica-certs --vid="$vid")
148148
echo $result | jq
149149
check_response "$result" "\"subject\": \"$noc_cert_1_subject\""
150150
check_response "$result" "\"subject\": \"$noc_cert_1_subject\""
@@ -238,7 +238,7 @@ response_does_not_contain "$result" "\"serialNumber\": \"$noc_root_cert_1_serial
238238
echo $result | jq
239239

240240
echo "Request NOC certificate by VID = $vid should be empty"
241-
result=$(dcld query pki noc-x509-certs --vid="$vid")
241+
result=$(dcld query pki noc-x509-ica-certs --vid="$vid")
242242
echo $result | jq
243243
check_response "$result" "Not Found"
244244
response_does_not_contain "$result" "\"subject\": \"$noc_cert_1_subject\""
@@ -272,16 +272,16 @@ echo "Add NOC root certificate by vendor with VID = $vid"
272272
result=$(echo "$passphrase" | dcld tx pki add-noc-x509-root-cert --certificate="$noc_root_cert_2_path" --from $vendor_account --yes)
273273
check_response "$result" "\"code\": 0"
274274

275-
echo "Add NOC certificate by vendor with VID = $vid"
276-
result=$(echo "$passphrase" | dcld tx pki add-noc-x509-cert --certificate="$noc_cert_2_path" --from $vendor_account --yes)
275+
echo "Add first intermidiate NOC certificate by vendor with VID = $vid"
276+
result=$(echo "$passphrase" | dcld tx pki add-noc-x509-ica-cert --certificate="$noc_cert_2_path" --from $vendor_account --yes)
277277
check_response "$result" "\"code\": 0"
278278

279-
echo "Add second NOC certificate by vendor with VID = $vid"
280-
result=$(echo "$passphrase" | dcld tx pki add-noc-x509-cert --certificate="$noc_cert_2_copy_path" --from $vendor_account --yes)
279+
echo "Add second intermidiate NOC certificate by vendor with VID = $vid"
280+
result=$(echo "$passphrase" | dcld tx pki add-noc-x509-ica-cert --certificate="$noc_cert_2_copy_path" --from $vendor_account --yes)
281281
check_response "$result" "\"code\": 0"
282282

283283
echo "Add leaf certificate by vendor with VID = $vid"
284-
result=$(echo "$passphrase" | dcld tx pki add-noc-x509-cert --certificate="$noc_leaf_cert_2_path" --from $vendor_account --yes)
284+
result=$(echo "$passphrase" | dcld tx pki add-noc-x509-ica-cert --certificate="$noc_leaf_cert_2_path" --from $vendor_account --yes)
285285
check_response "$result" "\"code\": 0"
286286

287287
echo "Request All NOC root certificate"
@@ -290,18 +290,18 @@ echo $result | jq
290290
check_response "$result" "\"serialNumber\": \"$noc_root_cert_2_serial_number\""
291291

292292
echo "Request all NOC certificates"
293-
result=$(dcld query pki all-noc-x509-certs)
293+
result=$(dcld query pki all-noc-x509-ica-certs)
294294
echo $result | jq
295295
check_response "$result" "\"serialNumber\": \"$noc_cert_2_serial_number\""
296296
check_response "$result" "\"serialNumber\": \"$noc_cert_2_copy_serial_number\""
297297
check_response "$result" "\"serialNumber\": \"$noc_leaf_cert_2_serial_number\""
298298

299299
echo "Try to revoke intermediate with invalid serialNumber"
300-
result=$(echo "$passphrase" | dcld tx pki revoke-noc-x509-cert --subject="$noc_cert_2_subject" --subject-key-id="$noc_cert_2_subject_key_id" --serial-number="invalid" --from $vendor_account --yes)
300+
result=$(echo "$passphrase" | dcld tx pki revoke-noc-x509-ica-cert --subject="$noc_cert_2_subject" --subject-key-id="$noc_cert_2_subject_key_id" --serial-number="invalid" --from $vendor_account --yes)
301301
check_response "$result" "\"code\": 404"
302302

303303
echo "$vendor_account Vendor revokes NOC certificate with serialNumber=$noc_cert_2_serial_number only, it should not revoke child certificates"
304-
result=$(echo "$passphrase" | dcld tx pki revoke-noc-x509-cert --subject="$noc_cert_2_subject" --subject-key-id="$noc_cert_2_subject_key_id" --serial-number="$noc_cert_2_serial_number" --from=$vendor_account --yes)
304+
result=$(echo "$passphrase" | dcld tx pki revoke-noc-x509-ica-cert --subject="$noc_cert_2_subject" --subject-key-id="$noc_cert_2_subject_key_id" --serial-number="$noc_cert_2_serial_number" --from=$vendor_account --yes)
305305
check_response "$result" "\"code\": 0"
306306

307307
echo "Request all revoked certificates should contain one intermediate certificate only"
@@ -330,7 +330,7 @@ response_does_not_contain "$result" "\"serialNumber\": \"$noc_cert_2_serial_numb
330330
echo $result | jq
331331

332332
echo "Request NOC certificate by VID = $vid should contain one intermediate and leaf certificates"
333-
result=$(dcld query pki noc-x509-certs --vid="$vid")
333+
result=$(dcld query pki noc-x509-ica-certs --vid="$vid")
334334
echo $result | jq
335335
check_response "$result" "\"subject\": \"$noc_cert_2_subject\""
336336
check_response "$result" "\"subject\": \"$noc_leaf_cert_2_subject\""
@@ -353,7 +353,7 @@ response_does_not_contain "$result" "\"serialNumber\": \"$noc_cert_2_serial_numb
353353
echo $result | jq
354354

355355
echo "$vendor_account Vendor revokes NOC certificate with serialNumber=$noc_cert_2_serial_number with \"revoke-child\" flag set to true, it should revoke child certificates too"
356-
result=$(echo "$passphrase" | dcld tx pki revoke-noc-x509-cert --subject="$noc_cert_2_subject" --subject-key-id="$noc_cert_2_subject_key_id" --serial-number="$noc_cert_2_copy_serial_number" --revoke-child=true --from=$vendor_account --yes)
356+
result=$(echo "$passphrase" | dcld tx pki revoke-noc-x509-ica-cert --subject="$noc_cert_2_subject" --subject-key-id="$noc_cert_2_subject_key_id" --serial-number="$noc_cert_2_copy_serial_number" --revoke-child=true --from=$vendor_account --yes)
357357
check_response "$result" "\"code\": 0"
358358

359359
echo "Request all revoked certificates should contain two intermediate and one leaf certificates"
@@ -384,7 +384,7 @@ response_does_not_contain "$result" "\"serialNumber\": \"$noc_cert_2_serial_numb
384384
echo $result | jq
385385

386386
echo "Request NOC certificate by VID = $vid should be empty"
387-
result=$(dcld query pki noc-x509-certs --vid="$vid")
387+
result=$(dcld query pki noc-x509-ica-certs --vid="$vid")
388388
echo $result | jq
389389
response_does_not_contain "$result" "\"subject\": \"$noc_cert_2_subject\""
390390
response_does_not_contain "$result" "\"subject\": \"$noc_leaf_cert_2_subject\""

0 commit comments

Comments
 (0)