Skip to content

Commit 2d34d7d

Browse files
Add test case for gRPC exporter (#176)
* add test case for gRPC exporter * Use http port to validate grpc exporter, unify mocked_servers images into one repo with different tags * minor change * Add batch processor to grpc test otconfig
1 parent 0f5a3c2 commit 2d34d7d

40 files changed

+4652
-407
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Before adding a new component into AWS Otel Collector, we require contributors t
44

55
* Contributors won't need to run the test locally to provide the testing result, instead, just define it. The test case will be automatically picked by the github workflow in AWS Otel Collector repo to run integration test and soaking test on different platforms. We will notify contributors if a certain test case is failed.
66

7-
* Contributors won't need to build the validation logic for their own backends, no api keys or credentials are required. We use our own version of [mocked backend](mocked_server/) in the integration and soaking test. Inside this mock server, we only validate if the data is received but not the data accuracy. [The mechanism of testing framework](docs/mechanism-of-testing-framework.md)
7+
* Contributors won't need to build the validation logic for their own backends, no api keys or credentials are required. We use our own version of [mocked backend](mocked_servers/) in the integration and soaking test. Inside this mock server, we only validate if the data is received but not the data accuracy. [The mechanism of testing framework](docs/mechanism-of-testing-framework.md)
88

99
* Contributors won't need to define different test cases for different platforms. The point is, one test case for multiple types of tests including integration test and soaking test.
1010

mocked_server/package-lock.json

Lines changed: 0 additions & 374 deletions
This file was deleted.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM node:14
2+
3+
WORKDIR /app
4+
5+
COPY *.js ./
6+
COPY package.json ./
7+
COPY metrichandler.proto ./
8+
9+
RUN npm install
10+
11+
CMD ["node", "metrics_handler_server.js"]

0 commit comments

Comments
 (0)