Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores committed Nov 14, 2024
1 parent b13303a commit 8193384
Showing 1 changed file with 31 additions and 3 deletions.
34 changes: 31 additions & 3 deletions charts/cryostat/tests/notes_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,40 @@ tests:
No actions required with this configuration.
```
2. Forward local port to the application's pod:
2. Forward local port to the application's service:
```
kubectl -n NAMESPACE wait --for=condition=available --timeout=60s deploy/RELEASE-NAME-cryostat-v4
export POD_NAME=$(kubectl get pods -n NAMESPACE -l "app.kubernetes.io/name=cryostat,app.kubernetes.io/instance=RELEASE-NAME,app.kubernetes.io/component=cryostat" --sort-by=.metadata.creationTimestamp -o jsonpath="{.items[-1:].metadata.name}")
kubectl -n NAMESPACE port-forward $POD_NAME 8080:http
export SVC_NAME=$(kubectl get services -n NAMESPACE -l "app.kubernetes.io/name=cryostat,app.kubernetes.io/instance=RELEASE-NAME,app.kubernetes.io/component=cryostat" --sort-by=.metadata.creationTimestamp -o jsonpath="{.items[-1:].metadata.name}")
kubectl -n NAMESPACE port-forward svc/$SVC_NAME 8443:cryostat-https
```
3. Visit the application at:
```
https://localhost:8443
```
- it: should render correct notes for ClusterIP service without ingress or route and TLS disabled
set:
oauth2Proxy:
service:
tls:
enableSelfSigned: false
asserts:
- equalRaw:
value: |
1. Configure the application to serve external traffic:
```
No actions required with this configuration.
```
2. Forward local port to the application's service:
```
kubectl -n NAMESPACE wait --for=condition=available --timeout=60s deploy/RELEASE-NAME-cryostat-v4
export SVC_NAME=$(kubectl get services -n NAMESPACE -l "app.kubernetes.io/name=cryostat,app.kubernetes.io/instance=RELEASE-NAME,app.kubernetes.io/component=cryostat" --sort-by=.metadata.creationTimestamp -o jsonpath="{.items[-1:].metadata.name}")
kubectl -n NAMESPACE port-forward svc/$SVC_NAME 8080:cryostat-http
```
3. Visit the application at:
Expand Down

0 comments on commit 8193384

Please sign in to comment.