-
Notifications
You must be signed in to change notification settings - Fork 15
/
test.bats
143 lines (117 loc) · 3.03 KB
/
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
#!/usr/bin/env bats
# Copyright © 2024 Akamai Technologies, Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
@test "httpie: http is executable" {
run http --help
[ "$status" -eq 0 ]
}
@test "jq is executable" {
run jq --help
[ "$status" -eq 0 ]
}
@test "terraform is executable" {
run terraform -help
[ "$status" -eq 0 ]
}
@test "cli: akamai is executable" {
run akamai help
[ "$status" -eq 0 ]
}
@test "cli: adaptive-acceleration is executable" {
# A2 does not have a --help
run akamai adaptive-acceleration
[ "$status" -eq 1 ]
[[ "$output" =~ "ERROR: missing adaptive-acceleration command." ]]
}
@test "cli: api-gateway: api-gateway is executable" {
run akamai api-gateway --help
[ "$status" -eq 0 ]
}
@test "cli: api-gateway: api-keys is executable" {
run akamai api-keys --help
[ "$status" -eq 0 ]
}
@test "cli: api-gateway: api-security is executable" {
run akamai api-security --help
[ "$status" -eq 0 ]
}
@test "cli: cloudlets is executable" {
run akamai cloudlets --help
[ "$status" -eq 0 ]
}
@test "cli: cps is executable" {
# does not use --help, but help subcommand
run akamai cps help
[ "$status" -eq 0 ]
}
@test "cli: dns is executable" {
run akamai dns --help
[ "$status" -eq 0 ]
}
@test "cli: eaa is executable" {
run akamai eaa --help
[ "$status" -eq 0 ]
}
@test "cli: etp is executable" {
run akamai etp --help
[ "$status" -eq 0 ]
}
@test "cli: edgeworkers is executable" {
run akamai edgeworkers --help
[ "$status" -eq 0 ]
}
@test "cli: firewall: firewall is executable" {
run akamai firewall --help
[ "$status" -eq 0 ]
}
@test "cli: firewall: site-shield is executable" {
run akamai site-shield --help
[ "$status" -eq 0 ]
}
@test "cli: image-manager is executable" {
run akamai image-manager --help
[ "$status" -eq 0 ]
}
@test "cli: jsonnet is executable" {
run akamai jsonnet --help
[ "$status" -eq 0 ]
}
@test "cli: onboard is executable" {
run akamai onboard --help
[ "$status" -eq 0 ]
}
@test "cli: property-manager: pipeline is executable" {
run akamai pipeline --help
[ "$status" -eq 0 ]
}
@test "cli: property-manager: snippets is executable" {
run akamai snippets --help
[ "$status" -eq 0 ]
}
@test "cli: purge is executable" {
run akamai purge --help
[ "$status" -eq 0 ]
}
@test "cli: sandbox is executable" {
run akamai sandbox --help
[ "$status" -eq 0 ]
}
@test "cli: terraform is executable" {
run akamai terraform help
[ "$status" -eq 0 ]
}
@test "cli: gtm is executable" {
run akamai gtm --help
[ "$status" -eq 0 ]
}