fix tests (hasDocuments.count)

This commit is contained in:
Stavros kois
2022-12-07 18:16:12 +02:00
parent b195961923
commit bbce72ca82
46 changed files with 81 additions and 80 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -6,7 +6,7 @@ tests:
documentIndex: &deploymentDoc 0
asserts:
- hasDocuments:
count: 2
count: 3
- isKind:
of: Deployment
- equal:
@@ -31,7 +31,7 @@ tests:
enabled: false
asserts:
- hasDocuments:
count: 1
count: 2
- it: should pass with controller strategy changed and rollingUpdate strategies set
documentIndex: *deploymentDoc

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -8,7 +8,7 @@ tests:
documentIndex: &deploymentDoc 0
asserts:
- hasDocuments:
count: 2
count: 3
- isKind:
of: Deployment
@@ -117,7 +117,7 @@ tests:
- '{"cniVersion": "0.3.1", "name": "ix-RELEASE-NAME-0", "type": "macvlan", "master": "ens3s0", "ipam": {"type": "dhcp"}}'
asserts:
- hasDocuments:
count: 3
count: 4
- isKind:
of: NetworkAttachmentDefinition
- isAPIVersion:
@@ -145,7 +145,7 @@ tests:
- ix-RELEASE-NAME-0
asserts:
- hasDocuments:
count: 3
count: 4
- isKind:
of: Deployment
- isSubset:
@@ -171,7 +171,7 @@ tests:
- ix-RELEASE-NAME-0
asserts:
- hasDocuments:
count: 4
count: 5
- isKind:
of: NetworkAttachmentDefinition
- isAPIVersion:
@@ -198,7 +198,7 @@ tests:
- '{"cniVersion": "0.3.1", "name": "ix-RELEASE-NAME-1", "type": "macvlan", "master": "ens5s0", "ipam": {"type": "dhcp"}}'
asserts:
- hasDocuments:
count: 4
count: 5
- isKind:
of: NetworkAttachmentDefinition
- isAPIVersion:
@@ -228,7 +228,7 @@ tests:
- ix-RELEASE-NAME-1
asserts:
- hasDocuments:
count: 4
count: 5
- isKind:
of: Deployment
- isSubset:
@@ -255,7 +255,7 @@ tests:
- '{"cniVersion": "0.3.1", "name": "ix-RELEASE-NAME-0", "type": "macvlan", "master": "ens3s0", "ipam": {"type": "dhcp"}}'
asserts:
- hasDocuments:
count: 3
count: 4
- isKind:
of: NetworkAttachmentDefinition
- isAPIVersion:
@@ -285,7 +285,7 @@ tests:
- '{"cniVersion": "0.3.1", "name": "ix-RELEASE-NAME-0", "type": "macvlan", "master": "ens3s0", "ipam": {"type": "dhcp"}}'
asserts:
- hasDocuments:
count: 3
count: 4
- isKind:
of: NetworkAttachmentDefinition
- isAPIVersion:
@@ -313,7 +313,7 @@ tests:
- '{"cniVersion": "0.3.1", "name": "ix-RELEASE-NAME-0", "type": "macvlan", "master": "ens3s0", "ipam": {"type": "dhcp"}}'
asserts:
- hasDocuments:
count: 3
count: 4
- isKind:
of: NetworkAttachmentDefinition
- isAPIVersion:
@@ -351,7 +351,7 @@ tests:
- '{"cniVersion": "0.3.1", "name": "ix-RELEASE-NAME-0", "type": "macvlan", "master": "ens3s0", "ipam": {"type": "dhcp"}}'
asserts:
- hasDocuments:
count: 3
count: 4
- isKind:
of: NetworkAttachmentDefinition
- isAPIVersion:

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -6,7 +6,7 @@ tests:
- it: should pass with default values
asserts:
- hasDocuments:
count: 2
count: 3
- it: should fail with more than 1 primary rbac
set:
@@ -45,7 +45,7 @@ tests:
subjects: *subjects
asserts:
- hasDocuments:
count: 4
count: 5
- isKind:
of: Role
- equal:
@@ -63,7 +63,7 @@ tests:
subjects: *subjects
asserts:
- hasDocuments:
count: 4
count: 5
- isKind:
of: RoleBinding
- equal:
@@ -82,7 +82,7 @@ tests:
subjects: *subjects
asserts:
- hasDocuments:
count: 4
count: 5
- isKind:
of: ClusterRole
- equal:
@@ -101,7 +101,7 @@ tests:
subjects: *subjects
asserts:
- hasDocuments:
count: 4
count: 5
- isKind:
of: ClusterRoleBinding
- equal:
@@ -124,7 +124,7 @@ tests:
subjects: *subjects
asserts:
- hasDocuments:
count: 6
count: 7
- isKind:
of: Role
- equal:
@@ -147,7 +147,7 @@ tests:
subjects: *subjects
asserts:
- hasDocuments:
count: 6
count: 7
- isKind:
of: Role
- equal:
@@ -170,7 +170,7 @@ tests:
subjects: *subjects
asserts:
- hasDocuments:
count: 6
count: 7
- isKind:
of: RoleBinding
- equal:
@@ -193,7 +193,7 @@ tests:
subjects: *subjects
asserts:
- hasDocuments:
count: 6
count: 7
- isKind:
of: RoleBinding
- equal:
@@ -217,7 +217,7 @@ tests:
subjects: *subjects
asserts:
- hasDocuments:
count: 6
count: 7
- isKind:
of: ClusterRole
- equal:
@@ -241,7 +241,7 @@ tests:
subjects: *subjects
asserts:
- hasDocuments:
count: 6
count: 7
- isKind:
of: ClusterRole
- equal:
@@ -265,7 +265,7 @@ tests:
subjects: *subjects
asserts:
- hasDocuments:
count: 6
count: 7
- isKind:
of: ClusterRoleBinding
- equal:
@@ -289,7 +289,7 @@ tests:
subjects: *subjects
asserts:
- hasDocuments:
count: 6
count: 7
- isKind:
of: ClusterRoleBinding
- equal:
@@ -312,7 +312,7 @@ tests:
subjects: *subjects
asserts:
- hasDocuments:
count: 6
count: 7
- isKind:
of: Role
- equal:
@@ -335,7 +335,7 @@ tests:
subjects: *subjects
asserts:
- hasDocuments:
count: 6
count: 7
- isKind:
of: Role
- equal:
@@ -358,7 +358,7 @@ tests:
subjects: *subjects
asserts:
- hasDocuments:
count: 6
count: 7
- isKind:
of: RoleBinding
- equal:
@@ -381,7 +381,7 @@ tests:
subjects: *subjects
asserts:
- hasDocuments:
count: 6
count: 7
- isKind:
of: RoleBinding
- equal:
@@ -405,7 +405,7 @@ tests:
subjects: *subjects
asserts:
- hasDocuments:
count: 6
count: 7
- isKind:
of: ClusterRole
- equal:
@@ -429,7 +429,7 @@ tests:
subjects: *subjects
asserts:
- hasDocuments:
count: 6
count: 7
- isKind:
of: ClusterRole
- equal:
@@ -453,7 +453,7 @@ tests:
subjects: *subjects
asserts:
- hasDocuments:
count: 6
count: 7
- isKind:
of: ClusterRoleBinding
- equal:
@@ -477,7 +477,7 @@ tests:
subjects: *subjects
asserts:
- hasDocuments:
count: 6
count: 7
- isKind:
of: ClusterRoleBinding
- equal:

View File

@@ -6,7 +6,7 @@ tests:
- it: should pass with default values
asserts:
- hasDocuments:
count: 2
count: 3
- it: should fail with more than 1 primary serviceAccounts
set:
@@ -30,7 +30,7 @@ tests:
primary: false
asserts:
- hasDocuments:
count: 3
count: 4
- isKind:
of: ServiceAccount
- equal:
@@ -49,7 +49,7 @@ tests:
primary: false
asserts:
- hasDocuments:
count: 4
count: 5
- isKind:
of: ServiceAccount
- equal:
@@ -68,7 +68,7 @@ tests:
primary: false
asserts:
- hasDocuments:
count: 4
count: 5
- isKind:
of: ServiceAccount
- equal:
@@ -87,7 +87,7 @@ tests:
primary: true
asserts:
- hasDocuments:
count: 4
count: 5
- isKind:
of: ServiceAccount
- equal:
@@ -106,7 +106,7 @@ tests:
primary: true
asserts:
- hasDocuments:
count: 4
count: 5
- isKind:
of: ServiceAccount
- equal:

View File

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

View File

@@ -2,6 +2,7 @@
{{- if .Values.portal -}}
{{- if .Values.portal.enabled -}}
{{- include "ix.v1.common.class.portal" (dict "root" $) -}}
{{/* TODO: Unittests */}}
{{- end -}}
{{- end -}}
{{- end -}}