-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds sanity test for the envoy rock (#10)
- Loading branch information
1 parent
dd5310d
commit 6370a8e
Showing
2 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
*.rock | ||
*/__pycache__ | ||
__pycache__ | ||
.pytest_cache | ||
.venv | ||
.tox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# | ||
# Copyright 2024 Canonical, Ltd. | ||
# See LICENSE file for licensing details | ||
# | ||
|
||
from k8s_test_harness.util import docker_util, env_util | ||
|
||
|
||
def test_envoy_rock(): | ||
"""Test envoy rock.""" | ||
rock = env_util.get_build_meta_info_for_rock_version("envoy", "1.28.2", "amd64") | ||
image = rock.image | ||
|
||
# check binary and version. | ||
process = docker_util.run_in_docker(image, ["envoy", "--version"], True) | ||
assert "envoy" in process.stdout and "1.28.2" in process.stdout |