diff --git a/library/common-test/tests/container_in_deployment/command-arg_test.yaml b/library/common-test/tests/container_in_deployment/command-arg_test.yaml index 249e0dce27..7b75d0ab6e 100644 --- a/library/common-test/tests/container_in_deployment/command-arg_test.yaml +++ b/library/common-test/tests/container_in_deployment/command-arg_test.yaml @@ -5,6 +5,8 @@ tests: - it: should pass with default values documentIndex: &deploymentDoc 0 asserts: + - hasDocuments: + count: 2 - isKind: of: Deployment diff --git a/library/common-test/tests/container_in_deployment/env_from.yaml b/library/common-test/tests/container_in_deployment/env_from.yaml index 0d52ca8613..3ad11a67f6 100644 --- a/library/common-test/tests/container_in_deployment/env_from.yaml +++ b/library/common-test/tests/container_in_deployment/env_from.yaml @@ -5,6 +5,8 @@ tests: - it: should pass with default values documentIndex: &deploymentDoc 0 asserts: + - hasDocuments: + count: 2 - isKind: of: Deployment diff --git a/library/common-test/tests/container_in_deployment/env_list.yaml b/library/common-test/tests/container_in_deployment/env_list.yaml index c292fda402..97aaad996a 100644 --- a/library/common-test/tests/container_in_deployment/env_list.yaml +++ b/library/common-test/tests/container_in_deployment/env_list.yaml @@ -5,6 +5,8 @@ tests: - it: should pass with default values documentIndex: &deploymentDoc 0 asserts: + - hasDocuments: + count: 2 - isKind: of: Deployment diff --git a/library/common-test/tests/container_in_deployment/env_test.yaml b/library/common-test/tests/container_in_deployment/env_test.yaml index 64f10e1db6..39e9335008 100644 --- a/library/common-test/tests/container_in_deployment/env_test.yaml +++ b/library/common-test/tests/container_in_deployment/env_test.yaml @@ -5,6 +5,8 @@ tests: - it: should pass with default values documentIndex: &deploymentDoc 0 asserts: + - hasDocuments: + count: 2 - isKind: of: Deployment diff --git a/library/common-test/tests/container_in_deployment/fixedEnv_test.yaml b/library/common-test/tests/container_in_deployment/fixedEnv_test.yaml index 4a49c9e823..73ea4d9b68 100644 --- a/library/common-test/tests/container_in_deployment/fixedEnv_test.yaml +++ b/library/common-test/tests/container_in_deployment/fixedEnv_test.yaml @@ -5,6 +5,8 @@ tests: - it: should pass with default values documentIndex: &deploymentDoc 0 asserts: + - hasDocuments: + count: 2 - isKind: of: Deployment diff --git a/library/common-test/tests/container_in_deployment/image_test.yaml b/library/common-test/tests/container_in_deployment/image_test.yaml index e8ab0e40f5..a5086360d8 100644 --- a/library/common-test/tests/container_in_deployment/image_test.yaml +++ b/library/common-test/tests/container_in_deployment/image_test.yaml @@ -6,6 +6,8 @@ tests: - it: should pass with default values documentIndex: &deploymentDoc 0 asserts: + - hasDocuments: + count: 2 - isKind: of: Deployment diff --git a/library/common-test/tests/container_in_deployment/lifecycle_test.yaml b/library/common-test/tests/container_in_deployment/lifecycle_test.yaml index 3799850211..e8ff8bf8cd 100644 --- a/library/common-test/tests/container_in_deployment/lifecycle_test.yaml +++ b/library/common-test/tests/container_in_deployment/lifecycle_test.yaml @@ -6,6 +6,8 @@ tests: - it: should pass with default values documentIndex: &deploymentDoc 0 asserts: + - hasDocuments: + count: 2 - isKind: of: Deployment diff --git a/library/common-test/tests/container_in_deployment/port_test.yaml b/library/common-test/tests/container_in_deployment/port_test.yaml index 03534306e7..d47a651bf0 100644 --- a/library/common-test/tests/container_in_deployment/port_test.yaml +++ b/library/common-test/tests/container_in_deployment/port_test.yaml @@ -6,7 +6,7 @@ tests: documentIndex: &deploymentDoc 0 asserts: - hasDocuments: - count: 1 + count: 2 - isKind: of: Deployment diff --git a/library/common-test/tests/container_in_deployment/probe_test.yaml b/library/common-test/tests/container_in_deployment/probe_test.yaml index a3cc82f0f6..5eeec11e2f 100644 --- a/library/common-test/tests/container_in_deployment/probe_test.yaml +++ b/library/common-test/tests/container_in_deployment/probe_test.yaml @@ -6,7 +6,7 @@ tests: documentIndex: &deploymentDoc 0 asserts: - hasDocuments: - count: 1 + count: 2 - isKind: of: Deployment - isSubset: diff --git a/library/common-test/tests/container_in_deployment/resources_test.yaml b/library/common-test/tests/container_in_deployment/resources_test.yaml index b9da2b36cb..7d66084c79 100644 --- a/library/common-test/tests/container_in_deployment/resources_test.yaml +++ b/library/common-test/tests/container_in_deployment/resources_test.yaml @@ -6,7 +6,7 @@ tests: documentIndex: &deploymentDoc 0 asserts: - hasDocuments: - count: 1 + count: 2 - isKind: of: Deployment - equal: diff --git a/library/common-test/tests/container_in_deployment/securityContext_test.yaml b/library/common-test/tests/container_in_deployment/securityContext_test.yaml index 59a591cf08..119ef93e6f 100644 --- a/library/common-test/tests/container_in_deployment/securityContext_test.yaml +++ b/library/common-test/tests/container_in_deployment/securityContext_test.yaml @@ -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: diff --git a/library/common-test/tests/container_in_deployment/various_options_test.yaml b/library/common-test/tests/container_in_deployment/various_options_test.yaml index d4a1fa5b22..0641e39c6e 100644 --- a/library/common-test/tests/container_in_deployment/various_options_test.yaml +++ b/library/common-test/tests/container_in_deployment/various_options_test.yaml @@ -6,6 +6,8 @@ tests: - it: should pass with default values documentIndex: &deploymentDoc 0 asserts: + - hasDocuments: + count: 2 - isKind: of: Deployment diff --git a/library/common-test/tests/container_in_deployment/volumeMounts_test.yaml b/library/common-test/tests/container_in_deployment/volumeMounts_test.yaml index e26412f784..4f12aeefa9 100644 --- a/library/common-test/tests/container_in_deployment/volumeMounts_test.yaml +++ b/library/common-test/tests/container_in_deployment/volumeMounts_test.yaml @@ -5,6 +5,8 @@ tests: - it: should pass with default values documentIndex: &deploymentDoc 0 asserts: + - hasDocuments: + count: 2 - isKind: of: Deployment - isNull: diff --git a/library/common-test/tests/deployment/annotation_test.yaml b/library/common-test/tests/deployment/annotation_test.yaml index 98bc72bb8e..677a3cc4ec 100644 --- a/library/common-test/tests/deployment/annotation_test.yaml +++ b/library/common-test/tests/deployment/annotation_test.yaml @@ -5,6 +5,8 @@ tests: - it: should pass with default values documentIndex: &deploymentDoc 0 asserts: + - hasDocuments: + count: 2 - isKind: of: Deployment - isNotEmpty: diff --git a/library/common-test/tests/deployment/controller_test.yaml b/library/common-test/tests/deployment/controller_test.yaml index c388f0ca52..37d0e90e9a 100644 --- a/library/common-test/tests/deployment/controller_test.yaml +++ b/library/common-test/tests/deployment/controller_test.yaml @@ -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 diff --git a/library/common-test/tests/deployment/default_test.yaml b/library/common-test/tests/deployment/default_test.yaml index e2e4b4a195..7de57482be 100644 --- a/library/common-test/tests/deployment/default_test.yaml +++ b/library/common-test/tests/deployment/default_test.yaml @@ -5,6 +5,8 @@ tests: - it: should pass with default values documentIndex: &deploymentDoc 0 asserts: + - hasDocuments: + count: 2 - isKind: of: Deployment - isAPIVersion: diff --git a/library/common-test/tests/deployment/dns-network_test.yaml b/library/common-test/tests/deployment/dns-network_test.yaml index f354daf26a..518b578c2f 100644 --- a/library/common-test/tests/deployment/dns-network_test.yaml +++ b/library/common-test/tests/deployment/dns-network_test.yaml @@ -6,6 +6,8 @@ tests: - it: should pass with default values documentIndex: &deploymentDoc 0 asserts: + - hasDocuments: + count: 2 - isKind: of: Deployment diff --git a/library/common-test/tests/deployment/label_test.yaml b/library/common-test/tests/deployment/label_test.yaml index 7a4e603ba3..cebe3ee090 100644 --- a/library/common-test/tests/deployment/label_test.yaml +++ b/library/common-test/tests/deployment/label_test.yaml @@ -7,6 +7,8 @@ tests: - it: should pass with default values documentIndex: &deploymentDoc 0 asserts: + - hasDocuments: + count: 2 - isKind: of: Deployment - equal: diff --git a/library/common-test/tests/deployment/names_test.yaml b/library/common-test/tests/deployment/names_test.yaml index a4dffb4c61..6f86e70010 100644 --- a/library/common-test/tests/deployment/names_test.yaml +++ b/library/common-test/tests/deployment/names_test.yaml @@ -5,6 +5,8 @@ tests: - it: should pass with default values documentIndex: &deploymentDoc 0 asserts: + - hasDocuments: + count: 2 - isKind: of: Deployment - equal: diff --git a/library/common-test/tests/deployment/podSecurityContext_test.yaml b/library/common-test/tests/deployment/podSecurityContext_test.yaml index f0a025ea38..977237499c 100644 --- a/library/common-test/tests/deployment/podSecurityContext_test.yaml +++ b/library/common-test/tests/deployment/podSecurityContext_test.yaml @@ -5,6 +5,8 @@ tests: - it: should pass with default values documentIndex: &deploymentDoc 0 asserts: + - hasDocuments: + count: 2 - isKind: of: Deployment - equal: diff --git a/library/common-test/tests/deployment/serviceAccountName_test.yaml b/library/common-test/tests/deployment/serviceAccountName_test.yaml index 7117bc9698..8d57d3c813 100644 --- a/library/common-test/tests/deployment/serviceAccountName_test.yaml +++ b/library/common-test/tests/deployment/serviceAccountName_test.yaml @@ -4,7 +4,10 @@ templates: - common.yaml tests: - it: should pass with default values + documentIndex: &deploymentDoc 0 asserts: + - hasDocuments: + count: 2 - isKind: of: Deployment diff --git a/library/common-test/tests/deployment/various_options_test.yaml b/library/common-test/tests/deployment/various_options_test.yaml index 3467fc333d..d097d07f92 100644 --- a/library/common-test/tests/deployment/various_options_test.yaml +++ b/library/common-test/tests/deployment/various_options_test.yaml @@ -6,6 +6,8 @@ tests: - it: should pass with default values documentIndex: &deploymentDoc 0 asserts: + - hasDocuments: + count: 2 - isKind: of: Deployment diff --git a/library/common-test/tests/deployment/volume_test.yaml b/library/common-test/tests/deployment/volume_test.yaml index b01320716d..eb94ff1972 100644 --- a/library/common-test/tests/deployment/volume_test.yaml +++ b/library/common-test/tests/deployment/volume_test.yaml @@ -5,6 +5,8 @@ tests: - it: should pass with default values documentIndex: &deploymentDoc 0 asserts: + - hasDocuments: + count: 2 - isKind: of: Deployment - isNull: diff --git a/library/common-test/tests/rbac/rbac_test.yaml b/library/common-test/tests/rbac/rbac_test.yaml index 44536b9e2a..ddac929f93 100644 --- a/library/common-test/tests/rbac/rbac_test.yaml +++ b/library/common-test/tests/rbac/rbac_test.yaml @@ -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 diff --git a/library/common-test/tests/serviceAccount/serviceAccount_test.yaml b/library/common-test/tests/serviceAccount/serviceAccount_test.yaml index 82479f9388..07357e04db 100644 --- a/library/common-test/tests/serviceAccount/serviceAccount_test.yaml +++ b/library/common-test/tests/serviceAccount/serviceAccount_test.yaml @@ -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 diff --git a/library/common-test/tests/utils/utils_primary_port_test.yaml b/library/common-test/tests/utils/utils_primary_port_test.yaml index def1460705..6e5ea1e7c9 100644 --- a/library/common-test/tests/utils/utils_primary_port_test.yaml +++ b/library/common-test/tests/utils/utils_primary_port_test.yaml @@ -7,7 +7,7 @@ tests: documentIndex: &deploymentDoc 0 asserts: - hasDocuments: - count: 1 + count: 2 - isKind: of: Deployment - equal: diff --git a/library/common-test/tests/utils/utils_primary_rbac_test.yaml b/library/common-test/tests/utils/utils_primary_rbac_test.yaml index 1baa90565f..9a95e4180e 100644 --- a/library/common-test/tests/utils/utils_primary_rbac_test.yaml +++ b/library/common-test/tests/utils/utils_primary_rbac_test.yaml @@ -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: diff --git a/library/common-test/tests/utils/utils_primary_serviceAccount_test.yaml b/library/common-test/tests/utils/utils_primary_serviceAccount_test.yaml index fe027b7e57..f40b5e6f3b 100644 --- a/library/common-test/tests/utils/utils_primary_serviceAccount_test.yaml +++ b/library/common-test/tests/utils/utils_primary_serviceAccount_test.yaml @@ -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: diff --git a/library/common-test/tests/utils/utils_primary_service_test.yaml b/library/common-test/tests/utils/utils_primary_service_test.yaml index 6550530625..7c74b5745e 100644 --- a/library/common-test/tests/utils/utils_primary_service_test.yaml +++ b/library/common-test/tests/utils/utils_primary_service_test.yaml @@ -7,7 +7,7 @@ tests: documentIndex: &deploymentDoc 0 asserts: - hasDocuments: - count: 1 + count: 2 - isKind: of: Deployment - equal: