Skip to content

Commit

Permalink
Adds sanity test for the envoy rock (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiubelu authored Aug 7, 2024
1 parent dd5310d commit 6370a8e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
*.rock
*/__pycache__
__pycache__
.pytest_cache
.venv
.tox
16 changes: 16 additions & 0 deletions tests/sanity/test_envoy.py
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

0 comments on commit 6370a8e

Please sign in to comment.