Skip to content

Commit 19fcc50

Browse files
committed
test(jest/helmTool): add tests
Signed-off-by: Alex Marshall <alex@btp.works>
1 parent 729c617 commit 19fcc50

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

jest/helmTool.test.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,24 @@ describe('helmTool', () => {
6868
})
6969
expect(cmd).toEqual('helm repo add --force-update test https://example.com --username test --password test')
7070
})
71+
72+
// test getIndexYaml
73+
it('can get index.yaml', async () => {
74+
const tool = new HelmTool(edition, store, tmpDir)
75+
const repo = await helmRepoStore.create({
76+
data: {
77+
name: 'test-getindex-repo',
78+
active: true,
79+
url: 'https://charts.bitnami.com/bitnami',
80+
},
81+
})
82+
const index = await tool.getIndexYaml(repo)
83+
expect(index).toBeDefined()
84+
}, 1200000)
85+
86+
// test updateDbHelmCharts
87+
it('can run updateDbHelmCharts', async () => {
88+
const tool = new HelmTool(edition, store, tmpDir)
89+
await tool.updateDbHelmCharts()
90+
}, 1200000)
7191
})

0 commit comments

Comments
 (0)