mirror of
https://github.com/truenas/charts.git
synced 2026-06-17 15:38:49 +08:00
add test templates
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -34,3 +34,4 @@ npm-debug.log
|
||||
tests/artifacts/
|
||||
tests/test-report.txt
|
||||
tests/test-report.xml
|
||||
__snapshot__/
|
||||
|
||||
10
library/common-test/Chart.yaml
Normal file
10
library/common-test/Chart.yaml
Normal 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
|
||||
0
library/common-test/ci/basic-values.yaml
Normal file
0
library/common-test/ci/basic-values.yaml
Normal file
1
library/common-test/templates/common.yaml
Normal file
1
library/common-test/templates/common.yaml
Normal file
@@ -0,0 +1 @@
|
||||
name: {{ include "ix.v1.common.names.fqdn.cluster" . }}
|
||||
12
library/common-test/tests/f-test.yaml
Normal file
12
library/common-test/tests/f-test.yaml
Normal 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
|
||||
26
library/common/1.0.0/Chart.yaml
Normal file
26
library/common/1.0.0/Chart.yaml
Normal 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
|
||||
@@ -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: ""
|
||||
|
||||
Reference in New Issue
Block a user