From 8bee4dc6aba7cd68fc9dbc07b52346f3a1e59bef Mon Sep 17 00:00:00 2001 From: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Date: Sat, 8 Jul 2023 11:58:26 +0300 Subject: [PATCH] chore(tests): explicitly set namespace on test (#487) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit **Description** ⚒️ Fixes # In continuation of #486 Sets a specific `namespace` on tests and adapts the tests in 1-2 cases that the namespace was being tested. **⚙️ Type of change** - [ ] ⚙️ Feature/App addition - [ ] 🪛 Bugfix - [ ] ⚠️ Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] 🔃 Refactor of current code **🧪 How Has This Been Tested?** **📃 Notes:** **✔️ Checklist:** - [ ] ⚖️ My code follows the style guidelines of this project - [ ] 👀 I have performed a self-review of my own code - [ ] #️⃣ I have commented my code, particularly in hard-to-understand areas - [ ] 📄 I have made corresponding changes to the documentation - [ ] ⚠️ My changes generate no new warnings - [ ] 🧪 I have added tests to this description that prove my fix is effective or that my feature works - [ ] ⬆️ I increased versions for any altered app according to semantic versioning **➕ App addition** If this PR is an app addition please make sure you have done the following. - [ ] 🪞 I have opened a PR on [truecharts/containers](https://github.com/truecharts/containers) adding the container to TrueCharts mirror repo. - [ ] 🖼️ I have added an icon in the Chart's root directory called `icon.png` --- _Please don't blindly check all the boxes. Read them and only check those that apply. Those checkboxes are there for the reviewer to see what is this all about and the status of this PR with a quick glance._ --- library/common-test/tests/addons/autoperms_test.yaml | 1 + library/common-test/tests/addons/codeserver_test.yaml | 1 + library/common-test/tests/addons/netshoot_test.yaml | 1 + library/common-test/tests/addons/vpn_test.yaml | 1 + library/common-test/tests/certificate/data_test.yaml | 1 + library/common-test/tests/certificate/metadata_test.yaml | 1 + library/common-test/tests/certificate/name_test.yaml | 1 + .../common-test/tests/certificate/validation_test.yaml | 1 + library/common-test/tests/cnpg/custom_conf_test.yaml | 1 + library/common-test/tests/cnpg/stop_test.yaml | 1 + library/common-test/tests/configmap/data_test.yaml | 1 + library/common-test/tests/configmap/metadata_test.yaml | 1 + library/common-test/tests/configmap/name_test.yaml | 1 + library/common-test/tests/configmap/validation_test.yaml | 1 + library/common-test/tests/container/arg_test.yaml | 1 + library/common-test/tests/container/command_test.yaml | 1 + library/common-test/tests/container/envFixed_test .yaml | 1 + library/common-test/tests/container/envFrom_test.yaml | 1 + library/common-test/tests/container/envList_test.yaml | 1 + library/common-test/tests/container/env_dupe_test.yaml | 1 + library/common-test/tests/container/env_test.yaml | 1 + library/common-test/tests/container/image_test.yaml | 1 + library/common-test/tests/container/lifecycle_test.yaml | 1 + library/common-test/tests/container/name_test.yaml | 1 + library/common-test/tests/container/ports_test.yaml | 1 + library/common-test/tests/container/probes_test.yaml | 1 + library/common-test/tests/container/resources_test.yaml | 1 + .../tests/container/securityContext_test.yaml | 1 + .../common-test/tests/container/termination_test.yaml | 1 + library/common-test/tests/container/tty_stdin_test.yaml | 1 + library/common-test/tests/container/validation_test.yaml | 1 + .../common-test/tests/container/volumeMounts_test.yaml | 1 + library/common-test/tests/cronjob/metadata_test.yaml | 1 + library/common-test/tests/cronjob/spec_test.yaml | 1 + library/common-test/tests/cronjob/validation_test.yaml | 1 + library/common-test/tests/daemonset/metadata_test.yaml | 1 + library/common-test/tests/daemonset/spec_test.yaml | 1 + library/common-test/tests/daemonset/validation_test.yaml | 1 + library/common-test/tests/defaults/defaults-test.yaml | 1 + library/common-test/tests/deployment/metadata_test.yaml | 1 + library/common-test/tests/deployment/spec_test.yaml | 1 + .../common-test/tests/deployment/validation_test.yaml | 1 + .../tests/externalInterface/metadata_test.yaml | 1 + .../common-test/tests/externalInterface/name_test.yaml | 1 + .../tests/externalInterface/validation_test.yaml | 1 + library/common-test/tests/extraTpl/extratpl_test.yaml | 1 + library/common-test/tests/imagePullSecret/data_test.yaml | 1 + .../common-test/tests/imagePullSecret/metadata_test.yaml | 1 + library/common-test/tests/imagePullSecret/name_test.yaml | 1 + .../tests/imagePullSecret/validation_test.yaml | 1 + library/common-test/tests/ingress/metadata_test.yaml | 1 + library/common-test/tests/ingress/presence_test.yaml | 1 + .../tests/ingress/service_reference_test.yaml | 1 + library/common-test/tests/ingress/tls_test.yaml | 1 + library/common-test/tests/ingress/values_test.yaml | 1 + library/common-test/tests/initContainer/data_test.yaml | 1 + .../tests/initContainer/data_upgrade_test.yaml | 1 + library/common-test/tests/initContainer/name_test.yaml | 1 + .../tests/initContainer/name_upgrade_test.yaml | 1 + .../common-test/tests/initContainer/validation_test.yaml | 1 + library/common-test/tests/job/metadata_test.yaml | 1 + library/common-test/tests/job/spec_test.yaml | 1 + library/common-test/tests/job/validation_test.yaml | 1 + library/common-test/tests/metrics/defaults_test.yaml | 1 + library/common-test/tests/operator/operator_test.yaml | 1 + library/common-test/tests/persistence/metadata_test.yaml | 1 + library/common-test/tests/persistence/names_test.yaml | 1 + library/common-test/tests/persistence/pvc_data_test.yaml | 1 + .../common-test/tests/persistence/validation_test.yaml | 1 + .../common-test/tests/pod/automount_sa_token_test.yaml | 1 + library/common-test/tests/pod/dns_config_test.yaml | 1 + library/common-test/tests/pod/dns_policy_test.yaml | 1 + .../common-test/tests/pod/enable_service_links_test.yaml | 1 + library/common-test/tests/pod/host-aliases_test.yaml | 1 + library/common-test/tests/pod/host_network_test.yaml | 1 + library/common-test/tests/pod/host_pid_test.yaml | 1 + library/common-test/tests/pod/hostname_test.yaml | 1 + .../common-test/tests/pod/image_pull_secret_test.yaml | 1 + library/common-test/tests/pod/node_selector_test.yaml | 1 + .../common-test/tests/pod/priority_class_name_test.yaml | 1 + library/common-test/tests/pod/restart_policy_test.yaml | 1 + .../common-test/tests/pod/runtime_class_name_test.yaml | 1 + library/common-test/tests/pod/scheduler_name_test.yaml | 1 + library/common-test/tests/pod/securityContext.yaml | 1 + .../common-test/tests/pod/service_account_name_test.yaml | 1 + .../tests/pod/share_process_namespace_test.yaml | 1 + .../tests/pod/termination_grace_period_test.yaml | 1 + library/common-test/tests/pod/tolerations_test.yaml | 1 + library/common-test/tests/pod/volume_configmap_test.yaml | 1 + library/common-test/tests/pod/volume_device_test.yaml | 1 + library/common-test/tests/pod/volume_emptyDIr_test.yaml | 1 + library/common-test/tests/pod/volume_hostPath_test.yaml | 1 + library/common-test/tests/pod/volume_ixVolume_test.yaml | 1 + library/common-test/tests/pod/volume_nfs_test.yaml | 1 + library/common-test/tests/pod/volume_pvc_test.yaml | 1 + library/common-test/tests/pod/volume_secret_test.yaml | 1 + library/common-test/tests/rbac/data_test.yaml | 9 +++++---- library/common-test/tests/rbac/metadata_test.yaml | 1 + library/common-test/tests/rbac/name_test.yaml | 1 + library/common-test/tests/rbac/validation_test.yaml | 1 + library/common-test/tests/secret/data_test.yaml | 1 + library/common-test/tests/secret/metadata_test.yaml | 1 + library/common-test/tests/secret/name_test.yaml | 1 + library/common-test/tests/secret/validation_test.yaml | 1 + library/common-test/tests/service/cluster_ip_test.yaml | 1 + library/common-test/tests/service/external_ip_test.yaml | 1 + .../common-test/tests/service/external_name_test.yaml | 1 + library/common-test/tests/service/list_test.yaml | 1 + .../common-test/tests/service/load_balancer_test.yaml | 1 + library/common-test/tests/service/metadata_test.yaml | 1 + library/common-test/tests/service/names_test.yaml | 1 + library/common-test/tests/service/node_port_test.yaml | 1 + library/common-test/tests/service/validation_test.yaml | 1 + .../common-test/tests/serviceAccount/metadata_test.yaml | 1 + library/common-test/tests/serviceAccount/name_test.yaml | 1 + .../tests/serviceAccount/validation_test.yaml | 1 + library/common-test/tests/statefulset/metadata_test.yaml | 1 + library/common-test/tests/statefulset/spec_test.yaml | 1 + .../common-test/tests/statefulset/validation_test.yaml | 1 + .../tests/volumeClaimTemplate/metadata_test.yaml | 1 + .../tests/volumeClaimTemplate/names_test.yaml | 1 + .../tests/volumeClaimTemplate/validation_test.yaml | 1 + .../tests/volumeClaimTemplate/vct_data_test.yaml | 1 + library/common-test/tests/workload/names_test.yaml | 1 + library/common-test/tests/workload/validation_test.yaml | 1 + 125 files changed, 129 insertions(+), 4 deletions(-) diff --git a/library/common-test/tests/addons/autoperms_test.yaml b/library/common-test/tests/addons/autoperms_test.yaml index c8d2dee5..501a0939 100644 --- a/library/common-test/tests/addons/autoperms_test.yaml +++ b/library/common-test/tests/addons/autoperms_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should render permissions job set: diff --git a/library/common-test/tests/addons/codeserver_test.yaml b/library/common-test/tests/addons/codeserver_test.yaml index 0c4f00fd..4bf83662 100644 --- a/library/common-test/tests/addons/codeserver_test.yaml +++ b/library/common-test/tests/addons/codeserver_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: addon enabled should pass set: diff --git a/library/common-test/tests/addons/netshoot_test.yaml b/library/common-test/tests/addons/netshoot_test.yaml index 1fd5648f..c16778d3 100644 --- a/library/common-test/tests/addons/netshoot_test.yaml +++ b/library/common-test/tests/addons/netshoot_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: addon enabled should pass set: diff --git a/library/common-test/tests/addons/vpn_test.yaml b/library/common-test/tests/addons/vpn_test.yaml index 98d704cc..f1640533 100644 --- a/library/common-test/tests/addons/vpn_test.yaml +++ b/library/common-test/tests/addons/vpn_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: addon vpn gluetun enabled with config and env should pass set: diff --git a/library/common-test/tests/certificate/data_test.yaml b/library/common-test/tests/certificate/data_test.yaml index 9d111dc4..daaa7faa 100644 --- a/library/common-test/tests/certificate/data_test.yaml +++ b/library/common-test/tests/certificate/data_test.yaml @@ -5,6 +5,7 @@ chart: appVersion: &appVer v9.9.9 release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with secret created for certificate set: diff --git a/library/common-test/tests/certificate/metadata_test.yaml b/library/common-test/tests/certificate/metadata_test.yaml index 6a33b303..ff620ca1 100644 --- a/library/common-test/tests/certificate/metadata_test.yaml +++ b/library/common-test/tests/certificate/metadata_test.yaml @@ -5,6 +5,7 @@ chart: appVersion: &appVer v9.9.9 release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with certificate created with labels and annotations set: diff --git a/library/common-test/tests/certificate/name_test.yaml b/library/common-test/tests/certificate/name_test.yaml index 649192fc..a3402018 100644 --- a/library/common-test/tests/certificate/name_test.yaml +++ b/library/common-test/tests/certificate/name_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should generate correct name set: diff --git a/library/common-test/tests/certificate/validation_test.yaml b/library/common-test/tests/certificate/validation_test.yaml index 4a2f88fb..99cc8c7c 100644 --- a/library/common-test/tests/certificate/validation_test.yaml +++ b/library/common-test/tests/certificate/validation_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should fail with name longer than 63 characters set: diff --git a/library/common-test/tests/cnpg/custom_conf_test.yaml b/library/common-test/tests/cnpg/custom_conf_test.yaml index 19c1bd3c..e1d4cbd6 100644 --- a/library/common-test/tests/cnpg/custom_conf_test.yaml +++ b/library/common-test/tests/cnpg/custom_conf_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with custom-conf set: diff --git a/library/common-test/tests/cnpg/stop_test.yaml b/library/common-test/tests/cnpg/stop_test.yaml index 2484dd1f..67ca2477 100644 --- a/library/common-test/tests/cnpg/stop_test.yaml +++ b/library/common-test/tests/cnpg/stop_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with hibernate set: diff --git a/library/common-test/tests/configmap/data_test.yaml b/library/common-test/tests/configmap/data_test.yaml index 92590b4b..eda2f672 100644 --- a/library/common-test/tests/configmap/data_test.yaml +++ b/library/common-test/tests/configmap/data_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with key-value data set: diff --git a/library/common-test/tests/configmap/metadata_test.yaml b/library/common-test/tests/configmap/metadata_test.yaml index ccee2037..d3687250 100644 --- a/library/common-test/tests/configmap/metadata_test.yaml +++ b/library/common-test/tests/configmap/metadata_test.yaml @@ -5,6 +5,7 @@ chart: appVersion: &appVer v9.9.9 release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with configmap created with labels and annotations set: diff --git a/library/common-test/tests/configmap/name_test.yaml b/library/common-test/tests/configmap/name_test.yaml index 4bc70d96..066e88f4 100644 --- a/library/common-test/tests/configmap/name_test.yaml +++ b/library/common-test/tests/configmap/name_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should generate correct name set: diff --git a/library/common-test/tests/configmap/validation_test.yaml b/library/common-test/tests/configmap/validation_test.yaml index 83a26dce..8091d13d 100644 --- a/library/common-test/tests/configmap/validation_test.yaml +++ b/library/common-test/tests/configmap/validation_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should fail with name longer than 63 characters set: diff --git a/library/common-test/tests/container/arg_test.yaml b/library/common-test/tests/container/arg_test.yaml index be1587b3..6f4f2a15 100644 --- a/library/common-test/tests/container/arg_test.yaml +++ b/library/common-test/tests/container/arg_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should create the correct multiple args set: diff --git a/library/common-test/tests/container/command_test.yaml b/library/common-test/tests/container/command_test.yaml index 9f3a8add..79bdbb6e 100644 --- a/library/common-test/tests/container/command_test.yaml +++ b/library/common-test/tests/container/command_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should create the correct command in scalar set: diff --git a/library/common-test/tests/container/envFixed_test .yaml b/library/common-test/tests/container/envFixed_test .yaml index 14e71d40..9fe64e7c 100644 --- a/library/common-test/tests/container/envFixed_test .yaml +++ b/library/common-test/tests/container/envFixed_test .yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should create the correct fixed envs set: diff --git a/library/common-test/tests/container/envFrom_test.yaml b/library/common-test/tests/container/envFrom_test.yaml index c3baa155..4129cfb7 100644 --- a/library/common-test/tests/container/envFrom_test.yaml +++ b/library/common-test/tests/container/envFrom_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should create the correct envFrom set: diff --git a/library/common-test/tests/container/envList_test.yaml b/library/common-test/tests/container/envList_test.yaml index 749088a8..2b559f37 100644 --- a/library/common-test/tests/container/envList_test.yaml +++ b/library/common-test/tests/container/envList_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should create the correct envList set: diff --git a/library/common-test/tests/container/env_dupe_test.yaml b/library/common-test/tests/container/env_dupe_test.yaml index a8f5696a..07d6c4a2 100644 --- a/library/common-test/tests/container/env_dupe_test.yaml +++ b/library/common-test/tests/container/env_dupe_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: # Failures - it: should fail with dupe env in env and envList diff --git a/library/common-test/tests/container/env_test.yaml b/library/common-test/tests/container/env_test.yaml index 9ddd68d1..97415318 100644 --- a/library/common-test/tests/container/env_test.yaml +++ b/library/common-test/tests/container/env_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should create the correct env set: diff --git a/library/common-test/tests/container/image_test.yaml b/library/common-test/tests/container/image_test.yaml index 75fda9fe..131054cf 100644 --- a/library/common-test/tests/container/image_test.yaml +++ b/library/common-test/tests/container/image_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should generate correct image set: diff --git a/library/common-test/tests/container/lifecycle_test.yaml b/library/common-test/tests/container/lifecycle_test.yaml index 755bb801..6a891054 100644 --- a/library/common-test/tests/container/lifecycle_test.yaml +++ b/library/common-test/tests/container/lifecycle_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with lifecycle set: diff --git a/library/common-test/tests/container/name_test.yaml b/library/common-test/tests/container/name_test.yaml index 94b93ce9..4ec5d713 100644 --- a/library/common-test/tests/container/name_test.yaml +++ b/library/common-test/tests/container/name_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should generate correct container name set: diff --git a/library/common-test/tests/container/ports_test.yaml b/library/common-test/tests/container/ports_test.yaml index 7455b35a..896ffb41 100644 --- a/library/common-test/tests/container/ports_test.yaml +++ b/library/common-test/tests/container/ports_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should create the correct ports without selector set: diff --git a/library/common-test/tests/container/probes_test.yaml b/library/common-test/tests/container/probes_test.yaml index 42eb7ba3..50af4983 100644 --- a/library/common-test/tests/container/probes_test.yaml +++ b/library/common-test/tests/container/probes_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should create the probes correctly set: diff --git a/library/common-test/tests/container/resources_test.yaml b/library/common-test/tests/container/resources_test.yaml index 58053793..6d4a6c63 100644 --- a/library/common-test/tests/container/resources_test.yaml +++ b/library/common-test/tests/container/resources_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should create the resources correctly set: diff --git a/library/common-test/tests/container/securityContext_test.yaml b/library/common-test/tests/container/securityContext_test.yaml index 0bc1d06b..01e2eef3 100644 --- a/library/common-test/tests/container/securityContext_test.yaml +++ b/library/common-test/tests/container/securityContext_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should create the securityContext correctly set: diff --git a/library/common-test/tests/container/termination_test.yaml b/library/common-test/tests/container/termination_test.yaml index 19fcb859..128eef30 100644 --- a/library/common-test/tests/container/termination_test.yaml +++ b/library/common-test/tests/container/termination_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with termination set set: diff --git a/library/common-test/tests/container/tty_stdin_test.yaml b/library/common-test/tests/container/tty_stdin_test.yaml index ccf8f37b..849f2bac 100644 --- a/library/common-test/tests/container/tty_stdin_test.yaml +++ b/library/common-test/tests/container/tty_stdin_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass without tty and stdin set: diff --git a/library/common-test/tests/container/validation_test.yaml b/library/common-test/tests/container/validation_test.yaml index d2c237e1..344c483a 100644 --- a/library/common-test/tests/container/validation_test.yaml +++ b/library/common-test/tests/container/validation_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should fail with more than one primary container on a workload set: diff --git a/library/common-test/tests/container/volumeMounts_test.yaml b/library/common-test/tests/container/volumeMounts_test.yaml index 4ae6fc90..8c8c8399 100644 --- a/library/common-test/tests/container/volumeMounts_test.yaml +++ b/library/common-test/tests/container/volumeMounts_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with shared volume on multiple workloads and containers with targetSelectAll set: diff --git a/library/common-test/tests/cronjob/metadata_test.yaml b/library/common-test/tests/cronjob/metadata_test.yaml index 2c7927d3..d948c40e 100644 --- a/library/common-test/tests/cronjob/metadata_test.yaml +++ b/library/common-test/tests/cronjob/metadata_test.yaml @@ -5,6 +5,7 @@ chart: appVersion: &appVer v9.9.9 release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with cronjob created with labels and annotations set: diff --git a/library/common-test/tests/cronjob/spec_test.yaml b/library/common-test/tests/cronjob/spec_test.yaml index 75e00ba7..388ca068 100644 --- a/library/common-test/tests/cronjob/spec_test.yaml +++ b/library/common-test/tests/cronjob/spec_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with workload enabled set: diff --git a/library/common-test/tests/cronjob/validation_test.yaml b/library/common-test/tests/cronjob/validation_test.yaml index 460626b1..18f90c1b 100644 --- a/library/common-test/tests/cronjob/validation_test.yaml +++ b/library/common-test/tests/cronjob/validation_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should fail with invalid concurrencyPolicy set: diff --git a/library/common-test/tests/daemonset/metadata_test.yaml b/library/common-test/tests/daemonset/metadata_test.yaml index 63017fab..e9d9bc41 100644 --- a/library/common-test/tests/daemonset/metadata_test.yaml +++ b/library/common-test/tests/daemonset/metadata_test.yaml @@ -5,6 +5,7 @@ chart: appVersion: &appVer v9.9.9 release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with daemonset created with labels and annotations set: diff --git a/library/common-test/tests/daemonset/spec_test.yaml b/library/common-test/tests/daemonset/spec_test.yaml index 2ad287fc..6f7314fc 100644 --- a/library/common-test/tests/daemonset/spec_test.yaml +++ b/library/common-test/tests/daemonset/spec_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with workload enabled set: diff --git a/library/common-test/tests/daemonset/validation_test.yaml b/library/common-test/tests/daemonset/validation_test.yaml index eddca614..92423916 100644 --- a/library/common-test/tests/daemonset/validation_test.yaml +++ b/library/common-test/tests/daemonset/validation_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should fail with invalid strategy set: diff --git a/library/common-test/tests/defaults/defaults-test.yaml b/library/common-test/tests/defaults/defaults-test.yaml index 6a282742..ae1328ab 100644 --- a/library/common-test/tests/defaults/defaults-test.yaml +++ b/library/common-test/tests/defaults/defaults-test.yaml @@ -5,6 +5,7 @@ chart: appVersion: &appVer v9.9.9 release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with defaults set: diff --git a/library/common-test/tests/deployment/metadata_test.yaml b/library/common-test/tests/deployment/metadata_test.yaml index 8e2e40d9..82ebf65c 100644 --- a/library/common-test/tests/deployment/metadata_test.yaml +++ b/library/common-test/tests/deployment/metadata_test.yaml @@ -5,6 +5,7 @@ chart: appVersion: &appVer v9.9.9 release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with deployment created with labels and annotations set: diff --git a/library/common-test/tests/deployment/spec_test.yaml b/library/common-test/tests/deployment/spec_test.yaml index fa327f46..a91a68e6 100644 --- a/library/common-test/tests/deployment/spec_test.yaml +++ b/library/common-test/tests/deployment/spec_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with workload enabled set: diff --git a/library/common-test/tests/deployment/validation_test.yaml b/library/common-test/tests/deployment/validation_test.yaml index 0a50d6d7..af04179f 100644 --- a/library/common-test/tests/deployment/validation_test.yaml +++ b/library/common-test/tests/deployment/validation_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should fail with invalid strategy set: diff --git a/library/common-test/tests/externalInterface/metadata_test.yaml b/library/common-test/tests/externalInterface/metadata_test.yaml index 76c88be7..1f318baa 100644 --- a/library/common-test/tests/externalInterface/metadata_test.yaml +++ b/library/common-test/tests/externalInterface/metadata_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should generate correct annotations without selector set: diff --git a/library/common-test/tests/externalInterface/name_test.yaml b/library/common-test/tests/externalInterface/name_test.yaml index 2a2313ed..72328eac 100644 --- a/library/common-test/tests/externalInterface/name_test.yaml +++ b/library/common-test/tests/externalInterface/name_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should generate correct name NetworkAttachmentDefinition set: diff --git a/library/common-test/tests/externalInterface/validation_test.yaml b/library/common-test/tests/externalInterface/validation_test.yaml index 25fd9354..c9a83cee 100644 --- a/library/common-test/tests/externalInterface/validation_test.yaml +++ b/library/common-test/tests/externalInterface/validation_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should fail with targetSelector not a list set: diff --git a/library/common-test/tests/extraTpl/extratpl_test.yaml b/library/common-test/tests/extraTpl/extratpl_test.yaml index d470cd5b..1ccca674 100644 --- a/library/common-test/tests/extraTpl/extratpl_test.yaml +++ b/library/common-test/tests/extraTpl/extratpl_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with extra tpl set: diff --git a/library/common-test/tests/imagePullSecret/data_test.yaml b/library/common-test/tests/imagePullSecret/data_test.yaml index 87c4d6b8..75ae291b 100644 --- a/library/common-test/tests/imagePullSecret/data_test.yaml +++ b/library/common-test/tests/imagePullSecret/data_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with data set: diff --git a/library/common-test/tests/imagePullSecret/metadata_test.yaml b/library/common-test/tests/imagePullSecret/metadata_test.yaml index 2de03273..d6a66b08 100644 --- a/library/common-test/tests/imagePullSecret/metadata_test.yaml +++ b/library/common-test/tests/imagePullSecret/metadata_test.yaml @@ -5,6 +5,7 @@ chart: appVersion: &appVer v9.9.9 release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with secret created with labels and annotations set: diff --git a/library/common-test/tests/imagePullSecret/name_test.yaml b/library/common-test/tests/imagePullSecret/name_test.yaml index ebb24332..67853ef4 100644 --- a/library/common-test/tests/imagePullSecret/name_test.yaml +++ b/library/common-test/tests/imagePullSecret/name_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should generate correct name set: diff --git a/library/common-test/tests/imagePullSecret/validation_test.yaml b/library/common-test/tests/imagePullSecret/validation_test.yaml index 8d67dbc7..f435bae6 100644 --- a/library/common-test/tests/imagePullSecret/validation_test.yaml +++ b/library/common-test/tests/imagePullSecret/validation_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should fail with name longer than 63 characters set: diff --git a/library/common-test/tests/ingress/metadata_test.yaml b/library/common-test/tests/ingress/metadata_test.yaml index 19bfe94f..74476c96 100644 --- a/library/common-test/tests/ingress/metadata_test.yaml +++ b/library/common-test/tests/ingress/metadata_test.yaml @@ -5,6 +5,7 @@ chart: appVersion: &appVer v9.9.9 release: name: test-release-name + namespace: test-release-namespace tests: - it: default metadata should pass set: diff --git a/library/common-test/tests/ingress/presence_test.yaml b/library/common-test/tests/ingress/presence_test.yaml index e9d88322..7474eb94 100644 --- a/library/common-test/tests/ingress/presence_test.yaml +++ b/library/common-test/tests/ingress/presence_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: default should pass asserts: diff --git a/library/common-test/tests/ingress/service_reference_test.yaml b/library/common-test/tests/ingress/service_reference_test.yaml index e1ef1118..ecabc0e4 100644 --- a/library/common-test/tests/ingress/service_reference_test.yaml +++ b/library/common-test/tests/ingress/service_reference_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: default should pass set: diff --git a/library/common-test/tests/ingress/tls_test.yaml b/library/common-test/tests/ingress/tls_test.yaml index aa847098..a964424b 100644 --- a/library/common-test/tests/ingress/tls_test.yaml +++ b/library/common-test/tests/ingress/tls_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: default should pass set: diff --git a/library/common-test/tests/ingress/values_test.yaml b/library/common-test/tests/ingress/values_test.yaml index b12d6691..b2f11fb1 100644 --- a/library/common-test/tests/ingress/values_test.yaml +++ b/library/common-test/tests/ingress/values_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: default should pass set: diff --git a/library/common-test/tests/initContainer/data_test.yaml b/library/common-test/tests/initContainer/data_test.yaml index 33879574..7af9f49c 100644 --- a/library/common-test/tests/initContainer/data_test.yaml +++ b/library/common-test/tests/initContainer/data_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should generate correct init container set: diff --git a/library/common-test/tests/initContainer/data_upgrade_test.yaml b/library/common-test/tests/initContainer/data_upgrade_test.yaml index 40eeb164..b7a331f7 100644 --- a/library/common-test/tests/initContainer/data_upgrade_test.yaml +++ b/library/common-test/tests/initContainer/data_upgrade_test.yaml @@ -4,6 +4,7 @@ templates: release: upgrade: true name: test-release-name + namespace: test-release-namespace tests: - it: should generate correct init container set: diff --git a/library/common-test/tests/initContainer/name_test.yaml b/library/common-test/tests/initContainer/name_test.yaml index 4b749d85..9536fe4f 100644 --- a/library/common-test/tests/initContainer/name_test.yaml +++ b/library/common-test/tests/initContainer/name_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should generate correct init container name set: diff --git a/library/common-test/tests/initContainer/name_upgrade_test.yaml b/library/common-test/tests/initContainer/name_upgrade_test.yaml index 265be4ef..23a7cb8c 100644 --- a/library/common-test/tests/initContainer/name_upgrade_test.yaml +++ b/library/common-test/tests/initContainer/name_upgrade_test.yaml @@ -4,6 +4,7 @@ templates: release: upgrade: true name: test-release-name + namespace: test-release-namespace tests: - it: should generate correct init container name set: diff --git a/library/common-test/tests/initContainer/validation_test.yaml b/library/common-test/tests/initContainer/validation_test.yaml index 1557826f..131004f3 100644 --- a/library/common-test/tests/initContainer/validation_test.yaml +++ b/library/common-test/tests/initContainer/validation_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: # Failures - it: should fail with empty type on init container diff --git a/library/common-test/tests/job/metadata_test.yaml b/library/common-test/tests/job/metadata_test.yaml index 80c87ba8..5a815cc5 100644 --- a/library/common-test/tests/job/metadata_test.yaml +++ b/library/common-test/tests/job/metadata_test.yaml @@ -5,6 +5,7 @@ chart: appVersion: &appVer v9.9.9 release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with job created with labels and annotations set: diff --git a/library/common-test/tests/job/spec_test.yaml b/library/common-test/tests/job/spec_test.yaml index cb0b6eb5..b44b13b1 100644 --- a/library/common-test/tests/job/spec_test.yaml +++ b/library/common-test/tests/job/spec_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with workload enabled set: diff --git a/library/common-test/tests/job/validation_test.yaml b/library/common-test/tests/job/validation_test.yaml index d4e8f2d8..0804806c 100644 --- a/library/common-test/tests/job/validation_test.yaml +++ b/library/common-test/tests/job/validation_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should fail with invalid completionMode set: diff --git a/library/common-test/tests/metrics/defaults_test.yaml b/library/common-test/tests/metrics/defaults_test.yaml index d6ebfd29..423d8eb1 100644 --- a/library/common-test/tests/metrics/defaults_test.yaml +++ b/library/common-test/tests/metrics/defaults_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: default should pass set: diff --git a/library/common-test/tests/operator/operator_test.yaml b/library/common-test/tests/operator/operator_test.yaml index fab2a2e5..645753a2 100644 --- a/library/common-test/tests/operator/operator_test.yaml +++ b/library/common-test/tests/operator/operator_test.yaml @@ -5,6 +5,7 @@ chart: version: &version v9.9.9 release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with key-value data set: diff --git a/library/common-test/tests/persistence/metadata_test.yaml b/library/common-test/tests/persistence/metadata_test.yaml index 3633ec0f..0093e11e 100644 --- a/library/common-test/tests/persistence/metadata_test.yaml +++ b/library/common-test/tests/persistence/metadata_test.yaml @@ -5,6 +5,7 @@ chart: appVersion: &appVer v9.9.9 release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with pvc created with labels and annotations set: diff --git a/library/common-test/tests/persistence/names_test.yaml b/library/common-test/tests/persistence/names_test.yaml index a476504a..1a10a3eb 100644 --- a/library/common-test/tests/persistence/names_test.yaml +++ b/library/common-test/tests/persistence/names_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should generate correct name set: diff --git a/library/common-test/tests/persistence/pvc_data_test.yaml b/library/common-test/tests/persistence/pvc_data_test.yaml index 8c5489c2..e2531965 100644 --- a/library/common-test/tests/persistence/pvc_data_test.yaml +++ b/library/common-test/tests/persistence/pvc_data_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should create pvc set: diff --git a/library/common-test/tests/persistence/validation_test.yaml b/library/common-test/tests/persistence/validation_test.yaml index 546421f0..e08d5c60 100644 --- a/library/common-test/tests/persistence/validation_test.yaml +++ b/library/common-test/tests/persistence/validation_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should fail with annotations not a dict set: diff --git a/library/common-test/tests/pod/automount_sa_token_test.yaml b/library/common-test/tests/pod/automount_sa_token_test.yaml index 35b11ef1..9dd7856c 100644 --- a/library/common-test/tests/pod/automount_sa_token_test.yaml +++ b/library/common-test/tests/pod/automount_sa_token_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with automountServiceAccountToken disabled from "global" set: diff --git a/library/common-test/tests/pod/dns_config_test.yaml b/library/common-test/tests/pod/dns_config_test.yaml index c6b43268..08c7125d 100644 --- a/library/common-test/tests/pod/dns_config_test.yaml +++ b/library/common-test/tests/pod/dns_config_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with empty dnsConfig set: diff --git a/library/common-test/tests/pod/dns_policy_test.yaml b/library/common-test/tests/pod/dns_policy_test.yaml index b0dbd8d3..9d0cde81 100644 --- a/library/common-test/tests/pod/dns_policy_test.yaml +++ b/library/common-test/tests/pod/dns_policy_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with empty dnsPolicy set: diff --git a/library/common-test/tests/pod/enable_service_links_test.yaml b/library/common-test/tests/pod/enable_service_links_test.yaml index 4df8c9f6..506c04cb 100644 --- a/library/common-test/tests/pod/enable_service_links_test.yaml +++ b/library/common-test/tests/pod/enable_service_links_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with enableServiceLinks disabled from "global" set: diff --git a/library/common-test/tests/pod/host-aliases_test.yaml b/library/common-test/tests/pod/host-aliases_test.yaml index dadcc4c8..c67d3704 100644 --- a/library/common-test/tests/pod/host-aliases_test.yaml +++ b/library/common-test/tests/pod/host-aliases_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with empty hostAliases set: diff --git a/library/common-test/tests/pod/host_network_test.yaml b/library/common-test/tests/pod/host_network_test.yaml index 0e6adde9..d83de9a5 100644 --- a/library/common-test/tests/pod/host_network_test.yaml +++ b/library/common-test/tests/pod/host_network_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with hostnetwork disabled from "global" set: diff --git a/library/common-test/tests/pod/host_pid_test.yaml b/library/common-test/tests/pod/host_pid_test.yaml index 6c2778e2..3e813af1 100644 --- a/library/common-test/tests/pod/host_pid_test.yaml +++ b/library/common-test/tests/pod/host_pid_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with hostpid disabled from "global" set: diff --git a/library/common-test/tests/pod/hostname_test.yaml b/library/common-test/tests/pod/hostname_test.yaml index 1dc86756..0404c980 100644 --- a/library/common-test/tests/pod/hostname_test.yaml +++ b/library/common-test/tests/pod/hostname_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with empty hostname set: diff --git a/library/common-test/tests/pod/image_pull_secret_test.yaml b/library/common-test/tests/pod/image_pull_secret_test.yaml index d2b5c42e..2df955d1 100644 --- a/library/common-test/tests/pod/image_pull_secret_test.yaml +++ b/library/common-test/tests/pod/image_pull_secret_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should assign multiple imagePullSecret to primary pod set: diff --git a/library/common-test/tests/pod/node_selector_test.yaml b/library/common-test/tests/pod/node_selector_test.yaml index a88f889a..82b9b888 100644 --- a/library/common-test/tests/pod/node_selector_test.yaml +++ b/library/common-test/tests/pod/node_selector_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with empty nodeSelector set: diff --git a/library/common-test/tests/pod/priority_class_name_test.yaml b/library/common-test/tests/pod/priority_class_name_test.yaml index a64627e4..59aed8b1 100644 --- a/library/common-test/tests/pod/priority_class_name_test.yaml +++ b/library/common-test/tests/pod/priority_class_name_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with empty priorityClassName set: diff --git a/library/common-test/tests/pod/restart_policy_test.yaml b/library/common-test/tests/pod/restart_policy_test.yaml index 901d5d63..632ae37b 100644 --- a/library/common-test/tests/pod/restart_policy_test.yaml +++ b/library/common-test/tests/pod/restart_policy_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with restartPolicy empty set: diff --git a/library/common-test/tests/pod/runtime_class_name_test.yaml b/library/common-test/tests/pod/runtime_class_name_test.yaml index 74b2fd7e..414f249f 100644 --- a/library/common-test/tests/pod/runtime_class_name_test.yaml +++ b/library/common-test/tests/pod/runtime_class_name_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with empty runtimeClassName set: diff --git a/library/common-test/tests/pod/scheduler_name_test.yaml b/library/common-test/tests/pod/scheduler_name_test.yaml index 089bd62d..87639d85 100644 --- a/library/common-test/tests/pod/scheduler_name_test.yaml +++ b/library/common-test/tests/pod/scheduler_name_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with empty schedulerName set: diff --git a/library/common-test/tests/pod/securityContext.yaml b/library/common-test/tests/pod/securityContext.yaml index 91e5d69d..d0116c8d 100644 --- a/library/common-test/tests/pod/securityContext.yaml +++ b/library/common-test/tests/pod/securityContext.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with securityContext from "global" set: diff --git a/library/common-test/tests/pod/service_account_name_test.yaml b/library/common-test/tests/pod/service_account_name_test.yaml index d270fd4f..0592302f 100644 --- a/library/common-test/tests/pod/service_account_name_test.yaml +++ b/library/common-test/tests/pod/service_account_name_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should assign serviceAccount to primary pod set: diff --git a/library/common-test/tests/pod/share_process_namespace_test.yaml b/library/common-test/tests/pod/share_process_namespace_test.yaml index 197f8981..d5a3c2c4 100644 --- a/library/common-test/tests/pod/share_process_namespace_test.yaml +++ b/library/common-test/tests/pod/share_process_namespace_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with shareProcessNamespace disabled from "global" set: diff --git a/library/common-test/tests/pod/termination_grace_period_test.yaml b/library/common-test/tests/pod/termination_grace_period_test.yaml index 520779ed..b0eb1969 100644 --- a/library/common-test/tests/pod/termination_grace_period_test.yaml +++ b/library/common-test/tests/pod/termination_grace_period_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with empty terminationGracePeriodSeconds set: diff --git a/library/common-test/tests/pod/tolerations_test.yaml b/library/common-test/tests/pod/tolerations_test.yaml index 5d724548..056327c3 100644 --- a/library/common-test/tests/pod/tolerations_test.yaml +++ b/library/common-test/tests/pod/tolerations_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with empty tolerations set: diff --git a/library/common-test/tests/pod/volume_configmap_test.yaml b/library/common-test/tests/pod/volume_configmap_test.yaml index f1b3fc2e..e73d88ce 100644 --- a/library/common-test/tests/pod/volume_configmap_test.yaml +++ b/library/common-test/tests/pod/volume_configmap_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with configmap volume set: diff --git a/library/common-test/tests/pod/volume_device_test.yaml b/library/common-test/tests/pod/volume_device_test.yaml index a0e7b082..6176a7ad 100644 --- a/library/common-test/tests/pod/volume_device_test.yaml +++ b/library/common-test/tests/pod/volume_device_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with device volume set: diff --git a/library/common-test/tests/pod/volume_emptyDIr_test.yaml b/library/common-test/tests/pod/volume_emptyDIr_test.yaml index 99758531..a7692dcf 100644 --- a/library/common-test/tests/pod/volume_emptyDIr_test.yaml +++ b/library/common-test/tests/pod/volume_emptyDIr_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with emptyDir volume set: diff --git a/library/common-test/tests/pod/volume_hostPath_test.yaml b/library/common-test/tests/pod/volume_hostPath_test.yaml index 9db758c4..3c71abb4 100644 --- a/library/common-test/tests/pod/volume_hostPath_test.yaml +++ b/library/common-test/tests/pod/volume_hostPath_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with hostPath volume set: diff --git a/library/common-test/tests/pod/volume_ixVolume_test.yaml b/library/common-test/tests/pod/volume_ixVolume_test.yaml index f68f4c9c..a649ef5e 100644 --- a/library/common-test/tests/pod/volume_ixVolume_test.yaml +++ b/library/common-test/tests/pod/volume_ixVolume_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with ixVolume volume set: diff --git a/library/common-test/tests/pod/volume_nfs_test.yaml b/library/common-test/tests/pod/volume_nfs_test.yaml index e251425c..74e63aba 100644 --- a/library/common-test/tests/pod/volume_nfs_test.yaml +++ b/library/common-test/tests/pod/volume_nfs_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with nfs volume set: diff --git a/library/common-test/tests/pod/volume_pvc_test.yaml b/library/common-test/tests/pod/volume_pvc_test.yaml index 5ad9e142..2362704e 100644 --- a/library/common-test/tests/pod/volume_pvc_test.yaml +++ b/library/common-test/tests/pod/volume_pvc_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with pvc volume set: diff --git a/library/common-test/tests/pod/volume_secret_test.yaml b/library/common-test/tests/pod/volume_secret_test.yaml index a3293055..a3a4f65b 100644 --- a/library/common-test/tests/pod/volume_secret_test.yaml +++ b/library/common-test/tests/pod/volume_secret_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with secret volume set: diff --git a/library/common-test/tests/rbac/data_test.yaml b/library/common-test/tests/rbac/data_test.yaml index 319e724e..e2114147 100644 --- a/library/common-test/tests/rbac/data_test.yaml +++ b/library/common-test/tests/rbac/data_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with rules and subjects added with tpl and primary rbac/sa set: @@ -81,7 +82,7 @@ tests: value: - kind: ServiceAccount name: test-release-name-common-test - namespace: NAMESPACE + namespace: test-release-namespace - kind: a-kind name: a-name apiGroup: rbac.authorization.k8s.io @@ -176,10 +177,10 @@ tests: value: - kind: ServiceAccount name: test-release-name-common-test-my-other-sa - namespace: NAMESPACE + namespace: test-release-namespace - kind: ServiceAccount name: test-release-name-common-test - namespace: NAMESPACE + namespace: test-release-namespace - apiGroup: rbac.authorization.k8s.io kind: a-kind name: a-name @@ -249,4 +250,4 @@ tests: value: - kind: ServiceAccount name: test-release-name-common-test-my-other-sa - namespace: NAMESPACE + namespace: test-release-namespace diff --git a/library/common-test/tests/rbac/metadata_test.yaml b/library/common-test/tests/rbac/metadata_test.yaml index 9d13098a..c5f84219 100644 --- a/library/common-test/tests/rbac/metadata_test.yaml +++ b/library/common-test/tests/rbac/metadata_test.yaml @@ -5,6 +5,7 @@ chart: appVersion: &appVer v9.9.9 release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with rbac created with labels and annotations set: diff --git a/library/common-test/tests/rbac/name_test.yaml b/library/common-test/tests/rbac/name_test.yaml index 3075e506..c13ca9c4 100644 --- a/library/common-test/tests/rbac/name_test.yaml +++ b/library/common-test/tests/rbac/name_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should generate correct name set: diff --git a/library/common-test/tests/rbac/validation_test.yaml b/library/common-test/tests/rbac/validation_test.yaml index 92e31d62..b6e9f4f4 100644 --- a/library/common-test/tests/rbac/validation_test.yaml +++ b/library/common-test/tests/rbac/validation_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should fail with name longer than 63 characters set: diff --git a/library/common-test/tests/secret/data_test.yaml b/library/common-test/tests/secret/data_test.yaml index 083a7a1d..434f12a3 100644 --- a/library/common-test/tests/secret/data_test.yaml +++ b/library/common-test/tests/secret/data_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with key-value data set: diff --git a/library/common-test/tests/secret/metadata_test.yaml b/library/common-test/tests/secret/metadata_test.yaml index d2d0cdf5..ba785cd0 100644 --- a/library/common-test/tests/secret/metadata_test.yaml +++ b/library/common-test/tests/secret/metadata_test.yaml @@ -5,6 +5,7 @@ chart: appVersion: &appVer v9.9.9 release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with secret created with labels and annotations set: diff --git a/library/common-test/tests/secret/name_test.yaml b/library/common-test/tests/secret/name_test.yaml index c2aa26d4..35123034 100644 --- a/library/common-test/tests/secret/name_test.yaml +++ b/library/common-test/tests/secret/name_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should generate correct name set: diff --git a/library/common-test/tests/secret/validation_test.yaml b/library/common-test/tests/secret/validation_test.yaml index 84d8cd67..29335c81 100644 --- a/library/common-test/tests/secret/validation_test.yaml +++ b/library/common-test/tests/secret/validation_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should fail with name longer than 63 characters set: diff --git a/library/common-test/tests/service/cluster_ip_test.yaml b/library/common-test/tests/service/cluster_ip_test.yaml index 493b422f..f77f8c77 100644 --- a/library/common-test/tests/service/cluster_ip_test.yaml +++ b/library/common-test/tests/service/cluster_ip_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with type ClusterIP set: diff --git a/library/common-test/tests/service/external_ip_test.yaml b/library/common-test/tests/service/external_ip_test.yaml index 2f6d4ddd..3e14e354 100644 --- a/library/common-test/tests/service/external_ip_test.yaml +++ b/library/common-test/tests/service/external_ip_test.yaml @@ -5,6 +5,7 @@ chart: appVersion: &appVer v9.9.9 release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with type externalIP and useSlice unset (default) set: diff --git a/library/common-test/tests/service/external_name_test.yaml b/library/common-test/tests/service/external_name_test.yaml index 5b9538e2..83243ca0 100644 --- a/library/common-test/tests/service/external_name_test.yaml +++ b/library/common-test/tests/service/external_name_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with type externalName set: diff --git a/library/common-test/tests/service/list_test.yaml b/library/common-test/tests/service/list_test.yaml index 40b51469..cba6a3c8 100644 --- a/library/common-test/tests/service/list_test.yaml +++ b/library/common-test/tests/service/list_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with type LoadBalancer from serviceList with name set: diff --git a/library/common-test/tests/service/load_balancer_test.yaml b/library/common-test/tests/service/load_balancer_test.yaml index e47f29d6..6db7ae23 100644 --- a/library/common-test/tests/service/load_balancer_test.yaml +++ b/library/common-test/tests/service/load_balancer_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with type LoadBalancer set: diff --git a/library/common-test/tests/service/metadata_test.yaml b/library/common-test/tests/service/metadata_test.yaml index d911af80..1f6e1014 100644 --- a/library/common-test/tests/service/metadata_test.yaml +++ b/library/common-test/tests/service/metadata_test.yaml @@ -5,6 +5,7 @@ chart: appVersion: &appVer v9.9.9 release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with service created with labels and annotations set: diff --git a/library/common-test/tests/service/names_test.yaml b/library/common-test/tests/service/names_test.yaml index e36b44ae..55e5730b 100644 --- a/library/common-test/tests/service/names_test.yaml +++ b/library/common-test/tests/service/names_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should generate correct name set: diff --git a/library/common-test/tests/service/node_port_test.yaml b/library/common-test/tests/service/node_port_test.yaml index 0e4ea91b..4e07ef26 100644 --- a/library/common-test/tests/service/node_port_test.yaml +++ b/library/common-test/tests/service/node_port_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with type nodePort set: diff --git a/library/common-test/tests/service/validation_test.yaml b/library/common-test/tests/service/validation_test.yaml index 7cb709cb..167a0dab 100644 --- a/library/common-test/tests/service/validation_test.yaml +++ b/library/common-test/tests/service/validation_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should fail without primary service set: diff --git a/library/common-test/tests/serviceAccount/metadata_test.yaml b/library/common-test/tests/serviceAccount/metadata_test.yaml index c5a6edf8..7829ed1c 100644 --- a/library/common-test/tests/serviceAccount/metadata_test.yaml +++ b/library/common-test/tests/serviceAccount/metadata_test.yaml @@ -5,6 +5,7 @@ chart: appVersion: &appVer v9.9.9 release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with service account created with labels and annotations set: diff --git a/library/common-test/tests/serviceAccount/name_test.yaml b/library/common-test/tests/serviceAccount/name_test.yaml index 638626d2..2ca87587 100644 --- a/library/common-test/tests/serviceAccount/name_test.yaml +++ b/library/common-test/tests/serviceAccount/name_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should generate correct name set: diff --git a/library/common-test/tests/serviceAccount/validation_test.yaml b/library/common-test/tests/serviceAccount/validation_test.yaml index 1f646a8c..86c4d328 100644 --- a/library/common-test/tests/serviceAccount/validation_test.yaml +++ b/library/common-test/tests/serviceAccount/validation_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should fail with name longer than 63 characters set: diff --git a/library/common-test/tests/statefulset/metadata_test.yaml b/library/common-test/tests/statefulset/metadata_test.yaml index f2cac816..4457e045 100644 --- a/library/common-test/tests/statefulset/metadata_test.yaml +++ b/library/common-test/tests/statefulset/metadata_test.yaml @@ -5,6 +5,7 @@ chart: appVersion: &appVer v9.9.9 release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with statefulset created with labels and annotations set: diff --git a/library/common-test/tests/statefulset/spec_test.yaml b/library/common-test/tests/statefulset/spec_test.yaml index 9503658b..dbd89f7a 100644 --- a/library/common-test/tests/statefulset/spec_test.yaml +++ b/library/common-test/tests/statefulset/spec_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with workload enabled set: diff --git a/library/common-test/tests/statefulset/validation_test.yaml b/library/common-test/tests/statefulset/validation_test.yaml index ba513477..00609892 100644 --- a/library/common-test/tests/statefulset/validation_test.yaml +++ b/library/common-test/tests/statefulset/validation_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should fail with invalid strategy set: diff --git a/library/common-test/tests/volumeClaimTemplate/metadata_test.yaml b/library/common-test/tests/volumeClaimTemplate/metadata_test.yaml index ad749f23..a7b4fa3b 100644 --- a/library/common-test/tests/volumeClaimTemplate/metadata_test.yaml +++ b/library/common-test/tests/volumeClaimTemplate/metadata_test.yaml @@ -5,6 +5,7 @@ chart: appVersion: &appVer v9.9.9 release: name: test-release-name + namespace: test-release-namespace tests: - it: should pass with vct created with labels and annotations set: diff --git a/library/common-test/tests/volumeClaimTemplate/names_test.yaml b/library/common-test/tests/volumeClaimTemplate/names_test.yaml index 5f9e7f62..0a28e53f 100644 --- a/library/common-test/tests/volumeClaimTemplate/names_test.yaml +++ b/library/common-test/tests/volumeClaimTemplate/names_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should generate correct name set: diff --git a/library/common-test/tests/volumeClaimTemplate/validation_test.yaml b/library/common-test/tests/volumeClaimTemplate/validation_test.yaml index 2e157968..cc47f925 100644 --- a/library/common-test/tests/volumeClaimTemplate/validation_test.yaml +++ b/library/common-test/tests/volumeClaimTemplate/validation_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should fail with annotations not a dict set: diff --git a/library/common-test/tests/volumeClaimTemplate/vct_data_test.yaml b/library/common-test/tests/volumeClaimTemplate/vct_data_test.yaml index a52b378b..2ccf6f5b 100644 --- a/library/common-test/tests/volumeClaimTemplate/vct_data_test.yaml +++ b/library/common-test/tests/volumeClaimTemplate/vct_data_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should create vct set: diff --git a/library/common-test/tests/workload/names_test.yaml b/library/common-test/tests/workload/names_test.yaml index bacce09f..531fd790 100644 --- a/library/common-test/tests/workload/names_test.yaml +++ b/library/common-test/tests/workload/names_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should generate correct workload name set: diff --git a/library/common-test/tests/workload/validation_test.yaml b/library/common-test/tests/workload/validation_test.yaml index fae80d0d..84950a7e 100644 --- a/library/common-test/tests/workload/validation_test.yaml +++ b/library/common-test/tests/workload/validation_test.yaml @@ -3,6 +3,7 @@ templates: - common.yaml release: name: test-release-name + namespace: test-release-namespace tests: - it: should fail with name longer than 63 characters set: