Skip to content

Commit

Permalink
fix: comment, request params
Browse files Browse the repository at this point in the history
  • Loading branch information
miraleung committed May 18, 2021
1 parent 98e24ce commit a156256
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
3 changes: 1 addition & 2 deletions test/integration/apis/kms/v1/cloudkms_test_mixins_v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ documentation:
# Test the overriding of comments.
- selector: google.iam.v1.IAMPolicy.TestIamPermissions
description: |-
This is a different comment for TestIamPermissions in the yaml file
that should clobber the documentation in iam_policy.proto.
This is a different comment for TestIamPermissions in the yaml file that should clobber the documentation in iam_policy.proto.
http:
rules:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3333,7 +3333,7 @@ public final UnaryCallable<GetLocationRequest, Location> getLocationCallable() {

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* This is a different comment for TestIamPermissions in the yaml filethat should clobber the
* This is a different comment for TestIamPermissions in the yaml file that should clobber the
* documentation in iam_policy.proto.
*
* <p>Sample code:
Expand All @@ -3359,7 +3359,7 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* This is a different comment for TestIamPermissions in the yaml filethat should clobber the
* This is a different comment for TestIamPermissions in the yaml file that should clobber the
* documentation in iam_policy.proto.
*
* <p>Sample code:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@ public class KeyManagementServiceClientTest {
@BeforeClass
public static void startStaticServer() {
mockKeyManagementService = new MockKeyManagementService();
mockLocations = new MockLocations();
mockIAMPolicy = new MockIAMPolicy();
mockLocations = new MockLocations();
mockServiceHelper =
new MockServiceHelper(
UUID.randomUUID().toString(),
Arrays.<MockGrpcService>asList(mockKeyManagementService, mockLocations, mockIAMPolicy));
Arrays.<MockGrpcService>asList(mockKeyManagementService, mockIAMPolicy, mockLocations));
mockServiceHelper.start();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -783,8 +783,8 @@ public Map<String, String> extract(GetIamPolicyRequest request) {
@Override
public Map<String, String> extract(ListLocationsRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("display_name", String.valueOf(request.getDisplayName()));
params.put("location_id", String.valueOf(request.getLocationId()));
params.put("filter", String.valueOf(request.getFilter()));
params.put("page_size", String.valueOf(request.getPageSize()));
return params.build();
}
})
Expand Down

0 comments on commit a156256

Please sign in to comment.