-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d8c6926
commit 119f07c
Showing
12 changed files
with
487 additions
and
13 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
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
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
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
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
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 @@ | ||
# This file define common behavior of the chart snapshots in the test directory. | ||
dynamicFields: | ||
- apiVersion: v1 | ||
kind: Secret | ||
name: app1-cert | ||
jsonPath: | ||
- /data/ca.crt | ||
- /data/tls.crt | ||
- /data/tls.key |
124 changes: 124 additions & 0 deletions
124
example/app1/testfail/__snapshots__/test_certmanager_enabled.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,124 @@ | ||
[test_certmanager_enabled] | ||
SnapShot = """ | ||
- object: | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
app.kubernetes.io/instance: chartsnap | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/name: app1 | ||
app.kubernetes.io/version: 1.16.0 | ||
helm.sh/chart: app1-0.1.0 | ||
name: chartsnap-app1 | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/instance: chartsnap | ||
app.kubernetes.io/name: app1 | ||
template: | ||
metadata: | ||
labels: | ||
app.kubernetes.io/instance: chartsnap | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/name: app1 | ||
app.kubernetes.io/version: 1.16.0 | ||
helm.sh/chart: app1-0.1.0 | ||
spec: | ||
containers: | ||
- image: nginx:1.16.0 | ||
imagePullPolicy: IfNotPresent | ||
livenessProbe: | ||
httpGet: | ||
path: / | ||
port: http | ||
name: app1 | ||
ports: | ||
- containerPort: 80 | ||
name: http | ||
protocol: TCP | ||
readinessProbe: | ||
httpGet: | ||
path: / | ||
port: http | ||
resources: {} | ||
securityContext: {} | ||
securityContext: {} | ||
serviceAccountName: chartsnap-app1 | ||
- object: | ||
apiVersion: cert-manager.io/v1 | ||
kind: Certificate | ||
metadata: | ||
labels: | ||
app.kubernetes.io/instance: chartsnap | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/name: app1 | ||
app.kubernetes.io/version: 1.16.0 | ||
helm.sh/chart: app1-0.1.0 | ||
name: app1-cert | ||
namespace: code-server | ||
spec: | ||
dnsNames: | ||
- chartsnap-app1.code-server.svc | ||
- chartsnap-app1.code-server.svc.cluster.local | ||
issuerRef: | ||
kind: Issuer | ||
name: nameOfClusterIssuer | ||
secretName: app1-cert | ||
- object: | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
annotations: | ||
helm.sh/hook: test | ||
labels: | ||
app.kubernetes.io/instance: chartsnap | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/name: app1 | ||
app.kubernetes.io/version: 1.16.0 | ||
helm.sh/chart: app1-0.1.0 | ||
name: chartsnap-app1-test-connection | ||
spec: | ||
containers: | ||
- args: | ||
- chartsnap-app1:80 | ||
command: | ||
- wget | ||
image: busybox | ||
name: wget | ||
restartPolicy: Never | ||
- object: | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
app.kubernetes.io/instance: chartsnap | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/name: app1 | ||
app.kubernetes.io/version: 1.16.0 | ||
helm.sh/chart: app1-0.1.0 | ||
name: chartsnap-app1 | ||
spec: | ||
ports: | ||
- name: http | ||
port: 80 | ||
protocol: TCP | ||
targetPort: http | ||
selector: | ||
app.kubernetes.io/instance: chartsnap | ||
app.kubernetes.io/name: app1 | ||
type: ClusterIP | ||
- object: | ||
apiVersion: v1 | ||
automountServiceAccountToken: true | ||
kind: ServiceAccount | ||
metadata: | ||
labels: | ||
app.kubernetes.io/instance: chartsnap | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/name: app1 | ||
app.kubernetes.io/version: 1.16.0 | ||
helm.sh/chart: app1-0.1.0 | ||
name: chartsnap-app1 | ||
""" |
145 changes: 145 additions & 0 deletions
145
example/app1/testfail/__snapshots__/test_hpa_enabled.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,145 @@ | ||
[test_hpa_enabled] | ||
SnapShot = """ | ||
- object: | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
app.kubernetes.io/instance: chartsnap | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/name: app1 | ||
app.kubernetes.io/version: 1.16.0 | ||
helm.sh/chart: app1-0.1.0 | ||
name: chartsnap-app1 | ||
spec: | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/instance: chartsnap | ||
app.kubernetes.io/name: app1 | ||
template: | ||
metadata: | ||
labels: | ||
app.kubernetes.io/instance: chartsnap | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/name: app1 | ||
app.kubernetes.io/version: 1.16.0 | ||
helm.sh/chart: app1-0.1.0 | ||
spec: | ||
containers: | ||
- image: nginx:1.16.0 | ||
imagePullPolicy: IfNotPresent | ||
livenessProbe: | ||
httpGet: | ||
path: / | ||
port: http | ||
name: app1 | ||
ports: | ||
- containerPort: 80 | ||
name: http | ||
protocol: TCP | ||
readinessProbe: | ||
httpGet: | ||
path: / | ||
port: http | ||
resources: {} | ||
securityContext: {} | ||
securityContext: {} | ||
serviceAccountName: chartsnap-app1 | ||
- object: | ||
apiVersion: autoscaling/v2 | ||
kind: HorizontalPodAutoscaler | ||
metadata: | ||
labels: | ||
app.kubernetes.io/instance: chartsnap | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/name: app1 | ||
app.kubernetes.io/version: 1.16.0 | ||
helm.sh/chart: app1-0.1.0 | ||
name: chartsnap-app1 | ||
spec: | ||
maxReplicas: 10 | ||
metrics: | ||
- resource: | ||
name: cpu | ||
target: | ||
averageUtilization: 65 | ||
type: Utilization | ||
type: Resource | ||
minReplicas: 1 | ||
scaleTargetRef: | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
name: chartsnap-app1 | ||
- object: | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
annotations: | ||
helm.sh/hook: test | ||
labels: | ||
app.kubernetes.io/instance: chartsnap | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/name: app1 | ||
app.kubernetes.io/version: 1.16.0 | ||
helm.sh/chart: app1-0.1.0 | ||
name: chartsnap-app1-test-connection | ||
spec: | ||
containers: | ||
- args: | ||
- chartsnap-app1:80 | ||
command: | ||
- wget | ||
image: busybox | ||
name: wget | ||
restartPolicy: Never | ||
- object: | ||
apiVersion: v1 | ||
data: | ||
ca.crt: '###DYNAMIC_FIELD###' | ||
tls.crt: '###DYNAMIC_FIELD###' | ||
tls.key: '###DYNAMIC_FIELD###' | ||
kind: Secret | ||
metadata: | ||
labels: | ||
app.kubernetes.io/instance: chartsnap | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/name: app1 | ||
app.kubernetes.io/version: 1.16.0 | ||
helm.sh/chart: app1-0.1.0 | ||
name: app1-cert | ||
namespace: code-server | ||
type: kubernetes.io/tls | ||
- object: | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
app.kubernetes.io/instance: chartsnap | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/name: app1 | ||
app.kubernetes.io/version: 1.16.0 | ||
helm.sh/chart: app1-0.1.0 | ||
name: chartsnap-app1 | ||
spec: | ||
ports: | ||
- name: http | ||
port: 80 | ||
protocol: TCP | ||
targetPort: http | ||
selector: | ||
app.kubernetes.io/instance: chartsnap | ||
app.kubernetes.io/name: app1 | ||
type: ClusterIP | ||
- object: | ||
apiVersion: v1 | ||
automountServiceAccountToken: true | ||
kind: ServiceAccount | ||
metadata: | ||
labels: | ||
app.kubernetes.io/instance: chartsnap | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/name: app1 | ||
app.kubernetes.io/version: 1.16.0 | ||
helm.sh/chart: app1-0.1.0 | ||
name: chartsnap-app1 | ||
""" |
Oops, something went wrong.