yxxhero
5c5dc42ef5
Refactor integration tests ( #531 )
...
* refactor integrations
Signed-off-by: yxxhero <aiopsclub@163.com>
* Update the integration test directory structure to better correlate the test script with testdata
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
* Undo the test-cases directory renaming to make the diff more easy to understand
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
* fix ci
Signed-off-by: yxxhero <aiopsclub@163.com>
Signed-off-by: yxxhero <aiopsclub@163.com>
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
Co-authored-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-11-23 14:44:16 +09:00
xiaomudk
7844145ee3
Allow helmfile statefile to passed by stdin ( #520 )
...
* Allow helmfile statefile to passed by stdin
Signed-off-by: xiaomudk <xiaomudk@gmail.com>
2022-11-22 11:34:05 +08:00
xiaomudk
766c1c951f
Remove redundant metadata fields from test samples
...
Signed-off-by: xiaomudk <xiaomudk@gmail.com>
2022-11-22 10:33:05 +08:00
yxxhero
143f85b4f1
fix: helmfile template fails when selector matches a chart fetched with go-getter
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-11-13 15:10:57 +08:00
Lassi Pölönen
0f44cfacc4
Add the ability to specify a lock file ( #432 )
...
Allow configuring the lockfile in the state. This makes it possible for
example maintain a lock per environment.
Signed-off-by: Lassi Pölönen <lassi.polonen@iki.fi>
Signed-off-by: Lassi Pölönen <lassi.polonen@iki.fi>
2022-11-12 08:59:56 +09:00
yxxhero
1513035718
test: add template anchors merge e2e test
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-11-04 20:56:56 +08:00
yxxhero
b0bb03a0ea
fix unittest
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-11-04 12:53:38 +08:00
yxxhero
82004b53f9
split run.sh to make run.sh be more clear. ( #485 )
...
split run.sh
Signed-off-by: yxxhero <aiopsclub@163.com>
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-11-04 10:51:57 +09:00
xiaomudk
6dcde20d7a
Add subcommand init for checks and installs helmfile deps ( #389 )
...
* Add subcommand init for checks and installs helmfile deps
Signed-off-by: xiaomudk <xiaomudk@gmail.com>
2022-11-03 14:51:30 +08:00
Quan TRAN
e919b4b1d2
fix oci:// chart ( #477 )
...
* fix oci:// chart
Signed-off-by: Quan TRAN <itscaro@users.noreply.github.com>
2022-11-01 13:50:05 +08:00
Quan TRAN
414f899c28
use fs.Getwd() to get working dir for sub helmfile ( #471 )
...
* use fs.Getwd() to get working dir for sub helmfile
Signed-off-by: Quan TRAN <itscaro@users.noreply.github.com>
2022-10-29 07:40:40 +08:00
yxxhero
2e7261426a
fix chart needs test issue
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-10-28 14:45:24 +08:00
yxxhero
bc255f3e51
fix: fix need logic in chart stage
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-10-24 09:51:04 +08:00
yxxhero
bdaafdff67
feat: add helm-diff and kustomize in ci matrix ( #434 )
...
* feat: add helm-diff and kustomize in ci matrix
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-10-13 08:08:58 +08:00
yxxhero
bffa048dc6
Merge pull request #396 from helmfile/bump_yaml_v3
...
bump: upgrade gopkg.in/yaml.v2 to gopkg.in/yaml.v3
2022-10-05 10:12:25 +08:00
yxxhero
69d77507ee
update helm-diff version to 3.5.0 ( #379 )
...
Signed-off-by: yxxhero <aiopsclub@163.com>
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-10-05 11:02:49 +09:00
yxxhero
b347eec6f2
add more tests
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-10-03 11:47:46 +08:00
yxxhero
5367fbe549
add more tests
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-10-03 11:24:58 +08:00
yxxhero
f6fd754386
add more tests
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-10-03 11:09:02 +08:00
yxxhero
14ba7cd156
bump: upgrade gopkg.in/yaml.v2 to gopkg.in/yaml.v3
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-10-03 05:24:51 +08:00
Tsubasa Nagasawa
e8a7e23d4d
chore: add e2e test case for helm template with oci based helm chart
...
Signed-off-by: Tsubasa Nagasawa <toversus2357@gmail.com>
2022-09-18 19:11:26 +09:00
Rodrigo Fior Kuntzer
8408b021f0
feat: show live output from the Helm binary ( #286 )
...
* feat: show live output from the Helm binary
Signed-off-by: Rodrigo Fior Kuntzer <rodrigo@miro.com>
* fixup! Merge branch 'main' into enable-live-output
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-09-18 14:24:35 +09:00
KqLLL
0fbcb07bad
Support helm-secrets v4.0.0 ( #360 )
...
Support helm-secret v4.0.0
Signed-off-by: KqLLL <lllkq546449541@gmail.com>
2022-09-17 19:54:28 +09:00
Viktor Oreshkin
a56303b5bf
hack: fix flaky e2e test
...
Signed-off-by: Viktor Oreshkin <imselfish@stek29.rocks>
2022-09-02 18:36:27 +03:00
yxxhero
86072ca200
use helmfile testdata
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-08-28 10:36:21 +09:00
yxxhero
7434872c6b
fix ci error in issue.2118.yaml ( #319 )
...
Signed-off-by: yxxhero <aiopsclub@163.com>
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-08-26 10:59:28 +09:00
Arkaitz Jimenez
cc33e7b7d8
Introduce Helmfile's own filesystem abstraction to correctly unit test some components ( #307 )
...
Use abstracted FS
Signed-off-by: Arkaitz Jimenez <arkaitzj@gmail.com>
Signed-off-by: Arkaitz Jimenez <arkaitzj@gmail.com>
2022-08-24 12:58:43 +09:00
Arkaitz Jimenez
c9b5f95890
lint
...
Signed-off-by: Arkaitz Jimenez <arkaitzj@gmail.com>
2022-08-16 16:25:24 +02:00
Arkaitz Jimenez
4553efdcf1
Formatting
...
Signed-off-by: Arkaitz Jimenez <arkaitzj@gmail.com>
2022-08-16 16:25:24 +02:00
Arkaitz Jimenez
824f7ba2b2
Create failing test case
...
Signed-off-by: Arkaitz Jimenez <arkaitzj@gmail.com>
2022-08-16 16:25:24 +02:00
yxxhero
8690d63401
fix lint error
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-08-13 07:40:32 +08:00
vasicvuk
68d7c5f6a4
Implement readDirEntries method
...
Signed-off-by: vasicvuk <vuk.vasic@asseco-see.rs>
2022-07-26 16:20:38 +02:00
Yusuke Kuoka
098684c136
E2E helmfile-template testing with local chart repo server
...
This similar to #239 , but different in that it involves a local helm chart repo server instead of a local OCI registry as the container of the chart used in tests.
This also adds a new `localChartRepoServer.enabled` config to the `config.yaml` of each test case directory to enable the local helm repo server in the test, which might be useful when you want to add another test case that involes a remote chart(which is hosted in the local chart repo server).
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-07-20 11:59:32 +00:00
Tsubasa Nagasawa
ac1edafe9a
chore: clean up snapshot test
...
Signed-off-by: Tsubasa Nagasawa <toversus2357@gmail.com>
2022-07-19 00:08:09 +09:00
Yusuke Kuoka
48ae800f79
Add integration test with local oci repo
...
Follow-up for #238
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-07-18 13:43:01 +00:00
yxxhero
ac23def893
add Go lint
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-07-16 20:21:11 +08:00
Eng Zer Jun
ce3b81e2a1
test: use `T.Setenv` to set env vars in tests ( #189 )
...
This commit replaces `os.Setenv` with `t.Setenv` in tests. The
environment variable is automatically restored to its original value
when the test and all its subtests complete.
Reference: https://pkg.go.dev/testing#T.Setenv
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2022-06-30 09:15:34 +09:00
yxxhero
6e5a726ae5
fix ci issue ( #131 )
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-06-05 15:31:36 +09:00
Yusuke Kuoka
b986b3de9f
Merge pull request #99 from yxxhero/add_e2e_tmpl_test
...
add e2e tmpl test
2022-06-05 13:23:08 +09:00
yxxhero
070ed0dd47
fix intergration test for argo-cd form master to main branch
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-05-30 07:45:01 +08:00
yxxhero
9011d2dd15
fix import path name error
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-05-24 07:50:08 +08:00
yxxhero
c34c7c87a1
add get tpl e2e test
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-05-24 07:50:08 +08:00
yxxhero
23b6429f33
add toYaml and fromYaml
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-05-24 07:50:08 +08:00
yxxhero
33c66a6f46
add readfile e2e test
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-05-24 07:50:08 +08:00
yxxhero
70b874a596
add more testcases
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-05-24 07:50:08 +08:00
yxxhero
80457d964c
add e2e tmpl test
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-05-24 07:50:08 +08:00
Quan TRAN
3cae3f4f89
add integration test
...
Signed-off-by: Quan TRAN <account@itscaro.me>
2022-04-11 23:41:28 +02:00
yxxhero
303ef9cd80
remove ioutil usage in all project
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-04-03 15:53:19 +08:00
Yusuke Kuoka
dbc40f68b8
Make release template to work on `needs` ( #2099 )
...
It turned out that Helmfile has never had support for release template on `needs`.
This adds that, along with the new end-to-end test suite to verify helmfile template output with snapshot testing involving a real `helmfile build` command.
Ref #2098
2022-03-10 18:42:55 +09:00
Anton Bretting
2f04831817
Fix various golangci-lint errors ( #2059 )
2022-02-12 20:28:08 +09:00