add test templates

This commit is contained in:
Stavros kois
2022-11-09 00:13:53 +02:00
parent b5592e8726
commit f96f9d7eae
7 changed files with 52 additions and 0 deletions

1
.gitignore vendored
View File

@@ -34,3 +34,4 @@ npm-debug.log
tests/artifacts/
tests/test-report.txt
tests/test-report.xml
__snapshot__/

View File

@@ -0,0 +1,10 @@
name: common-test
version: 1.0.0
apiVersion: v2
appVersion: v1.0.0
kubeVersion: '>=1.16.0-0'
type: application
dependencies:
- name: common
repository: file://../common/1.0.0
version: 1.0.0

View File

View File

@@ -0,0 +1 @@
name: {{ include "ix.v1.common.names.fqdn.cluster" . }}

View File

@@ -0,0 +1,12 @@
suite: test
templates:
- common.yaml
tests:
- it: default should pass
asserts:
- hasDocuments:
count: 1
- documentIndex: 0
equal:
path: name
value: test

View File

@@ -0,0 +1,26 @@
apiVersion: v2
name: common
description: A library chart for iX Official Catalog
# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
# to be deployed.
#
# Library charts provide useful utilities or functions for the chart developer. They're included as
# a dependency of application charts to inject those utilities and functions into the rendering
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
# Temporary set to application so I can render it locally
type: library
# type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.0.0
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
appVersion: v1

View File

@@ -3,6 +3,8 @@ global:
nameOverride: ""
# -- Sets additional global annotations. Helm templates can be used.
annotations: {}
# -- Set additional global labels. Helm templates can be used.
labels: {}
# -- Sets an override for the suffix of the full name (Applies to current chart only)
nameOverride: ""