helm-unittest
BDD styled unit test framework for Kubernetes Helm charts as a Helm plugin.
파일 탐색기
최종 버전 다운로드 (.zip)- bug-report.md
- improvement-request.md
- codeql.yml
- dependency-review.yml
- docker-release.yml
- full-release.yml
- go.yml
- release.yml
- scorecards.yml
- test-signing.yml
- dependabot.yml
- helmunittest-arch.svg
- testsuite-yaml-addschema-intellij.png
- testsuite-yaml-codecompletion.png
- testsuite-yaml-codevalidation.png
- helm_unittest.go
- helm_unittest_test.go
- version.go
- debug.go
- types.go
- utilities.go
- utilities_test.go
- utilities_ymlescape.go
- utilities_ymlescape_test.go
- TestV3RunJobOk
- TestV3RunJobWithAssertionFail
- TestV3RunJobWithAssertionFailFast
- TestV3RunJobWithCapabilitySettings
- TestV3RunJobWithChartSettings
- TestV3RunJobWithFailingTemplate
- TestV3RunJobWithNoCapabilitySettingsEmptyDoc
- TestV3RunJobWithReleaseSettings
- TestV3RunJobWithRenderPathOk
- TestV3RunJobWithSchema
- TestV3RunJobWithSchemaAndNullValue
- TestV3RunJobWithSchemaOk
- TestV3RunJobWithSkipSchemaValidation
- TestV3RunJobWithSkipSchemaValidationInvalidValues
- TestV3RunJobWithTestJobDocumentSelectorOk
- TestV3RunJobWithTestJobTemplateOk
- TestV3RunJobWithTestJobTemplatesOk
- TestV3RunJobWithTestMissingRequiredValueOk
- TestV3RunJobWithTooLongReleaseName
- TestV3RunJobWithValueSet
- TestV3RunJobWithValuesFile
- TestV3RunnerOkGlobalDoubleWithPassedTests
- TestV3RunnerOkPackagedChart
- TestV3RunnerOkPackagedChartWithExternalUnittest
- TestV3RunnerOkWithAbsoluteOverrideValuesPassedTests
- TestV3RunnerOkWithDocumentSelector
- TestV3RunnerOkWithDocumentSelectorWithFailedTests
- TestV3RunnerOkWithFailedTests
- TestV3RunnerOkWithFailingTemplatePassedTest
- TestV3RunnerOkWithFakeK8sClient
- TestV3RunnerOkWithFiles
- TestV3RunnerOkWithFullsnapshot
- TestV3RunnerOkWithOverrideValuesPassedTests
- TestV3RunnerOkWithPassedTests
- TestV3RunnerOkWithPostRenderer
- TestV3RunnerOkWithRenderedTests
- TestV3RunnerOkWithSchemaValidation
- TestV3RunnerOkWithSubSubChartsPassedTests
- TestV3RunnerOkWithSubSubfolder
- TestV3RunnerWithTestsInSubchart
- TestV3RunnerWithTestsInSubchartButFlagFalse
- TestV3RunSuiteNameOverrideFail
- TestV3RunSuiteWhenFail
- TestV3RunSuiteWhenPass
- TestV3RunSuiteWithMultipleTemplatesWhenPass
- TestV3RunSuiteWithNoAssertsShouldFail
- TestV3RunSuiteWithOverridesWhenPass
- TestV3RunSuiteWithSubChartsTrimmingWhenPass
- TestV3RunSuiteWithSubChartsWhenPass
- TestV3RunSuiteWithSubChartsWithAliasWhenPass
- TestV3RunSuiteWithSubfolderWhenPass
- formatter.go
- formatter_test.go
- junit_report_xml.go
- junit_report_xml_test.go
- nunit_report_xml.go
- nunit_report_xml_test.go
- sonar_report_xml.go
- sonar_report_xml_test.go
- xunit_report_xml.go
- xunit_report_xml_test.go
- printer.go
- assertion_result.go
- test_job_result.go
- test_job_result_test.go
- test_suite_result.go
- test_suite_result_test.go
- cache.go
- cache_test.go
- factory.go
- factory_test.go
- foo.yaml
- configmap.yaml
- main_test.yaml
- Chart.yaml
- cfg01.yaml
- cfg02.yaml
- case1-error_test.yaml
- case1-ok_test.yaml
- case2-error_test.yaml
- case3-error_test.yaml
- case4-error_test.yaml
- Chart.yaml
- configmap.yaml
- 01-case1_test.yaml
- 01-case2_test.yaml
- 02-case1_test.yaml
- 02-case2_test.yaml
- Chart.yaml
- pod.yaml
- validation.tpl
- validations.yaml
- multiline_test.yaml
- validation_test.yaml
- validations_test.yaml
- Chart.yaml
- basic.yaml
- basic_no_postrender_test.yaml.snap
- basic_postrender_test.yaml.snap
- basic_no_postrender_test.yaml
- basic_postrender_test.yaml
- .helmignore
- Chart.yaml
- values.yaml
- configmap.yaml
- simple.yaml
- 01_test.yaml
- 02_test.yaml
- 03_test.yaml
- Chart.yaml
- external-secrets.yaml
- pdb.yaml
- external-secrets_test.yaml
- Chart.yaml
- network.yaml
- test.yaml
- network-snapshot_test.yaml.snap
- network-snapshot_test.yaml
- v1_test.yaml.snap
- v1_test.yaml
- network-snapshot_test.yaml.snap
- network-snapshot_test.yaml
- Chart.yaml
- $.yaml
- 01-case1_test.yaml
- Chart.yaml
- _helpers.tpl
- subchart-showit.yaml
- Chart.yaml
- configmap.yaml
- showit.yaml
- configmap-works_test.yaml
- configmap_test.yaml
- showit_test.yaml
- Chart.yaml
- values.yaml
- deployment.yaml
- 01_test.yaml
- 02_test.yaml
- 03_test.yaml
- Chart.yaml
- common.go
- common_test.go
- contains_document_validator.go
- contains_document_validator_test.go
- contains_validator.go
- contains_validator_test.go
- equal_or_greater_validator.go
- equal_or_greater_validator_test.go
- equal_or_less_validator.go
- equal_or_less_validator_test.go
- equal_raw_validator.go
- equal_raw_validator_test.go
- equal_validator.go
- equal_validator_multiline_test.go
- equal_validator_test.go
- exists_validator.go
- exists_validator_test.go
- failed_template_validator.go
- failed_template_validator_test.go
- has_document_validator.go
- has_document_validator_test.go
- is_apiversion_validator.go
- is_apiversion_validator_test.go
- is_kind_validator.go
- is_kind_validator_test.go
- is_nullorempty_validator.go
- is_nullorempty_validator_test.go
- is_subset_validator.go
- is_subset_validator_test.go
- is_type_validator.go
- is_type_validator_test.go
- length_equal_document_validator.go
- length_equal_document_validator_test.go
- match_regex_raw_validator.go
- match_regex_raw_validator_test.go
- match_regex_validator.go
- match_regex_validator_test.go
- operator_validator.go
- snapshot_raw_validator.go
- snapshot_raw_validator_test.go
- snapshot_validator.go
- snapshot_validator_test.go
- documentselector.go
- documentselector_test.go
- valueutils.go
- valueutils_handlers_test.go
- valueutils_test.go
- assertion.go
- assertion_test.go
- benchmark_test.go
- deep_copy.go
- deep_copy_test.go
- files.go
- files_test.go
- k8s_fake_client.go
- k8s_fake_client_test.go
- models.go
- models_test.go
- suits_schema_validation_test.go
- test_job.go
- test_job_test.go
- test_runner.go
- test_runner_test.go
- test_suite.go
- test_suite_test.go
- utils_test.go
- helm-testsuite.json
- postgresql_deployment1_test.yaml
- postgresql_deployment2_test.yaml
- ns1_test.yaml
- ns2_test.yaml
- ns_values.yaml
- _helpers.tpl
- configmap.yaml
- crd_backup.yaml
- deployment.yaml
- empty_deployment.yaml
- ingress.yaml
- NOTES.txt
- pdp.yaml
- plugin_version.yaml
- rbac.yaml
- secret.yaml
- service.yaml
- serviceaccount.yaml
- servicemonitor.yaml
- deployment_test.yaml.snap
- notes_test.yaml.snap
- hosts.yaml
- image.yaml
- configmap_test.yaml
- crd_test.yaml
- deployment_test.yaml
- generateNames_test.yaml
- ingress_test.yaml
- minimum_version_high_test.yaml
- minimum_version_lower_test.yaml
- minimum_version_skipped_test.yaml
- namesOverride_test.yaml
- notes_test.yaml
- pdp_test.yaml
- rbac_test.yaml
- secret_test.yaml
- service_test.yaml
- serviceaccount_test.yaml
- servicemonitor_test.yaml
- skip_this_suite_test.yaml
- deployment_test.yaml.snap
- image.yaml
- configmap_test.yaml
- deployment_test.yaml
- empty_deployment_test.yaml
- include_deployment_test.yaml
- ingress_test.yaml
- nofile_test.yaml
- notes_test.yaml
- rbac_test.yaml
- service_test.yaml
- .helmignore
- Chart.yaml
- values.yaml
- configMap.yaml
- validation.tpl
- .gitkeep
- configMap_test.yaml
- validation_test.yaml
- Chart.yaml
- test-connection.yml
- _helpers.tpl
- deployment.yml
- hpa.yml
- ingress.yml
- NOTES.txt
- service.yml
- serviceaccount.yml
- .helmignore
- Chart.yaml
- values.yaml
- test-connection.yaml
- _helpers.tpl
- configmap.yaml
- deployment.yaml
- hpa.yaml
- ingress.yaml
- NOTES.txt
- service.yaml
- serviceaccount.yaml
- .gitkeep
- full_snapshot_test.yaml.snap
- full_snapshot_test.yaml
- .helmignore
- Chart.yaml
- values.yaml
- _configmap.yaml
- _util.yaml
- .helmignore
- Chart.yaml
- configmap.yaml
- .helmignore
- Chart.yaml
- values.yaml
- configmap.yaml
- configmap.yaml
- cat_deployment.yaml
- deployment.yaml
- .gitkeep
- requiredValues.yaml
- cat_deployment_test.yaml
- configmap_test.yaml
- deployment_test.yaml
- .gitignore
- .helmignore
- Chart.yaml
- values.yaml
- _helpers.tpl
- deployment.yaml
- deployment_noasserts_test.yaml
- deployment_notests_test.yaml
- deployment_test.yaml
- .helmignore
- Chart.yaml
- values.yaml
- _annotations.tpl
- _configmap.tpl
- _names.tpl
- common-1.0.0.tgz
- configmap.yaml
- pod.yaml
- configmap_test.yaml
- metadata_test.yaml
- Chart.yaml
- Chart.yaml
- readme.md
- configmap.yaml
- .gitkeep
- 3_test.yaml
- 2_test.yaml
- 1_test.yaml
- Chart.yaml
- myresource-crd.yaml
- deployment.yaml
- .gitkeep
- crd_test.yaml
- no_crd_test.yaml
- Chart.yaml
- configmap.yaml
- child_test.yaml
- Chart.yaml
- values.yaml
- Chart.yaml
- values.yaml
- deployment.yaml
- service.yaml
- backend_subchart_test.yaml
- Chart.yaml
- values.yaml
- deployment.yaml
- service.yaml
- frontend_subchart_test.yaml
- Chart.yaml
- values.yaml
- configmap.yaml
- .gitkeep
- backend_enabled_test.yaml
- frontend_enabled_test.yaml
- mixed_tags_test.yaml
- parent_test.yaml
- Chart.yaml
- README.md
- values.yaml
- deployments-default-namespace.yaml
- deployments-secondary-namespace.yaml
- external-secrets.yaml
- foo-rbac.yaml
- foo-service.yaml
- mixed-resource-types.yaml
- single-app-1-deployment-default-namespace.yaml
- single-app-2-deployment-default-namespace.yaml
- .gitkeep
- snapshot_test.yaml.snap
- any_template_test.yaml
- external-secrets_test.yaml
- foo_rbac_test.yaml
- local_test.yaml
- match_many_deployments_test.yaml
- skip_empty_templates_test.yaml
- snapshot_test.yaml
- top_level_test.yaml
- .gitkeep
- failing_match_many_deployments_test.yaml
- failing_match_single_deployment_test.yaml
- falling_match_single_deployment_in_each_template_test.yaml
- Chart.yaml
- foo.yaml
- 1files-template.yaml
- .gitkeep
- files-template_test.yaml
- Chart.yaml
- _helpers.tpl
- deployment.yaml
- ingress.yaml
- NOTES.txt
- service.yaml
- .gitkeep
- deployment_test.yaml.snap
- notes_test.yaml.snap
- image.yaml
- deployment_test.yaml
- ingress_test.yaml
- notes_test.yaml
- service_test.yaml
- Chart.yaml
- values.yaml
- postgresql-0.8.3.tgz
- _helpers.tpl
- deployment.yaml
- ingress.yaml
- NOTES.txt
- service.yaml
- .gitkeep
- multiple_suites_snapshot.yaml_0.snap
- multiple_suites_snapshot.yaml_1.snap
- multiple_suites_snapshot.yaml
- multiple_suites_test.yaml
- multiple_tests_test.yaml
- image.yaml
- .helmignore
- Chart.yaml
- values.yaml
- .helmignore
- Chart.lock
- Chart.yaml
- values.yaml
- lookup.yaml
- lookup_crd.yaml
- .gitkeep
- lookup_crd_noprovider_test.yaml.snap
- lookup_crd_test.yaml.snap
- lookup_noprovider_test.yaml.snap
- lookup_test.yaml.snap
- lookup_crd_noprovider_test.yaml
- lookup_crd_test.yaml
- lookup_noprovider_test.yaml
- lookup_test.yaml
- .helmignore
- Chart.yaml
- values.yaml
- basic.yaml
- basic_no_postrender_test.yaml.snap
- basic_postrender_test.yaml.snap
- basic_no_postrender_test.yaml
- basic_postrender_test.yaml
- .helmignore
- Chart.yaml
- values.yaml
- deployment.yaml
- deployment_test.yaml
- Chart.yaml
- values.yaml
- deployment.yaml
- deployment_test.yaml
- Chart.yaml
- values.yaml
- deployment.yaml
- .gitkeep
- deployment_test.yaml
- Chart.yaml
- README.md
- values.yaml
- dummy.yaml
- .gitkeep
- schema-validation_test.yaml
- Chart.yaml
- values.schema.json
- values.yaml
- _helpers.tpl
- child-chart.yaml
- deployment.yaml
- hpa.yaml
- ingress.yaml
- NOTES-with-separator.txt
- NOTES.txt
- service.yaml
- .gitkeep
- child_chart_test.yaml.snap
- deployment_test.yaml.snap
- notes_test.yaml.snap
- image.yaml
- seccomp.yaml
- child_chart_test.yaml
- deployment_test.yaml
- hpa_test.yaml
- ingress_test.yaml
- notes_test.yaml
- service_test.yaml
- Chart.yaml
- values.yaml
- cert-manager-v1.15.0.tgz
- postgresql-0.8.3.tgz
- _helpers.tpl
- deployment.yaml
- ingress.yaml
- NOTES.txt
- service.yaml
- .gitkeep
- deployment_test.yaml.snap
- notes_test.yaml.snap
- postgresql_deployment_test.yaml.snap
- image.yaml
- all-charts_test.yaml
- certmanager_test.yaml
- deployment_test.yaml
- ingress_test.yaml
- notes-separator_txt.yaml
- notes_test.yaml
- postgresql_deployment_test.yaml
- postgresql_secrets_test.yaml
- service_test.yaml
- .helmignore
- Chart.lock
- Chart.yaml
- values.yaml
- deployment.yaml
- deployment.yaml
- ingress.yaml
- service.yaml
- _helpers.tpl
- NOTES.txt
- .gitkeep
- deployment_test.yaml.snap
- notes_test.yaml.snap
- image.yaml
- deployment_test.yaml
- ingress_test.yaml
- notes_test.yaml
- service_test.yaml
- .helmignore
- Chart.yaml
- values.yaml
- deployment.yaml
- .gitkeep
- deployment_test.yaml
- Chart.yaml
- values.yaml
- deployment.yaml
- .gitkeep
- deployment_test.yaml
- Chart.yaml
- values.yaml
- deployment.yaml
- .gitkeep
- deployment_test.yaml
- Chart.yaml
- README.md
- values.yaml
- with-packaged-0.1.0.tgz
- services_values.yaml
- .dockerignore
- .editorconfig
- .envrc
- .gitattributes
- .gitignore
- AlpineTest.Dockerfile
- ARCHITECTURE.md
- artifacthub-repo.yml
- CHANGELOG.md
- CODE_OF_CONDUCT.md
- CONTRIBUTING.md
- DOCKER_README.md
- Dockerfile
- DOCUMENT.md
- FAQ.md
- FedoraTest.Dockerfile
- flake.lock
- flake.nix
- go.mod
- go.sum
- install-binary.ps1
- install-binary.sh
- LICENSE
- Makefile
- plugin-dbg.yaml
- plugin.yaml
- public-key.asc
- README.md
- SECURITY.md
- sonar-project.properties
# 설치 가이드
1. 코드 내려받기
git clone https://github.com/helm-unittest/helm-unittest
깃허브에서 프로젝트 코드 전체를 내 컴퓨터로 내려받습니다.
cd helm-unittest
방금 내려받은 프로젝트 폴더 안으로 이동합니다.
2. Docker
쉬움 추천사전 준비물
- Git GitHub에서 프로젝트 코드를 내려받으려면 필요합니다.
- Docker Desktop 컨테이너를 빌드하고 실행하려면 필요합니다. 설치 후 실행해서 백그라운드에 켜두세요.
docker run -ti --rm -v $(pwd):/apps helmunittest/helm-unittest
빌드된 이미지를 실제 컨테이너로 실행합니다.
docker run -ti --rm -v $(pwd):/apps helmunittest/helm-unittest:3.11.1-0.3.0
빌드된 이미지를 실제 컨테이너로 실행합니다.
docker run -ti --rm -v $(pwd):/apps helmunittest/helm-unittest:3.11.1-0.3.0 .
빌드된 이미지를 실제 컨테이너로 실행합니다.
docker run -ti --rm -v $(pwd):/apps helmunittest/helm-unittest:3.11.1-0.3.0 -o test-output.xml -t junit .
빌드된 이미지를 실제 컨테이너로 실행합니다.
터미널에 docker compose ps 를 입력해 컨테이너들이 Up 상태인지 확인하세요. README에 포트 번호가 적혀있다면 브라우저에서 http://localhost:포트번호 로 접속해보세요.
이 레포의 README에 적힌 실제 명령어를 그대로 가져왔습니다.
3. Go
보통go build ./...
Go 프로그램을 컴파일해 실행 파일을 만듭니다.
go run .
따로 빌드하지 않고 바로 Go 프로그램을 실행합니다.
빌드가 에러 없이 끝나면 성공입니다. go run . 을 썼다면 터미널 출력을 확인하세요.
4. Make
보통사전 준비물
- Git GitHub에서 프로젝트 코드를 내려받으려면 필요합니다.
- Make Linux/macOS는 보통 기본 설치되어 있습니다. Windows는 별도 설치(예: MSYS2, WSL)가 필요합니다.
make
생성된 빌드 설정을 바탕으로 실제 컴파일을 진행해 실행 파일을 만듭니다.
에러 없이 끝나면 성공입니다. 생성된 실행 파일을 직접 실행해보세요.
// repository documentation
Was this content helpful?
(0 ratings)
