Skip to content

Commit 07e668a

Browse files
Make it clearer to init tests
Signed-off-by: Xavier Geerinck <[email protected]>
1 parent e4f8245 commit 07e668a

File tree

2 files changed

+30
-8
lines changed

2 files changed

+30
-8
lines changed

scripts/test-e2e.sh

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,7 @@
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
1313

14-
echo "Starting Docker"
15-
sudo service docker start
16-
17-
# Start MQTT for Binding tests
18-
# Dashboard: http://localhost:18083 (user: admin, pass: public)
19-
# Ports: 1883 = TCP MQTT Port | 8081 = HTTP API | 8083 = MQTT/SSL Port | 8883 = MQTT/Websocket/SSL Port | 8084 = MQTT/Websocket Port | 18083 = Dashboard
20-
echo "Starting MQTT Broker for specific Bindings"
21-
docker run -d --rm --name emqx -p 1883:1883 -p 8081:8081 -p 8083:8083 -p 8883:8883 -p 8084:8084 -p 18083:18083 emqx/emqx
14+
./test-init.sh
2215

2316
# Start gRPC tests
2417
echo "Running gRPC tests"

scripts/test-init.sh

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/usr/bin/env bash
2+
#
3+
# Copyright 2022 The Dapr Authors
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+
# http://www.apache.org/licenses/LICENSE-2.0
8+
# Unless required by applicable law or agreed to in writing, software
9+
# distributed under the License is distributed on an "AS IS" BASIS,
10+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
# See the License for the specific language governing permissions and
12+
# limitations under the License.
13+
14+
echo "Starting Docker"
15+
sudo service docker start
16+
17+
# Start MQTT for Binding tests
18+
# Dashboard: http://localhost:18083 (user: admin, pass: public)
19+
# Ports: 1883 = TCP MQTT Port | 8081 = HTTP API | 8083 = MQTT/SSL Port | 8883 = MQTT/Websocket/SSL Port | 8084 = MQTT/Websocket Port | 18083 = Dashboard
20+
echo "Starting MQTT Broker"
21+
docker run -d --rm --name emqx -p 1883:1883 -p 8081:8081 -p 8083:8083 -p 8883:8883 -p 8084:8084 -p 18083:18083 emqx/emqx
22+
23+
echo "Starting Rabbit MQ"
24+
docker run -d --rm --hostname my-rabbitmq --name my-rabbitmq \
25+
-p 0.0.0.0:5672:5672 -p 0.0.0.0:15672:15672 \
26+
rabbitmq:3-management
27+
28+
echo "Starting MongoDB"
29+
docker run -d --rm --name mongodb -p 27017:27017 mongo

0 commit comments

Comments
 (0)