Skip to content

Commit

Permalink
test(jest/helmTool): add tests
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Marshall <[email protected]>
  • Loading branch information
alexhq committed Jul 27, 2023
1 parent 729c617 commit 19fcc50
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions jest/helmTool.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,24 @@ describe('helmTool', () => {
})
expect(cmd).toEqual('helm repo add --force-update test https://example.com --username test --password test')
})

// test getIndexYaml
it('can get index.yaml', async () => {
const tool = new HelmTool(edition, store, tmpDir)
const repo = await helmRepoStore.create({
data: {
name: 'test-getindex-repo',
active: true,
url: 'https://charts.bitnami.com/bitnami',
},
})
const index = await tool.getIndexYaml(repo)
expect(index).toBeDefined()
}, 1200000)

// test updateDbHelmCharts
it('can run updateDbHelmCharts', async () => {
const tool = new HelmTool(edition, store, tmpDir)
await tool.updateDbHelmCharts()
}, 1200000)
})

0 comments on commit 19fcc50

Please sign in to comment.