Skip to content

Commit 31f8dad

Browse files
committed
Expose grpc ports correctly in tests
1 parent 7644662 commit 31f8dad

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

ci/docker-compose-wcs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ services:
1313
image: semitechnologies/weaviate:${WEAVIATE_VERSION}
1414
ports:
1515
- 8085:8085
16+
- 50056:50056
1617
restart: on-failure:0
1718
environment:
19+
GRPC_PORT: 50056
1820
PERSISTENCE_DATA_PATH: '/var/lib/weaviate'
1921
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED: 'false'
2022
AUTHENTICATION_OIDC_ENABLED: 'true'

src/connection/journey.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ describe('connection', () => {
137137
it('makes a logged-in request with API key', async () => {
138138
const client = await weaviate.connectToLocal({
139139
port: 8085,
140+
grpcPort: 50056,
140141
authCredentials: new ApiKey('my-secret-key'),
141142
});
142143

@@ -153,6 +154,7 @@ describe('connection', () => {
153154
it('makes a logged-in request with API key as string', async () => {
154155
const client = await weaviate.connectToLocal({
155156
port: 8085,
157+
grpcPort: 50056,
156158
authCredentials: 'my-secret-key',
157159
});
158160

@@ -188,6 +190,7 @@ describe('connection', () => {
188190
const accessToken = (dummy as any).oidcAuth?.accessToken || '';
189191
const client = await weaviate.connectToLocal({
190192
port: 8085,
193+
grpcPort: 50056,
191194
authCredentials: new AuthAccessTokenCredentials({
192195
accessToken: accessToken,
193196
expiresIn: 900,
@@ -254,6 +257,7 @@ describe('connection', () => {
254257
try {
255258
await weaviate.connectToLocal({
256259
port: 8085,
260+
grpcPort: 50056,
257261
});
258262
throw new Error('Promise should have been rejected');
259263
} catch (error: any) {

0 commit comments

Comments
 (0)