You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: internal/sidekick/internal/parser/discovery/discovery_test.go
+24-49Lines changed: 24 additions & 49 deletions
Original file line number
Diff line number
Diff line change
@@ -27,33 +27,7 @@ import (
27
27
)
28
28
29
29
funcTestInfo(t*testing.T) {
30
-
got, err:=PublicCaDisco(t, nil)
31
-
iferr!=nil {
32
-
t.Fatal(err)
33
-
}
34
-
wantName:="publicca"
35
-
wantTitle:="Public Certificate Authority API"
36
-
wantDescription:="The Public Certificate Authority API may be used to create and manage ACME external account binding keys associated with Google Trust Services' publicly trusted certificate authority. "
t.Fatalf("expected message %s in the API model", id)
147
121
}
148
122
want:=&api.Message{
149
-
Name: "ExternalAccountKey",
123
+
Name: "WeightedBackendService",
150
124
ID: id,
151
125
Package: "",
152
-
Documentation: "A representation of an ExternalAccountKey used for [external account binding](https://tools.ietf.org/html/rfc8555#section-7.3.4) within ACME.",
126
+
Documentation: "In contrast to a single BackendService in HttpRouteAction to which all matching traffic is directed to, WeightedBackendService allows traffic to be split across multiple backend services. The volume of traffic for each backend service is proportional to the weight specified in each WeightedBackendService",
153
127
Fields: []*api.Field{
154
128
{
155
-
Name: "b64MacKey",
156
-
JSONName: "b64MacKey",
157
-
Documentation: "Output only. Base64-URL-encoded HS256 key. It is generated by the PublicCertificateAuthorityService when the ExternalAccountKey is created",
158
-
Typez: api.BYTES_TYPE,
159
-
TypezID: "bytes",
160
-
},
161
-
{
162
-
Name: "keyId",
163
-
JSONName: "keyId",
164
-
Documentation: "Output only. Key ID. It is generated by the PublicCertificateAuthorityService when the ExternalAccountKey is created",
129
+
Name: "backendService",
130
+
JSONName: "backendService",
131
+
Documentation: "The full or partial URL to the default BackendService resource. Before forwarding the request to backendService, the load balancer applies any relevant headerActions specified as part of this backendServiceWeight.",
165
132
Typez: api.STRING_TYPE,
166
133
TypezID: "string",
167
134
},
135
+
// TODO(#1850) - parse object fields.
136
+
// {
137
+
// Name: "headerAction",
138
+
// JSONName: "headerAction",
139
+
// Documentation: "Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. headerAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.",
Documentation: "Specifies the fraction of traffic sent to a backend service, computed as weight / (sum of all weightedBackendService weights in routeAction) . The selection of a backend service is determined only for new traffic. Once a user's request has been directed to a backend service, subsequent requests are sent to the same backend service as determined by the backend service's session affinity policy. Don't configure session affinity if you're using weighted traffic splitting. If you do, the weighted traffic splitting configuration takes precedence. The value must be from 0 to 1000.",
0 commit comments