Skip to content
Snippets Groups Projects
Select Git revision
  • 2ea48035586c7bfda730e7072ce847e56b9fa639
  • master default protected
  • fix/blockmode-expansion-test
  • fix/blockmode-expansion
  • use-official-metadata-endpoint
  • versioning-policy
  • v1.5.3
  • v1.5.2
  • v1.5.1
  • v1.5.0
  • v1.4.0
  • v1.3.2
  • v1.3.1
  • v1.3.0
  • v1.2.3
  • v1.2.2
  • v1.2.1
  • v1.2.0
  • v1.1.5
  • v1.1.4
  • v1.1.3
  • v1.1.2
  • v1.1.1
  • v1.1.0
  • v1.0.0
25 results

main.go

Blame
  • Forked from GitHub Mirror / hetznercloud / csi-driver
    Source project has a limited visibility.
    index.spec.ts 11.53 KiB
    import fs from 'fs';
    import * as globalCache from '../../util/cache/global';
    import * as runCache from '../../util/cache/run';
    import _got from '../../util/got';
    import * as _hostRules from '../../util/host-rules';
    import * as nuget from '.';
    
    const hostRules: any = _hostRules;
    
    jest.mock('../../util/got');
    jest.mock('../../util/host-rules');
    
    const got: any = _got;
    
    const pkgListV3 = fs.readFileSync(
      'lib/datasource/nuget/__fixtures__/nunitV3.json',
      'utf8'
    );
    const pkgListV3WithoutProkjectUrl = fs.readFileSync(
      'lib/datasource/nuget/__fixtures__/nunitV3_withoutProjectUrl.json',
      'utf8'
    );
    const pkgListV3NoGitHubProjectUrl = fs.readFileSync(
      'lib/datasource/nuget/__fixtures__/nunitV3_noGitHubProjectUrl.json',
      'utf8'
    );
    const pkgListV3PrivateFeed = fs.readFileSync(
      'lib/datasource/nuget/__fixtures__/nunitV3_privateFeed.json',
      'utf8'
    );
    const pkgInfoV3FromNuget = fs.readFileSync(
      'lib/datasource/nuget/__fixtures__/nunitv3_nuget-org.xml',
      'utf8'
    );
    
    const pkgListV2 = fs.readFileSync(
      'lib/datasource/nuget/__fixtures__/nunitV2.xml',
      'utf8'
    );
    const pkgListV2NoGitHubProjectUrl = fs.readFileSync(
      'lib/datasource/nuget/__fixtures__/nunitV2_noGitHubProjectUrl.xml',
      'utf8'
    );
    const pkgListV2NoRelease = fs.readFileSync(
      'lib/datasource/nuget/__fixtures__/nunitV2_no_release.xml',
      'utf8'
    );
    const pkgListV2WithoutProjectUrl = fs.readFileSync(
      'lib/datasource/nuget/__fixtures__/nunitV2_withoutProjectUrl.xml',
      'utf8'
    );
    
    const pkgListV2Page1of2 = fs.readFileSync(
      'lib/datasource/nuget/__fixtures__/nunitV2_paginated_1.xml',
      'utf8'
    );
    const pkgListV2Page2of2 = fs.readFileSync(
      'lib/datasource/nuget/__fixtures__/nunitV2_paginated_2.xml',
      'utf8'
    );
    
    const nugetIndexV3 = fs.readFileSync(
      'lib/datasource/nuget/__fixtures__/indexV3.json',
      'utf8'
    );
    
    const configV3V2 = {
      lookupName: 'nunit',
      registryUrls: [
        'https://api.nuget.org/v3/index.json',