Skip to content

Commit

Permalink
Added logging relation and cos integration tests from chisme.
Browse files Browse the repository at this point in the history
fixes: #488
  • Loading branch information
rgildein committed Jun 7, 2024
1 parent d192c53 commit 8b310d4
Show file tree
Hide file tree
Showing 9 changed files with 2,925 additions and 149 deletions.
2,750 changes: 2,750 additions & 0 deletions charms/kfp-api/lib/charms/loki_k8s/v1/loki_push_api.py

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions charms/kfp-api/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ requires:
- service-port
versions: [v1]
__schema_source: https://raw.githubusercontent.com/canonical/operator-schemas/master/k8s-service.yaml
logging:
interface: loki_push_api
optional: true
provides:
kfp-api:
interface: k8s-service
Expand Down
2 changes: 2 additions & 0 deletions charms/kfp-api/requirements-integration.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ pytest-operator
selenium
selenium-wire
tenacity
# This is required due to the abstraction of cos integration
charmed-kubeflow-chisme>=0.4.0
190 changes: 124 additions & 66 deletions charms/kfp-api/requirements-integration.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,238 +4,296 @@
#
# pip-compile requirements-integration.in
#
asttokens==2.4.0
anyio==4.4.0
# via httpx
asttokens==2.4.1
# via stack-data
attrs==23.1.0
attrs==23.2.0
# via
# jsonschema
# outcome
# trio
backcall==0.2.0
# via ipython
bcrypt==4.0.1
bcrypt==4.1.3
# via paramiko
blinker==1.6.2
blinker==1.8.2
# via selenium-wire
brotli==1.1.0
# via selenium-wire
cachetools==5.3.1
cachetools==5.3.3
# via google-auth
certifi==2023.7.22
certifi==2024.6.2
# via
# httpcore
# httpx
# kubernetes
# requests
# selenium
# selenium-wire
cffi==1.15.1
cffi==1.16.0
# via
# cryptography
# pynacl
charset-normalizer==3.2.0
charmed-kubeflow-chisme==0.4.0
# via -r requirements-integration.in
charset-normalizer==3.3.2
# via requests
cryptography==41.0.3
cryptography==42.0.8
# via
# paramiko
# pyopenssl
decorator==5.1.1
# via
# ipdb
# ipython
exceptiongroup==1.1.3
deepdiff==6.2.1
# via charmed-kubeflow-chisme
exceptiongroup==1.2.1
# via
# anyio
# pytest
# trio
# trio-websocket
executing==1.2.0
executing==2.0.1
# via stack-data
google-auth==2.17.3
google-auth==2.30.0
# via kubernetes
h11==0.14.0
# via wsproto
# via
# httpcore
# wsproto
h2==4.1.0
# via selenium-wire
hpack==4.0.0
# via h2
hvac==1.2.0
httpcore==1.0.5
# via httpx
httpx==0.27.0
# via lightkube
hvac==2.2.0
# via juju
hyperframe==6.0.1
# via
# h2
# selenium-wire
idna==3.4
idna==3.7
# via
# anyio
# httpx
# requests
# trio
importlib-resources==6.4.0
# via jsonschema
iniconfig==2.0.0
# via pytest
ipdb==0.13.13
# via pytest-operator
ipython==8.12.2
ipython==8.12.3
# via ipdb
jedi==0.19.0
jedi==0.19.1
# via ipython
jinja2==3.1.2
# via pytest-operator
juju==3.2.2
jinja2==3.1.4
# via
# charmed-kubeflow-chisme
# pytest-operator
jsonschema==4.17.3
# via serialized-data-interface
juju==3.5.0.0
# via
# -r requirements-integration.in
# charmed-kubeflow-chisme
# pytest-operator
kaitaistruct==0.10
# via selenium-wire
kubernetes==27.2.0
kubernetes==30.1.0
# via juju
macaroonbakery==1.3.1
lightkube==0.15.2
# via charmed-kubeflow-chisme
lightkube-models==1.30.0.8
# via lightkube
macaroonbakery==1.3.4
# via juju
markupsafe==2.1.3
markupsafe==2.1.5
# via jinja2
matplotlib-inline==0.1.6
matplotlib-inline==0.1.7
# via ipython
mypy-extensions==1.0.0
# via typing-inspect
oauthlib==3.2.2
# via
# kubernetes
# requests-oauthlib
outcome==1.2.0
ops==2.14.0
# via
# charmed-kubeflow-chisme
# serialized-data-interface
ordered-set==4.1.0
# via deepdiff
outcome==1.3.0.post0
# via trio
packaging==23.1
# via pytest
paramiko==2.12.0
packaging==24.0
# via
# juju
# pytest
paramiko==3.4.0
# via juju
parso==0.8.3
parso==0.8.4
# via jedi
pexpect==4.8.0
pexpect==4.9.0
# via ipython
pickleshare==0.7.5
# via ipython
pluggy==1.3.0
pkgutil-resolve-name==1.3.10
# via jsonschema
pluggy==1.5.0
# via pytest
prompt-toolkit==3.0.39
prompt-toolkit==3.0.46
# via ipython
protobuf==3.20.3
protobuf==5.27.1
# via macaroonbakery
ptyprocess==0.7.0
# via pexpect
pure-eval==0.2.2
# via stack-data
pyasn1==0.5.0
pyasn1==0.6.0
# via
# juju
# pyasn1-modules
# rsa
# selenium-wire
pyasn1-modules==0.3.0
pyasn1-modules==0.4.0
# via google-auth
pycparser==2.21
pycparser==2.22
# via cffi
pygments==2.16.1
pygments==2.18.0
# via ipython
pyhcl==0.4.5
# via hvac
pymacaroons==0.13.0
# via macaroonbakery
pynacl==1.5.0
# via
# macaroonbakery
# paramiko
# pymacaroons
pyopenssl==23.2.0
pyopenssl==24.1.0
# via selenium-wire
pyparsing==3.1.1
pyparsing==3.1.2
# via selenium-wire
pyrfc3339==1.1
# via
# juju
# macaroonbakery
pyrsistent==0.20.0
# via jsonschema
pysocks==1.7.1
# via
# selenium-wire
# urllib3
pytest==7.4.2
pytest==8.2.2
# via
# pytest-asyncio
# pytest-operator
pytest-asyncio==0.21.1
pytest-asyncio==0.21.2
# via pytest-operator
pytest-operator==0.29.0
pytest-operator==0.35.0
# via -r requirements-integration.in
python-dateutil==2.8.2
python-dateutil==2.9.0.post0
# via kubernetes
pytz==2023.3.post1
pytz==2024.1
# via pyrfc3339
pyyaml==6.0.1
# via
# juju
# kubernetes
# lightkube
# ops
# pytest-operator
requests==2.31.0
# serialized-data-interface
requests==2.32.3
# via
# hvac
# kubernetes
# macaroonbakery
# requests-oauthlib
requests-oauthlib==1.3.1
# serialized-data-interface
requests-oauthlib==2.0.0
# via kubernetes
rsa==4.9
# via google-auth
selenium==4.12.0
ruamel-yaml==0.18.6
# via charmed-kubeflow-chisme
ruamel-yaml-clib==0.2.8
# via ruamel-yaml
selenium==4.21.0
# via
# -r requirements-integration.in
# selenium-wire
selenium-wire==5.1.0
# via -r requirements-integration.in
serialized-data-interface==0.7.0
# via charmed-kubeflow-chisme
six==1.16.0
# via
# asttokens
# google-auth
# kubernetes
# macaroonbakery
# paramiko
# pymacaroons
# python-dateutil
sniffio==1.3.0
# via trio
sniffio==1.3.1
# via
# anyio
# httpx
# trio
sortedcontainers==2.4.0
# via trio
stack-data==0.6.2
stack-data==0.6.3
# via ipython
tenacity==8.2.3
# via -r requirements-integration.in
tenacity==8.3.0
# via
# -r requirements-integration.in
# charmed-kubeflow-chisme
tomli==2.0.1
# via
# ipdb
# pytest
toposort==1.10
# via juju
traitlets==5.9.0
traitlets==5.14.3
# via
# ipython
# matplotlib-inline
trio==0.22.2
trio==0.25.1
# via
# selenium
# trio-websocket
trio-websocket==0.10.4
trio-websocket==0.11.1
# via selenium
typing-extensions==4.7.1
typing-extensions==4.12.1
# via
# anyio
# ipython
# selenium
# typing-inspect
typing-inspect==0.9.0
# via juju
urllib3[socks]==2.0.4
urllib3[socks]==2.2.1
# via
# kubernetes
# requests
# selenium
wcwidth==0.2.6
wcwidth==0.2.13
# via prompt-toolkit
websocket-client==1.6.2
# via kubernetes
websockets==8.1
websocket-client==1.8.0
# via
# kubernetes
# ops
websockets==12.0
# via juju
wsproto==1.2.0
# via
# selenium-wire
# trio-websocket
zstandard==0.21.0
zipp==3.19.2
# via importlib-resources
zstandard==0.22.0
# via selenium-wire
2 changes: 1 addition & 1 deletion charms/kfp-api/requirements-unit.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ requests==2.31.0
# via serialized-data-interface
ruamel-yaml==0.17.32
# via charmed-kubeflow-chisme
ruamel-yaml-clib==0.2.7
ruamel-yaml-clib==0.2.8
# via ruamel-yaml
serialized-data-interface==0.7.0
# via
Expand Down
2 changes: 1 addition & 1 deletion charms/kfp-api/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ markupsafe==2.1.3
# via jinja2
oci-image==1.0.0
# via -r requirements.in
ops==2.5.0
ops==2.14.0
# via
# -r requirements.in
# charmed-kubeflow-chisme
Expand Down
Loading

0 comments on commit 8b310d4

Please sign in to comment.