Skip to content

Commit

Permalink
[DPE-3857] Test consistency between workload and metadata versions (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
deusebio authored Apr 17, 2024
1 parent 83b700c commit f71270a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 43 deletions.
45 changes: 3 additions & 42 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,67 +1,28 @@
anyio==4.2.0 ; python_version >= "3.10" and python_version < "4.0"
attrs==23.2.0 ; python_version >= "3.10" and python_version < "4.0"
build==1.0.3 ; python_version >= "3.10" and python_version < "4.0"
cachecontrol[filecache]==0.13.1 ; python_version >= "3.10" and python_version < "4.0"
certifi==2023.11.17 ; python_version >= "3.10" and python_version < "4.0"
cffi==1.16.0 ; python_version >= "3.10" and python_version < "4.0"
charset-normalizer==3.3.2 ; python_version >= "3.10" and python_version < "4.0"
cleo==2.1.0 ; python_version >= "3.10" and python_version < "4.0"
colorama==0.4.6 ; python_version >= "3.10" and python_version < "4.0" and os_name == "nt"
cffi==1.16.0 ; python_version >= "3.10" and python_version < "4.0" and platform_python_implementation != "PyPy"
cosl==0.0.7 ; python_version >= "3.10" and python_version < "4.0"
crashtest==0.4.1 ; python_version >= "3.10" and python_version < "4.0"
cryptography==39.0.2 ; python_version >= "3.10" and python_version < "4.0"
distlib==0.3.8 ; python_version >= "3.10" and python_version < "4.0"
dulwich==0.21.7 ; python_version >= "3.10" and python_version < "4.0"
cryptography==42.0.5 ; python_version >= "3.10" and python_version < "4.0"
exceptiongroup==1.2.0 ; python_version >= "3.10" and python_version < "3.11"
fastjsonschema==2.19.1 ; python_version >= "3.10" and python_version < "4.0"
filelock==3.13.1 ; python_version >= "3.10" and python_version < "4.0"
h11==0.14.0 ; python_version >= "3.10" and python_version < "4.0"
httpcore==1.0.2 ; python_version >= "3.10" and python_version < "4.0"
httpx==0.26.0 ; python_version >= "3.10" and python_version < "4.0"
idna==3.6 ; python_version >= "3.10" and python_version < "4.0"
importlib-metadata==7.0.1 ; python_version >= "3.10" and python_version < "3.12"
installer==0.7.0 ; python_version >= "3.10" and python_version < "4.0"
jaraco-classes==3.3.0 ; python_version >= "3.10" and python_version < "4.0"
jeepney==0.8.0 ; python_version >= "3.10" and python_version < "4.0" and sys_platform == "linux"
jsonschema-specifications==2023.12.1 ; python_version >= "3.10" and python_version < "4.0"
jsonschema==4.20.0 ; python_version >= "3.10" and python_version < "4.0"
kazoo==2.9.0 ; python_version >= "3.10" and python_version < "4.0"
keyring==24.3.0 ; python_version >= "3.10" and python_version < "4.0"
lightkube-models==1.29.0.6 ; python_version >= "3.10" and python_version < "4.0"
lightkube==0.15.0 ; python_version >= "3.10" and python_version < "4.0"
more-itertools==10.2.0 ; python_version >= "3.10" and python_version < "4.0"
msgpack==1.0.7 ; python_version >= "3.10" and python_version < "4.0"
ops==2.9.0 ; python_version >= "3.10" and python_version < "4.0"
packaging==23.2 ; python_version >= "3.10" and python_version < "4.0"
pexpect==4.9.0 ; python_version >= "3.10" and python_version < "4.0"
pkginfo==1.9.6 ; python_version >= "3.10" and python_version < "4.0"
platformdirs==3.11.0 ; python_version >= "3.10" and python_version < "4.0"
poetry-core==1.8.1 ; python_version >= "3.10" and python_version < "4.0"
poetry-plugin-export==1.6.0 ; python_version >= "3.10" and python_version < "4.0"
poetry==1.7.1 ; python_version >= "3.10" and python_version < "4.0"
ptyprocess==0.7.0 ; python_version >= "3.10" and python_version < "4.0"
pure-sasl==0.6.2 ; python_version >= "3.10" and python_version < "4.0"
pycparser==2.21 ; python_version >= "3.10" and python_version < "4.0"
pycparser==2.21 ; python_version >= "3.10" and python_version < "4.0" and platform_python_implementation != "PyPy"
pydantic==1.10.13 ; python_version >= "3.10" and python_version < "4.0"
pyproject-hooks==1.0.0 ; python_version >= "3.10" and python_version < "4.0"
pywin32-ctypes==0.2.2 ; python_version >= "3.10" and python_version < "4.0" and sys_platform == "win32"
pyyaml==6.0.1 ; python_version >= "3.10" and python_version < "4.0"
rapidfuzz==3.6.1 ; python_version >= "3.10" and python_version < "4.0"
referencing==0.32.1 ; python_version >= "3.10" and python_version < "4.0"
requests-toolbelt==1.0.0 ; python_version >= "3.10" and python_version < "4.0"
requests==2.31.0 ; python_version >= "3.10" and python_version < "4.0"
rpds-py==0.17.1 ; python_version >= "3.10" and python_version < "4.0"
secretstorage==3.3.3 ; python_version >= "3.10" and python_version < "4.0" and sys_platform == "linux"
shellingham==1.5.4 ; python_version >= "3.10" and python_version < "4.0"
six==1.16.0 ; python_version >= "3.10" and python_version < "4.0"
sniffio==1.3.0 ; python_version >= "3.10" and python_version < "4.0"
tenacity==8.2.3 ; python_version >= "3.10" and python_version < "4.0"
tomli==2.0.1 ; python_version >= "3.10" and python_version < "3.11"
tomlkit==0.12.3 ; python_version >= "3.10" and python_version < "4.0"
trove-classifiers==2024.1.8 ; python_version >= "3.10" and python_version < "4.0"
typing-extensions==4.9.0 ; python_version >= "3.10" and python_version < "4.0"
urllib3==2.1.0 ; python_version >= "3.10" and python_version < "4.0"
virtualenv==20.25.0 ; python_version >= "3.10" and python_version < "4.0"
websocket-client==1.7.0 ; python_version >= "3.10" and python_version < "4.0"
xattr==0.10.1 ; python_version >= "3.10" and python_version < "4.0" and sys_platform == "darwin"
zipp==3.17.0 ; python_version >= "3.10" and python_version < "3.12"
8 changes: 7 additions & 1 deletion tests/integration/test_charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import requests
from pytest_operator.plugin import OpsTest

from literals import JMX_PORT, METRICS_PROVIDER_PORT
from literals import DEPENDENCIES, JMX_PORT, METRICS_PROVIDER_PORT

from . import APP_NAME, SERIES, ZOOKEEPER_IMAGE
from .helpers import count_lines_with, get_address
Expand Down Expand Up @@ -36,6 +36,12 @@ async def test_deploy_active(ops_test: OpsTest):
assert ops_test.model.applications[APP_NAME].status == "active"


@pytest.mark.abort_on_fail
async def test_consistency_between_workload_and_metadata(ops_test: OpsTest):
application = ops_test.model.applications[APP_NAME]
assert application.data.get("workload-version", "") == DEPENDENCIES["service"]["version"]


async def test_exporter_endpoints(ops_test: OpsTest):
unit_address = await get_address(ops_test=ops_test)
jmx_exporter_url = f"http://{unit_address}:{JMX_PORT}/metrics"
Expand Down

0 comments on commit f71270a

Please sign in to comment.