Skip to content

Commit db31a2c

Browse files
committed
fix test
Signed-off-by: kerthcet <kerthcet@gmail.com>
1 parent fb775e9 commit db31a2c

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

python/tests/test_e2e.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -183,40 +183,40 @@ def test_package_manager_debian(self, server):
183183
"""Test apt package manager on Debian daemons"""
184184
result = server.execute_command(
185185
"daemon-debian-1",
186-
"apt-get update && apt-get install -y htop",
186+
"apt-get update && apt-get install -y curl",
187187
timeout=60
188188
)
189189
assert result.success
190190

191-
result = server.execute_command("daemon-debian-1", "htop --version", timeout=5)
191+
result = server.execute_command("daemon-debian-1", "curl --version", timeout=5)
192192
assert result.success
193-
assert "htop" in result.stdout.lower()
193+
assert "curl" in result.stdout
194194

195195
def test_package_manager_alpine(self, server):
196196
"""Test apk package manager on Alpine daemons"""
197197
result = server.execute_command(
198198
"daemon-alpine-1",
199-
"apk update && apk add htop",
199+
"apk update && apk add curl",
200200
timeout=60
201201
)
202202
assert result.success
203203

204-
result = server.execute_command("daemon-alpine-1", "htop --version", timeout=5)
204+
result = server.execute_command("daemon-alpine-1", "curl --version", timeout=5)
205205
assert result.success
206-
assert "htop" in result.stdout.lower()
206+
assert "curl" in result.stdout
207207

208208
def test_package_manager_rocky(self, server):
209209
"""Test dnf package manager on Rocky daemons"""
210210
result = server.execute_command(
211211
"daemon-rocky-1",
212-
"microdnf install -y htop",
212+
"microdnf install -y curl",
213213
timeout=60
214214
)
215215
assert result.success
216216

217-
result = server.execute_command("daemon-rocky-1", "htop --version", timeout=5)
217+
result = server.execute_command("daemon-rocky-1", "curl --version", timeout=5)
218218
assert result.success
219-
assert "htop" in result.stdout.lower()
219+
assert "curl" in result.stdout
220220

221221
def test_all_distros_run_same_command(self, server):
222222
"""Verify all distributions can run common commands"""

0 commit comments

Comments
 (0)