Skip to content

Commit

Permalink
Revert "fix: change app_profile_id to the correct header app_profile (#…
Browse files Browse the repository at this point in the history
…318)" (#335)

This reverts commit 237b15d.
  • Loading branch information
igorbernstein2 authored Jun 9, 2020
1 parent fa0b558 commit 200cfac
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ private <ReqT, RowT> ServerStreamingCallable<ReadRowsRequest, RowT> createReadRo
public Map<String, String> extract(ReadRowsRequest readRowsRequest) {
return ImmutableMap.of(
"table_name", readRowsRequest.getTableName(),
"app_profile", readRowsRequest.getAppProfileId());
"app_profile_id", readRowsRequest.getAppProfileId());
}
})
.build(),
Expand Down Expand Up @@ -360,7 +360,7 @@ public Map<String, String> extract(
SampleRowKeysRequest sampleRowKeysRequest) {
return ImmutableMap.of(
"table_name", sampleRowKeysRequest.getTableName(),
"app_profile", sampleRowKeysRequest.getAppProfileId());
"app_profile_id", sampleRowKeysRequest.getAppProfileId());
}
})
.build(),
Expand Down Expand Up @@ -394,7 +394,7 @@ private UnaryCallable<RowMutation, Void> createMutateRowCallable() {
public Map<String, String> extract(MutateRowRequest mutateRowRequest) {
return ImmutableMap.of(
"table_name", mutateRowRequest.getTableName(),
"app_profile", mutateRowRequest.getAppProfileId());
"app_profile_id", mutateRowRequest.getAppProfileId());
}
})
.build(),
Expand Down Expand Up @@ -507,7 +507,7 @@ private UnaryCallable<MutateRowsRequest, Void> createMutateRowsBaseCallable() {
public Map<String, String> extract(MutateRowsRequest mutateRowsRequest) {
return ImmutableMap.of(
"table_name", mutateRowsRequest.getTableName(),
"app_profile", mutateRowsRequest.getAppProfileId());
"app_profile_id", mutateRowsRequest.getAppProfileId());
}
})
.build(),
Expand Down Expand Up @@ -549,7 +549,7 @@ public Map<String, String> extract(
CheckAndMutateRowRequest checkAndMutateRowRequest) {
return ImmutableMap.of(
"table_name", checkAndMutateRowRequest.getTableName(),
"app_profile", checkAndMutateRowRequest.getAppProfileId());
"app_profile_id", checkAndMutateRowRequest.getAppProfileId());
}
})
.build(),
Expand Down Expand Up @@ -583,7 +583,7 @@ private UnaryCallable<ReadModifyWriteRow, Row> createReadModifyWriteRowCallable(
public Map<String, String> extract(ReadModifyWriteRowRequest request) {
return ImmutableMap.of(
"table_name", request.getTableName(),
"app_profile", request.getAppProfileId());
"app_profile_id", request.getAppProfileId());
}
})
.build(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ private void verifyHeaderSent() {
String requestParamsvalue = metadata.get(X_GOOG_REQUEST_PARAMS_KEY);
assertThat(requestParamsvalue).containsMatch("(^|.*&)table_name=" + TABLE_NAME + "($|&.*)");
assertThat(requestParamsvalue)
.containsMatch("(^|.*&)app_profile=" + APP_PROFILE_ID + "($|&.*)");
.containsMatch("(^|.*&)app_profile_id=" + APP_PROFILE_ID + "($|&.*)");

String apiClientValue = metadata.get(API_CLIENT_HEADER_KEY);
assertThat(apiClientValue).containsMatch("gl-java/[.\\d_]+");
Expand Down

0 comments on commit 200cfac

Please sign in to comment.