Skip to content

Commit 7b6a004

Browse files
authored
Add support from Mongo 7 and 8 (#484)
1 parent f92b2ad commit 7b6a004

File tree

2 files changed

+22
-9
lines changed

2 files changed

+22
-9
lines changed

sem-service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ declare -A sem_services
1515
sem_services['memcached']="1.5 1.6"
1616
sem_services['mysql']="5.5 5.6.51 5.6 5.6.50 5.7.13 5.7.25 5.7.27 5.7.31 5.7.32 5.7.33 5.7 5 8.0.16 8.0.22 8.0.23 8.0 8"
1717
sem_services['redis']="2.8.23 2.8 2 3.2.4 3.2.12 3.2 3 4.0.12 4.0.14 4.0 4 5.0.6 5.0.9 5.0 5 6.0.5 6.0.8 6.0 6.2.1 6.2 6.2.7 6 7.0.5 7.0 7.2.4 7.2 7"
18-
sem_services['mongo']="3.2.1 3.2 3.6.20 3.6 3 4.0.20 4.0 4.1.13 4.1 4.2.10 4.2.13 4.2 4.4.1 4.4.4 4.4 4 5.0.1 5.0.2 5.0.3 5.0.4 5.0.5 5.0.6 5.0.7 5.0.8 5.0.9 5.0 5 6.0.8 6.0 6"
18+
sem_services['mongo']="3.2.1 3.2 3.6.20 3.6 3 4.0.20 4.0 4.1.13 4.1 4.2.10 4.2.13 4.2 4.4.1 4.4.4 4.4 4 5.0.1 5.0.2 5.0.3 5.0.4 5.0.5 5.0.6 5.0.7 5.0.8 5.0.9 5.0 5 6.0.8 6.0 6 7.0.18 7.0 7 8.0.6 8.0 8"
1919
sem_services['elasticsearch']="1.7.6 1.7 1 2.4.6 2.4 2 5.4.3 5.4 5.5.2 5.5 5.6.16 5.6 5 6.5.1 6.5.4 6.5 6.6 6.8.1 6.8.13 6.8 6 7.1.1 7.1 7.2.0 7.2 7.2.1 7.2 7.3.1 7.3.2 7.3 7.4.2 7.4 7.5.0 7.5.1 7.5.2 7.5 7.6.0 7.6.2 7.6 7.7.0 7.7.1 7.7 7.8.1 7.8 7.9.0 7.9.2 7.9.3 7.9 7.10.0 7.11.2 7.11 7.12.0 7.12 7.17.7 7 8.5.1 8.5.3 8.9.2 8.11.3"
2020
sem_services['postgres']="9.4.26 9.4 9.5.15 9.5.23 9.5 9.6.6 9.6.11 9.6.18 9.6.19 9.6 9 10.0 10.5 10.6 10.7 10.11 10.12 10.13 10.14 10.16 10 11.0 11.2 11.5 11.6 11.7 11.8 11.9 11.11 11 12.1 12.2 12.3 12.4 12.6 12 13.0 13.2 13 14 15.1 15 16 17.2 17"
2121
sem_services['rabbitmq']="3.6.16 3.6 3.8.2 3.8.9 3.8.14 3.8 3"

tests/sem_service/mongodb

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,44 +29,57 @@ echo "show dbs" | mongo -u "xxx" -p "xxx" 127.0.0.1 --authenticationDatabase "a
2929
sem-service status mongodb
3030
sem-service stop mongodb
3131
sem-service stop mongodb
32-
sem-service start mongodb 5.0.1 --username=xxx --password=xxx
32+
sem-service start mongodb 5.0.9 --username=xxx --password=xxx
3333
sleep 3
3434
echo "show dbs" | mongo -u "xxx" -p "xxx" 127.0.0.1 --authenticationDatabase "admin"
3535

3636
sem-service status mongodb
3737
sem-service stop mongodb
3838
sem-service stop mongodb
39-
sem-service start mongodb 5.0.8 --username=xxx --password=xxx
39+
sem-service start mongodb 5 --username=xxx --password=xxx
4040
sleep 3
4141
echo "show dbs" | mongo -u "xxx" -p "xxx" 127.0.0.1 --authenticationDatabase "admin"
4242

4343
sem-service status mongodb
4444
sem-service stop mongodb
4545
sem-service stop mongodb
46-
sem-service start mongodb 5.0.9 --username=xxx --password=xxx
47-
sleep 3
46+
sem-service start mongodb 6.0.8 --username=xxx --password=xxx
47+
sleep 5
4848
echo "show dbs" | mongo -u "xxx" -p "xxx" 127.0.0.1 --authenticationDatabase "admin"
4949

5050
sem-service status mongodb
5151
sem-service stop mongodb
5252
sem-service stop mongodb
53-
sem-service start mongodb 5 --username=xxx --password=xxx
54-
sleep 3
53+
sem-service start mongodb 6 --username=xxx --password=xxx
54+
sleep 5
5555
echo "show dbs" | mongo -u "xxx" -p "xxx" 127.0.0.1 --authenticationDatabase "admin"
5656

5757
sem-service status mongodb
5858
sem-service stop mongodb
5959
sem-service stop mongodb
60-
sem-service start mongodb 6.0.8 --username=xxx --password=xxx
60+
sem-service start mongodb 7.0.18 --username=xxx --password=xxx
6161
sleep 5
6262
echo "show dbs" | mongo -u "xxx" -p "xxx" 127.0.0.1 --authenticationDatabase "admin"
6363

6464
sem-service status mongodb
6565
sem-service stop mongodb
6666
sem-service stop mongodb
67-
sem-service start mongodb 6 --username=xxx --password=xxx
67+
sem-service start mongodb 7 --username=xxx --password=xxx
6868
sleep 5
6969
echo "show dbs" | mongo -u "xxx" -p "xxx" 127.0.0.1 --authenticationDatabase "admin"
7070

71+
sem-service status mongodb
72+
sem-service stop mongodb
73+
sem-service stop mongodb
74+
sem-service start mongodb 8.0.6 --username=xxx --password=xxx
75+
sleep 5
76+
echo "show dbs" | mongo -u "xxx" -p "xxx" 127.0.0.1 --authenticationDatabase "admin"
77+
78+
sem-service status mongodb
79+
sem-service stop mongodb
80+
sem-service stop mongodb
81+
sem-service start mongodb 8 --username=xxx --password=xxx
82+
sleep 5
83+
echo "show dbs" | mongo -u "xxx" -p "xxx" 127.0.0.1 --authenticationDatabase "admin"
7184

7285
cat /tmp/toolbox_semservice

0 commit comments

Comments
 (0)