Skip to content

Commit

Permalink
OPSEXP-2249 Enable helm unittest with subcharts (#434)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmacius authored Jan 20, 2025
1 parent fd9dac4 commit cdb4b44
Show file tree
Hide file tree
Showing 12 changed files with 22 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:

- name: Set up Unit Test plugin for Helm
env:
HELM_UNITTEST_VERSION: v0.6.1
HELM_UNITTEST_VERSION: v0.7.1
run: |
helm plugin install https://github.com/helm-unittest/helm-unittest --version $HELM_UNITTEST_VERSION
Expand Down
6 changes: 3 additions & 3 deletions charts/alfresco-search-service/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
dependencies:
- name: alfresco-insight-zeppelin
repository: ""
version: 4.0.0-alpha.0
version: 4.0.0-alpha.1
- name: alfresco-common
repository: https://alfresco.github.io/alfresco-helm-charts/
version: 4.0.0-alpha.0
digest: sha256:79402b7c09780013902acddc4d6e42878f8dbf32a2644b11d57f7a3855a0ca26
generated: "2024-12-10T17:14:30.426415+01:00"
digest: sha256:08fad847e39390da3fadeb822a6157c4f7f179e30aa8453f15d71ee25f3293c7
generated: "2025-01-20T11:51:31.364381+01:00"
4 changes: 2 additions & 2 deletions charts/alfresco-search-service/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ keywords:
name: alfresco-search-service
sources:
- https://github.com/Alfresco/alfresco-helm-charts
version: 5.0.0-alpha.0
version: 5.0.0-alpha.1
appVersion: 2.0.13
dependencies:
- name: alfresco-insight-zeppelin
version: 4.0.0-alpha.0
version: 4.0.0-alpha.1
condition: alfresco-insight-zeppelin.enabled
- name: alfresco-common
version: 4.0.0-alpha.0
Expand Down
4 changes: 2 additions & 2 deletions charts/alfresco-search-service/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ parent: Charts Reference

# alfresco-search-service

![Version: 5.0.0-alpha.0](https://img.shields.io/badge/Version-5.0.0--alpha.0-informational?style=flat-square) ![AppVersion: 2.0.13](https://img.shields.io/badge/AppVersion-2.0.13-informational?style=flat-square)
![Version: 5.0.0-alpha.1](https://img.shields.io/badge/Version-5.0.0--alpha.1-informational?style=flat-square) ![AppVersion: 2.0.13](https://img.shields.io/badge/AppVersion-2.0.13-informational?style=flat-square)

A Helm chart for deploying Alfresco Search Service

Expand All @@ -21,7 +21,7 @@ Checkout [alfresco-content-services chart's doc](https://github.com/Alfresco/acs

| Repository | Name | Version |
|------------|------|---------|
| | alfresco-insight-zeppelin | 4.0.0-alpha.0 |
| | alfresco-insight-zeppelin | 4.0.0-alpha.1 |
| https://alfresco.github.io/alfresco-helm-charts/ | alfresco-common | 4.0.0-alpha.0 |

## Values
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dependencies:
- name: alfresco-common
repository: https://alfresco.github.io/alfresco-helm-charts/
version: 3.1.4
digest: sha256:472c86bbe4b88aceee0fec6653ae229ef9f5b6237d8d092d5d99c20272afa370
generated: "2024-11-28T13:40:55.654267468Z"
version: 4.0.0-alpha.0
digest: sha256:85e58624f01fb644cc7d66d17f90ad5d6524fdfe38f62857ffb3b16dbde97030
generated: "2025-01-20T11:05:06.569537+01:00"
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ keywords:
- alfresco zeppelin
- alfresco insight zeppelin
name: alfresco-insight-zeppelin
version: 4.0.0-alpha.0
version: 4.0.0-alpha.1
sources:
- https://github.com/Alfresco/alfresco-helm-charts
appVersion: 2.0.13
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ parent: Charts Reference

# alfresco-insight-zeppelin

![Version: 4.0.0-alpha.0](https://img.shields.io/badge/Version-4.0.0--alpha.0-informational?style=flat-square) ![AppVersion: 2.0.13](https://img.shields.io/badge/AppVersion-2.0.13-informational?style=flat-square)
![Version: 4.0.0-alpha.1](https://img.shields.io/badge/Version-4.0.0--alpha.1-informational?style=flat-square) ![AppVersion: 2.0.13](https://img.shields.io/badge/AppVersion-2.0.13-informational?style=flat-square)

A Helm chart for deploying Alfresco Insight Zeppelin

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
suite: test zeppelin configmap
templates:
- config.yaml
values:
- values/test_values.yaml
tests:
- it: should have default port and hosts
asserts:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ suite: test zeppelin deployment
templates:
- deployment.yaml
- config.yaml
values:
- values/test_values.yaml
tests:
- it: should have basic metadata in place
asserts:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
suite: test zeppelin ingress
templates:
- ingress.yaml
values:
- values/test_values.yaml
tests:
- it: should render default rules
asserts:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
enabled: true
2 changes: 1 addition & 1 deletion ct.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ helm-extra-args: --timeout 600s
validate-maintainers: false

additional-commands:
- helm unittest --color --with-subchart=false {{ .Path }}
- helm unittest --color {{ .Path }}
- helm template {{ .Path }} --output-dir {{ .Path }}/render -f {{ .Path }}/ci/default-values.yaml
- yamllint -c .yamllint.yml {{ .Path }}/render

0 comments on commit cdb4b44

Please sign in to comment.