canonical / pvcviewer-operator

Charm PVCViewer for visualizing PVC content
Apache License 2.0
2 stars 0 forks source link

Base class implementation. #4

Closed misohu closed 11 months ago

misohu commented 11 months ago

This PR implements this upstream component. Key features:

Integration tests:

i-chvets commented 11 months ago

Should we also add removal test in which we test accessibility of URL after charm is removed? Just to make sure we clean up everything.

misohu commented 11 months ago

Hi @i-chvets resolved your comments ... added integration test for remove application. I also added readme.

i-chvets commented 11 months ago

Failed integration test in local setup. Timeout on waiting for UI.

INFO     httpx:_client.py:1013 HTTP Request: PATCH https://10.1.1.124:16443/api/v1/namespaces/kubeflow-user-example-com?fieldManager=pvcviewer-operator "HTTP/1.1 200 OK"
INFO     httpx:_client.py:1013 HTTP Request: PATCH https://10.1.1.124:16443/apis/kubeflow.org/v1alpha1/namespaces/kubeflow-user-example-com/pvcviewers/pvcviewer-sample?fieldManager=pvcviewer-operator "HTTP/1.1 200 OK"
INFO     httpx:_client.py:1013 HTTP Request: PATCH https://10.1.1.124:16443/api/v1/namespaces/kubeflow-user-example-com/persistentvolumeclaims/pvcviewer-sample?fieldManager=pvcviewer-operator "HTTP/1.1 200 OK"
INFO     httpx:_client.py:1013 HTTP Request: GET https://10.1.1.124:16443/api/v1/namespaces/test-charm-fwxe/services/istio-ingressgateway-workload "HTTP/1.1 200 OK"
INFO     httpx:_client.py:1013 HTTP Request: PATCH https://10.1.1.124:16443/api/v1/namespaces/kubeflow-user-example-com?fieldManager=pvcviewer-operator "HTTP/1.1 200 OK"
INFO     httpx:_client.py:1013 HTTP Request: PATCH https://10.1.1.124:16443/apis/kubeflow.org/v1alpha1/namespaces/kubeflow-user-example-com/pvcviewers/pvcviewer-sample?fieldManager=pvcviewer-operator "HTTP/1.1 200 OK"
INFO     httpx:_client.py:1013 HTTP Request: PATCH https://10.1.1.124:16443/api/v1/namespaces/kubeflow-user-example-com/persistentvolumeclaims/pvcviewer-sample?fieldManager=pvcviewer-operator "HTTP/1.1 200 OK"
INFO     httpx:_client.py:1013 HTTP Request: GET https://10.1.1.124:16443/api/v1/namespaces/test-charm-fwxe/services/istio-ingressgateway-workload "HTTP/1.1 200 OK"
FAILED
i-chvets commented 11 months ago

Verified by creating PR https://github.com/canonical/pvcviewer-operator/pull/7