update docCount on tests, now we render service

This commit is contained in:
Stavros kois
2022-11-25 16:26:37 +02:00
parent 4c5bf8c341
commit 8acff53c65
29 changed files with 81 additions and 37 deletions

View File

@@ -5,6 +5,8 @@ tests:
- it: should pass with default values
documentIndex: &deploymentDoc 0
asserts:
- hasDocuments:
count: 2
- isKind:
of: Deployment

View File

@@ -5,6 +5,8 @@ tests:
- it: should pass with default values
documentIndex: &deploymentDoc 0
asserts:
- hasDocuments:
count: 2
- isKind:
of: Deployment

View File

@@ -5,6 +5,8 @@ tests:
- it: should pass with default values
documentIndex: &deploymentDoc 0
asserts:
- hasDocuments:
count: 2
- isKind:
of: Deployment

View File

@@ -5,6 +5,8 @@ tests:
- it: should pass with default values
documentIndex: &deploymentDoc 0
asserts:
- hasDocuments:
count: 2
- isKind:
of: Deployment

View File

@@ -5,6 +5,8 @@ tests:
- it: should pass with default values
documentIndex: &deploymentDoc 0
asserts:
- hasDocuments:
count: 2
- isKind:
of: Deployment

View File

@@ -6,6 +6,8 @@ tests:
- it: should pass with default values
documentIndex: &deploymentDoc 0
asserts:
- hasDocuments:
count: 2
- isKind:
of: Deployment

View File

@@ -6,6 +6,8 @@ tests:
- it: should pass with default values
documentIndex: &deploymentDoc 0
asserts:
- hasDocuments:
count: 2
- isKind:
of: Deployment

View File

@@ -6,7 +6,7 @@ tests:
documentIndex: &deploymentDoc 0
asserts:
- hasDocuments:
count: 1
count: 2
- isKind:
of: Deployment

View File

@@ -6,7 +6,7 @@ tests:
documentIndex: &deploymentDoc 0
asserts:
- hasDocuments:
count: 1
count: 2
- isKind:
of: Deployment
- isSubset:

View File

@@ -6,7 +6,7 @@ tests:
documentIndex: &deploymentDoc 0
asserts:
- hasDocuments:
count: 1
count: 2
- isKind:
of: Deployment
- equal:

View File

@@ -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:

View File

@@ -6,6 +6,8 @@ tests:
- it: should pass with default values
documentIndex: &deploymentDoc 0
asserts:
- hasDocuments:
count: 2
- isKind:
of: Deployment

View File

@@ -5,6 +5,8 @@ tests:
- it: should pass with default values
documentIndex: &deploymentDoc 0
asserts:
- hasDocuments:
count: 2
- isKind:
of: Deployment
- isNull:

View File

@@ -5,6 +5,8 @@ tests:
- it: should pass with default values
documentIndex: &deploymentDoc 0
asserts:
- hasDocuments:
count: 2
- isKind:
of: Deployment
- isNotEmpty:

View File

@@ -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

View File

@@ -5,6 +5,8 @@ tests:
- it: should pass with default values
documentIndex: &deploymentDoc 0
asserts:
- hasDocuments:
count: 2
- isKind:
of: Deployment
- isAPIVersion:

View File

@@ -6,6 +6,8 @@ tests:
- it: should pass with default values
documentIndex: &deploymentDoc 0
asserts:
- hasDocuments:
count: 2
- isKind:
of: Deployment

View File

@@ -7,6 +7,8 @@ tests:
- it: should pass with default values
documentIndex: &deploymentDoc 0
asserts:
- hasDocuments:
count: 2
- isKind:
of: Deployment
- equal:

View File

@@ -5,6 +5,8 @@ tests:
- it: should pass with default values
documentIndex: &deploymentDoc 0
asserts:
- hasDocuments:
count: 2
- isKind:
of: Deployment
- equal:

View File

@@ -5,6 +5,8 @@ tests:
- it: should pass with default values
documentIndex: &deploymentDoc 0
asserts:
- hasDocuments:
count: 2
- isKind:
of: Deployment
- equal:

View File

@@ -4,7 +4,10 @@ templates:
- common.yaml
tests:
- it: should pass with default values
documentIndex: &deploymentDoc 0
asserts:
- hasDocuments:
count: 2
- isKind:
of: Deployment

View File

@@ -6,6 +6,8 @@ tests:
- it: should pass with default values
documentIndex: &deploymentDoc 0
asserts:
- hasDocuments:
count: 2
- isKind:
of: Deployment

View File

@@ -5,6 +5,8 @@ tests:
- it: should pass with default values
documentIndex: &deploymentDoc 0
asserts:
- hasDocuments:
count: 2
- isKind:
of: Deployment
- isNull:

View File

@@ -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

View File

@@ -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

View File

@@ -7,7 +7,7 @@ tests:
documentIndex: &deploymentDoc 0
asserts:
- hasDocuments:
count: 1
count: 2
- isKind:
of: Deployment
- equal:

View File

@@ -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:

View File

@@ -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:

View File

@@ -7,7 +7,7 @@ tests:
documentIndex: &deploymentDoc 0
asserts:
- hasDocuments:
count: 1
count: 2
- isKind:
of: Deployment
- equal: