-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding some helm tests and snapshost
Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
- Loading branch information
Showing
5 changed files
with
77 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,3 +38,5 @@ jobs: | |
run: make lint | ||
- name: Run tests | ||
run: make test-ci | ||
- name: Run helm test | ||
run: make helm-test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 0 additions & 15 deletions
15
deploy/charts/bitwarden-sdk-server/templates/tests/test-connection.yaml
This file was deleted.
Oops, something went wrong.
60 changes: 60 additions & 0 deletions
60
deploy/charts/bitwarden-sdk-server/tests/__snapshot__/deployment_test.yaml.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
deployment should match snapshot: | ||
1: | | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
app.kubernetes.io/instance: RELEASE-NAME | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/name: bitwarden-sdk-server | ||
app.kubernetes.io/version: 1.16.0 | ||
helm.sh/chart: bitwarden-sdk-server-0.1.0 | ||
name: bitwarden-sdk-server | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/instance: RELEASE-NAME | ||
app.kubernetes.io/name: bitwarden-sdk-server | ||
template: | ||
metadata: | ||
labels: | ||
app.kubernetes.io/instance: RELEASE-NAME | ||
app.kubernetes.io/name: bitwarden-sdk-server | ||
spec: | ||
containers: | ||
- image: ghcr.io/external-secrets/bitwarden-sdk-server:v0.8.0 | ||
imagePullPolicy: IfNotPresent | ||
livenessProbe: | ||
httpGet: | ||
path: /live | ||
port: http | ||
scheme: HTTPS | ||
name: bitwarden-sdk-server | ||
ports: | ||
- containerPort: 9998 | ||
name: http | ||
protocol: TCP | ||
readinessProbe: | ||
httpGet: | ||
path: /ready | ||
port: http | ||
scheme: HTTPS | ||
resources: {} | ||
securityContext: {} | ||
volumeMounts: | ||
- mountPath: /certs | ||
name: bitwarden-tls-certs | ||
securityContext: {} | ||
serviceAccountName: bitwarden-sdk-server | ||
volumes: | ||
- name: bitwarden-tls-certs | ||
secret: | ||
items: | ||
- key: tls.crt | ||
path: cert.pem | ||
- key: tls.key | ||
path: key.pem | ||
- key: ca.crt | ||
path: ca.pem | ||
secretName: bitwarden-tls-certs |
9 changes: 9 additions & 0 deletions
9
deploy/charts/bitwarden-sdk-server/tests/deployment_test.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
suite: test deployment | ||
templates: | ||
- deployment.yaml | ||
tests: | ||
- it: deployment should match snapshot | ||
set: | ||
image.tag: v0.8.0 | ||
asserts: | ||
- matchSnapshot: {} |