0
0
Fork 0
mirror of https://github.com/renovatebot/renovate.git synced 2025-01-27 05:09:37 +00:00
renovatebot_renovate/lib/modules/datasource/helm/schema.spec.ts
Sergei Zharinov ea64bf5935
feat(helm): Use schema for datasource (#33577)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-16 10:54:10 +00:00

41 lines
1.4 KiB
TypeScript

import { Fixtures } from '../../../../test/fixtures';
import { Yaml } from '../../../util/schema-utils';
import { HelmRepositorySchema } from './schema';
describe('modules/datasource/helm/schema', () => {
describe('sourceUrl', () => {
it('works', () => {
const repo = Yaml.pipe(HelmRepositorySchema).parse(
Fixtures.get('sample.yaml'),
);
expect(repo).toMatchObject({
airflow: {
homepage:
'https://github.com/bitnami/charts/tree/master/bitnami/airflow',
sourceUrl:
'https://github.com/bitnami/charts/tree/master/bitnami/airflow',
},
coredns: {
homepage: 'https://coredns.io',
sourceUrl: 'https://github.com/coredns/helm',
},
pgadmin4: {
homepage: 'https://www.pgadmin.org/',
sourceUrl: 'https://github.com/rowanruseler/helm-charts',
},
'private-chart-github': {
homepage:
'https://github.example.com/some-org/charts/tree/master/private-chart',
sourceUrl:
'https://github.example.com/some-org/charts/tree/master/private-chart',
},
'private-chart-gitlab': {
homepage:
'https://gitlab.example.com/some/group/charts/-/tree/master/private-chart',
sourceUrl:
'https://gitlab.example.com/some/group/charts/-/tree/master/private-chart',
},
});
});
});
});