-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Init mock request for server/bidi streaming method in test (#313)
* fix: make sure npm run baseline creates proper symlinks * init mock request for server/bidi streaming method test * update baseline * regenerate package.json.baseline * add bigquery to baseline test * baselin test Co-authored-by: Alexander Fenster <github@fenster.name>
- Loading branch information
1 parent
5bd8a48
commit e716513
Showing
34 changed files
with
2,655 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
**/*.log | ||
**/node_modules | ||
.coverage | ||
coverage | ||
.nyc_output | ||
docs/ | ||
out/ | ||
build/ | ||
system-test/secrets.js | ||
system-test/*key.json | ||
*.lock | ||
.DS_Store | ||
package-lock.json | ||
__pycache__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
// Copyright 2019 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// https://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// | ||
// ** This file is automatically generated by gapic-generator-typescript. ** | ||
// ** https://github.com/googleapis/gapic-generator-typescript ** | ||
// ** All changes to this file may be overwritten. ** | ||
|
||
'use strict'; | ||
|
||
module.exports = { | ||
opts: { | ||
readme: './README.md', | ||
package: './package.json', | ||
template: './node_modules/jsdoc-fresh', | ||
recurse: true, | ||
verbose: true, | ||
destination: './docs/' | ||
}, | ||
plugins: [ | ||
'plugins/markdown', | ||
'jsdoc-region-tag' | ||
], | ||
source: { | ||
excludePattern: '(^|\\/|\\\\)[._]', | ||
include: [ | ||
'build/src', | ||
'protos' | ||
], | ||
includePattern: '\\.js$' | ||
}, | ||
templates: { | ||
copyright: 'Copyright 2019 Google, LLC.', | ||
includeDate: false, | ||
sourceFiles: false, | ||
systemName: 'storage', | ||
theme: 'lumen', | ||
default: { | ||
outputSourceFiles: false | ||
} | ||
}, | ||
markdown: { | ||
idInHeadings: true | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"enable-source-maps": true, | ||
"throw-deprecation": true, | ||
"timeout": 10000 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Storage: Nodejs Client |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"recurse": true, | ||
"skip": [ | ||
"https://codecov.io/gh/googleapis/", | ||
"www.googleapis.com", | ||
"img.shields.io" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"name": "storage", | ||
"version": "0.1.0", | ||
"description": "Storage client for Node.js", | ||
"repository": "googleapis/nodejs-storage", | ||
"license": "Apache-2.0", | ||
"author": "Google LLC", | ||
"files": [ | ||
"build/src", | ||
"build/protos" | ||
], | ||
"main": "build/src/index.js", | ||
"scripts": { | ||
"clean": "gts clean", | ||
"compile": "tsc -p . && cp -r protos build/", | ||
"compile-protos": "compileProtos src", | ||
"docs": "jsdoc -c .jsdoc.js", | ||
"docs-test": "linkinator docs", | ||
"fix": "gts fix", | ||
"lint": "gts check", | ||
"predocs-test": "npm run docs", | ||
"prepare": "npm run compile-protos && npm run compile", | ||
"system-test": "c8 mocha build/system-test", | ||
"test": "c8 mocha build/test" | ||
}, | ||
"dependencies": { | ||
"google-gax": "^1.14.2" | ||
}, | ||
"devDependencies": { | ||
"@types/mocha": "^5.2.7", | ||
"@types/node": "^12.12.29", | ||
"c8": "^7.1.0", | ||
"gts": "^1.1.2", | ||
"jsdoc": "^3.6.3", | ||
"jsdoc-fresh": "^1.0.2", | ||
"jsdoc-region-tag": "^1.0.4", | ||
"linkinator": "^2.0.3", | ||
"mocha": "^6.2.2", | ||
"pack-n-play": "^1.0.0-2", | ||
"null-loader": "^3.0.0", | ||
"ts-loader": "^6.2.1", | ||
"typescript": "~3.7.5", | ||
"webpack": "^4.42.0", | ||
"webpack-cli": "^3.3.11" | ||
}, | ||
"engines": { | ||
"node": ">=8.13.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
package.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
google/cloud/bigquery/storage/v1beta1/arrow.proto | ||
google/cloud/bigquery/storage/v1beta1/avro.proto | ||
google/cloud/bigquery/storage/v1beta1/read_options.proto | ||
google/api/http.proto | ||
google/protobuf/descriptor.proto | ||
google/api/annotations.proto | ||
google/api/client.proto | ||
google/api/field_behavior.proto | ||
google/api/resource.proto | ||
google/protobuf/timestamp.proto | ||
google/cloud/bigquery/storage/v1beta1/table_reference.proto | ||
google/protobuf/empty.proto | ||
google/cloud/bigquery/storage/v1beta1/storage.proto |
37 changes: 37 additions & 0 deletions
37
baselines/bigquery-storage/protos/google/cloud/bigquery/storage/v1beta1/arrow.proto.baseline
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// Copyright 2019 Google LLC. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// | ||
|
||
syntax = "proto3"; | ||
|
||
package google.cloud.bigquery.storage.v1beta1; | ||
|
||
option go_package = "google.golang.org/genproto/googleapis/cloud/bigquery/storage/v1beta1;storage"; | ||
option java_outer_classname = "ArrowProto"; | ||
option java_package = "com.google.cloud.bigquery.storage.v1beta1"; | ||
|
||
// Arrow schema. | ||
message ArrowSchema { | ||
// IPC serialized Arrow schema. | ||
bytes serialized_schema = 1; | ||
} | ||
|
||
// Arrow RecordBatch. | ||
message ArrowRecordBatch { | ||
// IPC serialized Arrow RecordBatch. | ||
bytes serialized_record_batch = 1; | ||
|
||
// The count of rows in the returning block. | ||
int64 row_count = 2; | ||
} |
38 changes: 38 additions & 0 deletions
38
baselines/bigquery-storage/protos/google/cloud/bigquery/storage/v1beta1/avro.proto.baseline
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// Copyright 2019 Google LLC. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// | ||
|
||
syntax = "proto3"; | ||
|
||
package google.cloud.bigquery.storage.v1beta1; | ||
|
||
option go_package = "google.golang.org/genproto/googleapis/cloud/bigquery/storage/v1beta1;storage"; | ||
option java_outer_classname = "AvroProto"; | ||
option java_package = "com.google.cloud.bigquery.storage.v1beta1"; | ||
|
||
// Avro schema. | ||
message AvroSchema { | ||
// Json serialized schema, as described at | ||
// https://avro.apache.org/docs/1.8.1/spec.html | ||
string schema = 1; | ||
} | ||
|
||
// Avro rows. | ||
message AvroRows { | ||
// Binary serialized rows in a block. | ||
bytes serialized_binary_rows = 1; | ||
|
||
// The count of rows in the returning block. | ||
int64 row_count = 2; | ||
} |
41 changes: 41 additions & 0 deletions
41
...bigquery-storage/protos/google/cloud/bigquery/storage/v1beta1/read_options.proto.baseline
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// Copyright 2019 Google LLC. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// | ||
|
||
syntax = "proto3"; | ||
|
||
package google.cloud.bigquery.storage.v1beta1; | ||
|
||
option go_package = "google.golang.org/genproto/googleapis/cloud/bigquery/storage/v1beta1;storage"; | ||
option java_package = "com.google.cloud.bigquery.storage.v1beta1"; | ||
|
||
// Options dictating how we read a table. | ||
message TableReadOptions { | ||
// Optional. Names of the fields in the table that should be read. If empty, | ||
// all fields will be read. If the specified field is a nested field, all the | ||
// sub-fields in the field will be selected. The output field order is | ||
// unrelated to the order of fields in selected_fields. | ||
repeated string selected_fields = 1; | ||
|
||
// Optional. SQL text filtering statement, similar to a WHERE clause in | ||
// a query. Currently, only a single predicate that is a comparison between | ||
// a column and a constant value is supported. Aggregates are not supported. | ||
// | ||
// Examples: "int_field > 5" | ||
// "date_field = CAST('2014-9-27' as DATE)" | ||
// "nullable_field is not NULL" | ||
// "st_equals(geo_field, st_geofromtext("POINT(2, 2)"))" | ||
// "numeric_field BETWEEN 1.0 AND 5.0" | ||
string row_restriction = 2; | ||
} |
Oops, something went wrong.