Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit fbf4f84

Browse files
committedNov 5, 2024·
Renamed endpoints for noc certificates
1 parent f22ed9f commit fbf4f84

File tree

4 files changed

+173
-172
lines changed

4 files changed

+173
-172
lines changed
 

‎integration_tests/grpc_rest/pki/noc_cert_helpers.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func GetNocX509Cert(suite *utils.TestSuite, subject string, subjectKeyID string)
3030
var resp pkitypes.QueryGetNocCertificatesResponse
3131
err := suite.QueryREST(
3232
fmt.Sprintf(
33-
"/dcl/pki/noc-certificates/%s/%s",
33+
"/dcl/pki/all-noc-certificates/%s/%s",
3434
url.QueryEscape(subject), url.QueryEscape(subjectKeyID),
3535
),
3636
&resp,
@@ -67,7 +67,7 @@ func GetAllNocX509CertsBySubject(suite *utils.TestSuite, subject string) (*pkity
6767
var resp pkitypes.QueryGetNocCertificatesBySubjectResponse
6868
err := suite.QueryREST(
6969
fmt.Sprintf(
70-
"/dcl/pki/noc-certificates/%s",
70+
"/dcl/pki/all-noc-certificates/%s",
7171
url.QueryEscape(subject),
7272
),
7373
&resp,
@@ -108,7 +108,7 @@ func GetAllNocX509certsBySubjectKeyID(suite *utils.TestSuite, subjectKeyID strin
108108
func getAllNocX509Certs(suite *utils.TestSuite, subjectKeyID string) (res []pkitypes.NocCertificates, err error) {
109109
if suite.Rest {
110110
var resp pkitypes.QueryNocCertificatesResponse
111-
err := suite.QueryREST(fmt.Sprintf("/dcl/pki/noc-certificates?subjectKeyId=%s", subjectKeyID), &resp)
111+
err := suite.QueryREST(fmt.Sprintf("/dcl/pki/all-noc-certificates?subjectKeyId=%s", subjectKeyID), &resp)
112112
if err != nil {
113113
return nil, err
114114
}
@@ -290,7 +290,7 @@ func GetRevokedNocX509RootCert(suite *utils.TestSuite, subject string, subjectKe
290290
var resp pkitypes.QueryGetRevokedNocRootCertificatesResponse
291291
err := suite.QueryREST(
292292
fmt.Sprintf(
293-
"/dcl/pki/evoked-noc-root-certificates/%s/%s",
293+
"/dcl/pki/revoked-noc-root-certificates/%s/%s",
294294
url.QueryEscape(subject), url.QueryEscape(subjectKeyID),
295295
),
296296
&resp,
@@ -327,7 +327,7 @@ func GetRevokedNocX509IcaCert(suite *utils.TestSuite, subject string, subjectKey
327327
var resp pkitypes.QueryGetRevokedNocIcaCertificatesResponse
328328
err := suite.QueryREST(
329329
fmt.Sprintf(
330-
"/dcl/pki/evoked-noc-ica-certificates/%s/%s",
330+
"/dcl/pki/revoked-noc-ica-certificates/%s/%s",
331331
url.QueryEscape(subject), url.QueryEscape(subjectKeyID),
332332
),
333333
&resp,

‎proto/zigbeealliance/distributedcomplianceledger/pki/query.proto

+3-3
Original file line numberDiff line numberDiff line change
@@ -130,15 +130,15 @@ service Query {
130130

131131
// Queries a list of NocCertificates items.
132132
rpc NocCertificatesAll(QueryNocCertificatesRequest) returns (QueryNocCertificatesResponse) {
133-
option (google.api.http).get = "/dcl/pki/noc-certificates";
133+
option (google.api.http).get = "/dcl/pki/all-noc-certificates";
134134
}
135135
// Queries a NocCertificatesBySubject by index.
136136
rpc NocCertificatesBySubject(QueryGetNocCertificatesBySubjectRequest) returns (QueryGetNocCertificatesBySubjectResponse) {
137-
option (google.api.http).get = "/dcl/pki/noc-certificates/{subject}";
137+
option (google.api.http).get = "/dcl/pki/all-noc-certificates/{subject}";
138138
}
139139
// Queries a NocCertificates by index.
140140
rpc NocCertificates(QueryGetNocCertificatesRequest) returns (QueryGetNocCertificatesResponse) {
141-
option (google.api.http).get = "/dcl/pki/noc-certificates/{subject}/{subjectKeyId}";
141+
option (google.api.http).get = "/dcl/pki/all-noc-certificates/{subject}/{subjectKeyId}";
142142
}
143143

144144
// Queries a NocCertificatesByVidAndSkid by index.

‎x/pki/types/query.pb.go

+162-161
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎x/pki/types/query.pb.gw.go

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
Please sign in to comment.