Skip to content

Commit 37b9ec6

Browse files
authored
Merge pull request #2021 from murgatroid99/grpc-js-xds_missing_files
grpc-js-xds: Add more missing files, add distrib test
2 parents a571f35 + bc28ee4 commit 37b9ec6

File tree

4 files changed

+59
-1
lines changed

4 files changed

+59
-1
lines changed

packages/grpc-js-xds/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@grpc/grpc-js-xds",
3-
"version": "1.5.1",
3+
"version": "1.5.2",
44
"description": "Plugin for @grpc/grpc-js. Adds the xds:// URL scheme and associated features.",
55
"main": "build/src/index.js",
66
"scripts": {
@@ -55,6 +55,7 @@
5555
"files": [
5656
"src/**/*.ts",
5757
"build/src/**/*.{js,d.ts,js.map}",
58+
"deps/envoy-api/envoy/admin/v3/**/*.proto",
5859
"deps/envoy-api/envoy/api/v2/**/*.proto",
5960
"deps/envoy-api/envoy/config/**/*.proto",
6061
"deps/envoy-api/envoy/service/**/*.proto",

run-tests.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ do
7575

7676
# npm test calls nyc gulp test
7777
npm test || FAILED="true"
78+
79+
./test/distrib/run-distrib-test.sh || FAILED="true"
7880
done
7981

8082
set +ex

test/distrib/distrib-test.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/*
2+
* Copyright 2022 gRPC authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*
16+
*/
17+
18+
const grpcJs = require('@grpc/grpc-js');
19+
20+
const grpcJsXds = require('@grpc/grpc-js-xds');
21+
22+
const protoLoader = require('@grpc/proto-loader');

test/distrib/run-distrib-test.sh

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/bin/bash
2+
# Copyright 2022 gRPC authors.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
16+
set -ex
17+
18+
cd $(dirname $0)
19+
base=$(pwd)
20+
21+
cd ../../packages/grpc-js
22+
npm pack
23+
cd ../grpc-js-xds
24+
npm pack
25+
cd ../proto-loader
26+
npm pack
27+
28+
cd $base
29+
npm install ../../packages/grpc-js/grpc-grpc-js-*.tgz
30+
npm install ../../packages/grpc-js-xds/grpc-grpc-js-xds-*.tgz
31+
npm install ../../packages/proto-loader/grpc-proto-loader-*.tgz
32+
33+
node ./distrib-test.js

0 commit comments

Comments
 (0)