forked from Percona-QA/percona-qa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
get_download_link_test.bats
executable file
·110 lines (81 loc) · 2.57 KB
/
get_download_link_test.bats
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
#!/usr/bin/env bats
@test "check ps" {
run ./get_download_link.sh --product ps --version 5.5
[ "$status" -eq 0 ]
run ./get_download_link.sh --product ps --version 5.6
[ "$status" -eq 0 ]
run ./get_download_link.sh --product ps --version 5.7
[ "$status" -eq 0 ]
}
@test "check pxc" {
run ./get_download_link.sh --product pxc --version 5.5
[ "$status" -eq 0 ]
run ./get_download_link.sh --product pxc --version 5.6
[ "$status" -eq 0 ]
run ./get_download_link.sh --product pxc --version 5.7
[ "$status" -eq 0 ]
}
@test "check psmdb" {
run ./get_download_link.sh --product psmdb --version 3.0
[ "$status" -eq 0 ]
run ./get_download_link.sh --product psmdb --version 3.2
[ "$status" -eq 0 ]
run ./get_download_link.sh --product psmdb --version 3.4
[ "$status" -eq 0 ]
run ./get_download_link.sh --product psmdb --version 3.6
[ "$status" -eq 0 ]
}
@test "check pt" {
run ./get_download_link.sh --product pt
[ "$status" -eq 0 ]
}
@test "check pmm-client" {
run ./get_download_link.sh --product pmm-client
[ "$status" -eq 0 ]
}
@test "check mysql" {
run ./get_download_link.sh --product mysql --version 5.5
[ "$status" -eq 0 ]
run ./get_download_link.sh --product mysql --version 5.6
[ "$status" -eq 0 ]
run ./get_download_link.sh --product mysql --version 5.7
[ "$status" -eq 0 ]
run ./get_download_link.sh --product mysql --version 8.0
[ "$status" -eq 0 ]
}
@test "check mariadb" {
run ./get_download_link.sh --product mariadb --version 10.0
[ "$status" -eq 0 ]
run ./get_download_link.sh --product mariadb --version 10.1
[ "$status" -eq 0 ]
run ./get_download_link.sh --product mariadb --version 10.2
[ "$status" -eq 0 ]
run ./get_download_link.sh --product mariadb --version 10.3
[ "$status" -eq 0 ]
}
@test "check mongodb" {
run ./get_download_link.sh --product mongodb --version 3.2
[ "$status" -eq 0 ]
run ./get_download_link.sh --product mongodb --version 3.4
[ "$status" -eq 0 ]
run ./get_download_link.sh --product mongodb --version 3.6
[ "$status" -eq 0 ]
run ./get_download_link.sh --product mongodb --version 4.0
[ "$status" -eq 0 ]
}
@test "check proxysql" {
run ./get_download_link.sh --product proxysql
[ "$status" -eq 0 ]
}
@test "check vault" {
run ./get_download_link.sh --product vault
[ "$status" -eq 0 ]
}
@test "check postgresql" {
run ./get_download_link.sh --product postgresql
[ "$status" -eq 0 ]
run ./get_download_link.sh --product postgresql --version 10.5
[ "$status" -eq 0 ]
run ./get_download_link.sh --product postgresql --version 9.6
[ "$status" -eq 0 ]
}