@@ -383,54 +383,6 @@ test('Integrations are returned if feature flag is false and mode is dev', async
383383 t . assert ( config . integrations [ 0 ] . has_build === true )
384384} )
385385
386- test ( 'Integrations and account id are returned if flag is true for site and mode is buildbot' , async ( t ) => {
387- const { output } = await new Fixture ( './fixtures/base' )
388- . withFlags ( {
389- siteId : 'test' ,
390- mode : 'buildbot' ,
391- token : 'test' ,
392- accountId : 'account1' ,
393- featureFlags : {
394- cli_integration_installations_meta : true ,
395- } ,
396- } )
397- . runConfigServer ( [ SITE_INFO_DATA , TEAM_INSTALLATIONS_META_RESPONSE , FETCH_INTEGRATIONS_EMPTY_RESPONSE ] )
398-
399- const config = JSON . parse ( output )
400-
401- t . assert ( config . integrations )
402- t . is ( config . integrations . length , 1 )
403- t . is ( config . integrations [ 0 ] . slug , 'test' )
404- t . is ( config . integrations [ 0 ] . version , 'so-cool' )
405- t . is ( config . integrations [ 0 ] . has_build , true )
406-
407- // account id is also available
408- t . assert ( config . siteInfo )
409- t . is ( config . siteInfo . account_id , 'account1' )
410- } )
411-
412- test ( 'Integrations are returned if flag is true for site and mode is dev' , async ( t ) => {
413- const { output } = await new Fixture ( './fixtures/base' )
414- . withFlags ( {
415- siteId : 'test' ,
416- mode : 'dev' ,
417- token : 'test' ,
418- accountId : 'account1' ,
419- featureFlags : {
420- cli_integration_installations_meta : true ,
421- } ,
422- } )
423- . runConfigServer ( [ SITE_INFO_DATA , TEAM_INSTALLATIONS_META_RESPONSE , FETCH_INTEGRATIONS_EMPTY_RESPONSE ] )
424-
425- const config = JSON . parse ( output )
426-
427- t . assert ( config . integrations )
428- t . assert ( config . integrations . length === 1 )
429- t . assert ( config . integrations [ 0 ] . slug === 'test' )
430- t . assert ( config . integrations [ 0 ] . version === 'so-cool' )
431- t . assert ( config . integrations [ 0 ] . has_build === true )
432- } )
433-
434386test ( 'baseRelDir is true if build.base is overridden' , async ( t ) => {
435387 const fixturesDir = normalize ( `${ fileURLToPath ( test . meta . file ) } /../fixtures` )
436388
0 commit comments