mirror of
https://github.com/renovatebot/renovate.git
synced 2025-02-19 07:15:06 +00:00
42 lines
1.4 KiB
TypeScript
42 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',
|
||
|
},
|
||
|
});
|
||
|
});
|
||
|
});
|
||
|
});
|