mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-27 05:09:37 +00:00
ea64bf5935
Co-authored-by: Rhys Arkins <rhys@arkins.net> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
41 lines
1.4 KiB
TypeScript
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',
|
|
},
|
|
});
|
|
});
|
|
});
|
|
});
|