@@ -166,6 +166,10 @@ func TestConvertRoute(t *testing.T) {
166
166
EnableGoogleCloudServerlessAuthentication : types .BoolValue (true ),
167
167
TLSCustomCAKeyPairID : types .StringValue ("custom-ca-1" ),
168
168
KubernetesServiceAccountTokenFile : types .StringValue ("/path/to/token" ),
169
+ BearerTokenFormat : types .StringValue ("idp_access_token" ),
170
+ IDPAccessTokenAllowedAudiences : types .ListValueMust (types .StringType , []attr.Value {
171
+ types .StringValue ("X" ), types .StringValue ("Y" ), types .StringValue ("Z" ),
172
+ }),
169
173
}
170
174
171
175
actual , diag := provider .ConvertRouteToPB (context .Background (), & input )
@@ -191,6 +195,10 @@ func TestConvertRoute(t *testing.T) {
191
195
EnableGoogleCloudServerlessAuthentication : true ,
192
196
TlsCustomCaKeyPairId : P ("custom-ca-1" ),
193
197
KubernetesServiceAccountTokenFile : P ("/path/to/token" ),
198
+ BearerTokenFormat : pb .BearerTokenFormat_BEARER_TOKEN_FORMAT_IDP_ACCESS_TOKEN .Enum (),
199
+ IdpAccessTokenAllowedAudiences : & pb.Route_StringList {
200
+ Values : []string {"X" , "Y" , "Z" },
201
+ },
194
202
}
195
203
196
204
if diff := cmp .Diff (expected , actual , protocmp .Transform ()); diff != "" {
0 commit comments