mirror of
https://github.com/truenas/charts.git
synced 2026-06-17 15:38:49 +08:00
update docCount on tests, now we render service
This commit is contained in:
@@ -5,6 +5,8 @@ tests:
|
||||
- it: should pass with default values
|
||||
documentIndex: &deploymentDoc 0
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 2
|
||||
- isKind:
|
||||
of: Deployment
|
||||
|
||||
|
||||
@@ -5,6 +5,8 @@ tests:
|
||||
- it: should pass with default values
|
||||
documentIndex: &deploymentDoc 0
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 2
|
||||
- isKind:
|
||||
of: Deployment
|
||||
|
||||
|
||||
@@ -5,6 +5,8 @@ tests:
|
||||
- it: should pass with default values
|
||||
documentIndex: &deploymentDoc 0
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 2
|
||||
- isKind:
|
||||
of: Deployment
|
||||
|
||||
|
||||
@@ -5,6 +5,8 @@ tests:
|
||||
- it: should pass with default values
|
||||
documentIndex: &deploymentDoc 0
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 2
|
||||
- isKind:
|
||||
of: Deployment
|
||||
|
||||
|
||||
@@ -5,6 +5,8 @@ tests:
|
||||
- it: should pass with default values
|
||||
documentIndex: &deploymentDoc 0
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 2
|
||||
- isKind:
|
||||
of: Deployment
|
||||
|
||||
|
||||
@@ -6,6 +6,8 @@ tests:
|
||||
- it: should pass with default values
|
||||
documentIndex: &deploymentDoc 0
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 2
|
||||
- isKind:
|
||||
of: Deployment
|
||||
|
||||
|
||||
@@ -6,6 +6,8 @@ tests:
|
||||
- it: should pass with default values
|
||||
documentIndex: &deploymentDoc 0
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 2
|
||||
- isKind:
|
||||
of: Deployment
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ tests:
|
||||
documentIndex: &deploymentDoc 0
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 1
|
||||
count: 2
|
||||
- isKind:
|
||||
of: Deployment
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ tests:
|
||||
documentIndex: &deploymentDoc 0
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 1
|
||||
count: 2
|
||||
- isKind:
|
||||
of: Deployment
|
||||
- isSubset:
|
||||
|
||||
@@ -6,7 +6,7 @@ tests:
|
||||
documentIndex: &deploymentDoc 0
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 1
|
||||
count: 2
|
||||
- isKind:
|
||||
of: Deployment
|
||||
- equal:
|
||||
|
||||
@@ -5,8 +5,11 @@ tests:
|
||||
- it: should pass with default values
|
||||
documentIndex: &deploymentDoc 0
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 2
|
||||
- isKind:
|
||||
of: Deployment
|
||||
|
||||
- it: should pass with securityContext changed
|
||||
documentIndex: *deploymentDoc
|
||||
set:
|
||||
|
||||
@@ -6,6 +6,8 @@ tests:
|
||||
- it: should pass with default values
|
||||
documentIndex: &deploymentDoc 0
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 2
|
||||
- isKind:
|
||||
of: Deployment
|
||||
|
||||
|
||||
@@ -5,6 +5,8 @@ tests:
|
||||
- it: should pass with default values
|
||||
documentIndex: &deploymentDoc 0
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 2
|
||||
- isKind:
|
||||
of: Deployment
|
||||
- isNull:
|
||||
|
||||
@@ -5,6 +5,8 @@ tests:
|
||||
- it: should pass with default values
|
||||
documentIndex: &deploymentDoc 0
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 2
|
||||
- isKind:
|
||||
of: Deployment
|
||||
- isNotEmpty:
|
||||
|
||||
@@ -5,6 +5,8 @@ tests:
|
||||
- it: should pass with default values
|
||||
documentIndex: &deploymentDoc 0
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 2
|
||||
- isKind:
|
||||
of: Deployment
|
||||
- equal:
|
||||
@@ -29,7 +31,7 @@ tests:
|
||||
enabled: false
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 0
|
||||
count: 1
|
||||
|
||||
- it: should pass with controller strategy changed and rollingUpdate strategies set
|
||||
documentIndex: *deploymentDoc
|
||||
|
||||
@@ -5,6 +5,8 @@ tests:
|
||||
- it: should pass with default values
|
||||
documentIndex: &deploymentDoc 0
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 2
|
||||
- isKind:
|
||||
of: Deployment
|
||||
- isAPIVersion:
|
||||
|
||||
@@ -6,6 +6,8 @@ tests:
|
||||
- it: should pass with default values
|
||||
documentIndex: &deploymentDoc 0
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 2
|
||||
- isKind:
|
||||
of: Deployment
|
||||
|
||||
|
||||
@@ -7,6 +7,8 @@ tests:
|
||||
- it: should pass with default values
|
||||
documentIndex: &deploymentDoc 0
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 2
|
||||
- isKind:
|
||||
of: Deployment
|
||||
- equal:
|
||||
|
||||
@@ -5,6 +5,8 @@ tests:
|
||||
- it: should pass with default values
|
||||
documentIndex: &deploymentDoc 0
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 2
|
||||
- isKind:
|
||||
of: Deployment
|
||||
- equal:
|
||||
|
||||
@@ -5,6 +5,8 @@ tests:
|
||||
- it: should pass with default values
|
||||
documentIndex: &deploymentDoc 0
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 2
|
||||
- isKind:
|
||||
of: Deployment
|
||||
- equal:
|
||||
|
||||
@@ -4,7 +4,10 @@ templates:
|
||||
- common.yaml
|
||||
tests:
|
||||
- it: should pass with default values
|
||||
documentIndex: &deploymentDoc 0
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 2
|
||||
- isKind:
|
||||
of: Deployment
|
||||
|
||||
|
||||
@@ -6,6 +6,8 @@ tests:
|
||||
- it: should pass with default values
|
||||
documentIndex: &deploymentDoc 0
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 2
|
||||
- isKind:
|
||||
of: Deployment
|
||||
|
||||
|
||||
@@ -5,6 +5,8 @@ tests:
|
||||
- it: should pass with default values
|
||||
documentIndex: &deploymentDoc 0
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 2
|
||||
- isKind:
|
||||
of: Deployment
|
||||
- isNull:
|
||||
|
||||
@@ -8,9 +8,10 @@ release:
|
||||
namespace: &ns some_name_space
|
||||
tests:
|
||||
- it: should pass with default values
|
||||
documentIndex: &deploymentDoc 0
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 1
|
||||
count: 2
|
||||
- isKind:
|
||||
of: Deployment
|
||||
|
||||
|
||||
@@ -6,9 +6,10 @@ chart:
|
||||
appVersion: &appVer v1.2.3
|
||||
tests:
|
||||
- it: should pass with default values
|
||||
documentIndex: &deploymentDoc 0
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 1
|
||||
count: 2
|
||||
- isKind:
|
||||
of: Deployment
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ tests:
|
||||
documentIndex: &deploymentDoc 0
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 1
|
||||
count: 2
|
||||
- isKind:
|
||||
of: Deployment
|
||||
- equal:
|
||||
|
||||
@@ -6,7 +6,7 @@ tests:
|
||||
- it: should pass with default values
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 1
|
||||
count: 2
|
||||
|
||||
- it: should fail with more than 1 primary rbac
|
||||
set:
|
||||
@@ -45,7 +45,7 @@ tests:
|
||||
subjects: *subjects
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 3
|
||||
count: 4
|
||||
- isKind:
|
||||
of: Role
|
||||
- equal:
|
||||
@@ -63,7 +63,7 @@ tests:
|
||||
subjects: *subjects
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 3
|
||||
count: 4
|
||||
- isKind:
|
||||
of: RoleBinding
|
||||
- equal:
|
||||
@@ -82,7 +82,7 @@ tests:
|
||||
subjects: *subjects
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 3
|
||||
count: 4
|
||||
- isKind:
|
||||
of: ClusterRole
|
||||
- equal:
|
||||
@@ -101,13 +101,13 @@ tests:
|
||||
subjects: *subjects
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 3
|
||||
count: 4
|
||||
- isKind:
|
||||
of: ClusterRoleBinding
|
||||
- equal:
|
||||
path: metadata.name
|
||||
value: RELEASE-NAME-common-test
|
||||
###asdsa
|
||||
|
||||
- it: should pass with main rbac set as primary and other not (Role - main)
|
||||
documentIndex: *roleDoc
|
||||
set:
|
||||
@@ -124,7 +124,7 @@ tests:
|
||||
subjects: *subjects
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 5
|
||||
count: 6
|
||||
- isKind:
|
||||
of: Role
|
||||
- equal:
|
||||
@@ -147,7 +147,7 @@ tests:
|
||||
subjects: *subjects
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 5
|
||||
count: 6
|
||||
- isKind:
|
||||
of: Role
|
||||
- equal:
|
||||
@@ -170,7 +170,7 @@ tests:
|
||||
subjects: *subjects
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 5
|
||||
count: 6
|
||||
- isKind:
|
||||
of: RoleBinding
|
||||
- equal:
|
||||
@@ -193,7 +193,7 @@ tests:
|
||||
subjects: *subjects
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 5
|
||||
count: 6
|
||||
- isKind:
|
||||
of: RoleBinding
|
||||
- equal:
|
||||
@@ -217,7 +217,7 @@ tests:
|
||||
subjects: *subjects
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 5
|
||||
count: 6
|
||||
- isKind:
|
||||
of: ClusterRole
|
||||
- equal:
|
||||
@@ -241,7 +241,7 @@ tests:
|
||||
subjects: *subjects
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 5
|
||||
count: 6
|
||||
- isKind:
|
||||
of: ClusterRole
|
||||
- equal:
|
||||
@@ -265,7 +265,7 @@ tests:
|
||||
subjects: *subjects
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 5
|
||||
count: 6
|
||||
- isKind:
|
||||
of: ClusterRoleBinding
|
||||
- equal:
|
||||
@@ -289,13 +289,13 @@ tests:
|
||||
subjects: *subjects
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 5
|
||||
count: 6
|
||||
- isKind:
|
||||
of: ClusterRoleBinding
|
||||
- equal:
|
||||
path: metadata.name
|
||||
value: RELEASE-NAME-common-test-other
|
||||
######
|
||||
|
||||
- it: should pass with other rbac set as primary and main not (Role - main)
|
||||
documentIndex: *roleDoc
|
||||
set:
|
||||
@@ -312,7 +312,7 @@ tests:
|
||||
subjects: *subjects
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 5
|
||||
count: 6
|
||||
- isKind:
|
||||
of: Role
|
||||
- equal:
|
||||
@@ -335,7 +335,7 @@ tests:
|
||||
subjects: *subjects
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 5
|
||||
count: 6
|
||||
- isKind:
|
||||
of: Role
|
||||
- equal:
|
||||
@@ -358,7 +358,7 @@ tests:
|
||||
subjects: *subjects
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 5
|
||||
count: 6
|
||||
- isKind:
|
||||
of: RoleBinding
|
||||
- equal:
|
||||
@@ -381,7 +381,7 @@ tests:
|
||||
subjects: *subjects
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 5
|
||||
count: 6
|
||||
- isKind:
|
||||
of: RoleBinding
|
||||
- equal:
|
||||
@@ -405,7 +405,7 @@ tests:
|
||||
subjects: *subjects
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 5
|
||||
count: 6
|
||||
- isKind:
|
||||
of: ClusterRole
|
||||
- equal:
|
||||
@@ -429,7 +429,7 @@ tests:
|
||||
subjects: *subjects
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 5
|
||||
count: 6
|
||||
- isKind:
|
||||
of: ClusterRole
|
||||
- equal:
|
||||
@@ -453,7 +453,7 @@ tests:
|
||||
subjects: *subjects
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 5
|
||||
count: 6
|
||||
- isKind:
|
||||
of: ClusterRoleBinding
|
||||
- equal:
|
||||
@@ -477,7 +477,7 @@ tests:
|
||||
subjects: *subjects
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 5
|
||||
count: 6
|
||||
- isKind:
|
||||
of: ClusterRoleBinding
|
||||
- equal:
|
||||
|
||||
@@ -6,7 +6,7 @@ tests:
|
||||
- it: should pass with default values
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 1
|
||||
count: 2
|
||||
|
||||
- it: should fail with more than 1 primary serviceAccounts
|
||||
set:
|
||||
@@ -30,7 +30,7 @@ tests:
|
||||
primary: false
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 2
|
||||
count: 3
|
||||
- isKind:
|
||||
of: ServiceAccount
|
||||
- equal:
|
||||
@@ -49,7 +49,7 @@ tests:
|
||||
primary: false
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 3
|
||||
count: 4
|
||||
- isKind:
|
||||
of: ServiceAccount
|
||||
- equal:
|
||||
@@ -68,7 +68,7 @@ tests:
|
||||
primary: false
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 3
|
||||
count: 4
|
||||
- isKind:
|
||||
of: ServiceAccount
|
||||
- equal:
|
||||
@@ -87,7 +87,7 @@ tests:
|
||||
primary: true
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 3
|
||||
count: 4
|
||||
- isKind:
|
||||
of: ServiceAccount
|
||||
- equal:
|
||||
@@ -106,7 +106,7 @@ tests:
|
||||
primary: true
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 3
|
||||
count: 4
|
||||
- isKind:
|
||||
of: ServiceAccount
|
||||
- equal:
|
||||
|
||||
@@ -7,7 +7,7 @@ tests:
|
||||
documentIndex: &deploymentDoc 0
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 1
|
||||
count: 2
|
||||
- isKind:
|
||||
of: Deployment
|
||||
- equal:
|
||||
|
||||
Reference in New Issue
Block a user