@@ -10,29 +10,32 @@ import { AzExtFsExtra } from '@microsoft/vscode-azext-utils';
1010import * as assert from 'assert' ;
1111import * as path from 'path' ;
1212import * as vscode from 'vscode' ;
13- import { FuncVersion , ProjectLanguage , copyFunctionUrl , createGenericClient , createNewProjectInternal , deployProductionSlot , getRandomAlphanumericString , getRandomHexString , nonNullProp } from '../../extension.bundle' ;
13+ import { ProjectLanguage , copyFunctionUrl , createGenericClient , createNewProjectInternal , deployProductionSlot , getRandomAlphanumericString , getRandomHexString , nonNullProp } from '../../extension.bundle' ;
1414import { addParallelSuite , runInSeries , type ParallelTest } from '../addParallelSuite' ;
1515import { getTestWorkspaceFolder } from '../global.test' ;
16- import { NodeModelVersion , PythonModelVersion , defaultTestFuncVersion , getCSharpValidateOptions , getJavaScriptValidateOptions , getPowerShellValidateOptions , getPythonValidateOptions , getTypeScriptValidateOptions , validateProject , type IValidateProjectOptions } from '../project/validateProject' ;
16+ import { NodeModelVersion , PythonModelVersion , defaultTestFuncVersion , getJavaScriptValidateOptions , getPythonValidateOptions , getTypeScriptValidateOptions , validateProject , type IValidateProjectOptions } from '../project/validateProject' ;
1717import { getRotatingAuthLevel , getRotatingLocation , getRotatingNodeVersion , getRotatingPythonVersion } from './getRotatingValue' ;
1818import { resourceGroupsToDelete } from './global.nightly.test' ;
1919
2020interface CreateProjectAndDeployTestCase extends ICreateProjectAndDeployOptions {
2121 title : string ;
2222 buildMachineOsToSkip ?: NodeJS . Platform | NodeJS . Platform [ ] ;
2323}
24+ const confirmDeploy = 'Deploy' ;
2425
2526const testCases : CreateProjectAndDeployTestCase [ ] = [
26- { title : 'JavaScript' , ...getJavaScriptValidateOptions ( true , undefined , undefined , undefined ) , deployInputs : [ getRotatingNodeVersion ( ) , TestInput . UseDefaultValue /* instance mem size*/ , TestInput . UseDefaultValue /*max instance*/ ] , languageModelVersion : NodeModelVersion . v4 } ,
27- { title : 'TypeScript' , ...getTypeScriptValidateOptions ( ) , deployInputs : [ getRotatingNodeVersion ( ) , TestInput . UseDefaultValue /* instance mem size*/ , TestInput . UseDefaultValue /*max instance*/ ] , languageModelVersion : NodeModelVersion . v4 } ,
27+ { title : 'JavaScript' , ...getJavaScriptValidateOptions ( true , undefined , undefined , undefined , NodeModelVersion . v4 ) , deployInputs : [ getRotatingNodeVersion ( ) , TestInput . UseDefaultValue /* instance mem size*/ , TestInput . UseDefaultValue /*max instance*/ , confirmDeploy ] , languageModelVersion : NodeModelVersion . v4 } ,
28+ { title : 'TypeScript' , ...getTypeScriptValidateOptions ( { modelVersion : NodeModelVersion . v4 } ) , deployInputs : [ getRotatingNodeVersion ( ) , TestInput . UseDefaultValue /* instance mem size*/ , TestInput . UseDefaultValue /*max instance*/ , confirmDeploy ] , languageModelVersion : NodeModelVersion . v4 } ,
2829 // Temporarily disable Ballerina tests until we can install Ballerina on the new pipelines
2930 // https://github.com/microsoft/vscode-azurefunctions/issues/4210
3031 // { title: 'Ballerina', ...getBallerinaValidateOptions(), createProjectInputs: ["JVM"], deployInputs: [/java.*11/i] },
31- { title : 'C# .NET 8' , ...getCSharpValidateOptions ( 'net8.0' , FuncVersion . v4 ) , createProjectInputs : [ / n e t .* 8 / i] , deployInputs : [ / n e t .* 8 / i, TestInput . UseDefaultValue /* instance mem size*/ , TestInput . UseDefaultValue /*max instance*/ ] , createFunctionInputs : [ 'Company.Function' ] } ,
32+ // Temporarily disable .NET 8 tests due to Encountered an error (InternalServerError) from host runtime error.
33+ // { title: 'C# .NET 8', ...getCSharpValidateOptions('net8.0', FuncVersion.v4), createProjectInputs: [/net.*8/i], deployInputs: [/net.*8/i, TestInput.UseDefaultValue /* instance mem size*/, TestInput.UseDefaultValue /*max instance*/, confirmDeploy], createFunctionInputs: ['Company.Function'] },
3234 // Temporarily disable .NET 9 test for now; it seems to break after running clean release (functions)
3335 // { title: 'C# .NET 9', ...getCSharpValidateOptions('net9.0', FuncVersion.v4), createProjectInputs: [/net.*9/i], deployInputs: [/net.*9/i, TestInput.UseDefaultValue /* instance mem size*/, TestInput.UseDefaultValue /*max instance*/], createFunctionInputs: ['Company.Function'] },
34- { title : 'PowerShell' , ...getPowerShellValidateOptions ( ) , deployInputs : [ / p o w e r s h e l l .* 7 .4 / i, TestInput . UseDefaultValue /* instance mem size*/ , TestInput . UseDefaultValue /*max instance*/ ] } ,
35- { title : 'Python' , ...getPythonValidateOptions ( '.venv' , undefined ) , createProjectInputs : [ / p y / ] , deployInputs : [ getRotatingPythonVersion ( ) , TestInput . UseDefaultValue /* instance mem size*/ , TestInput . UseDefaultValue /*max instance*/ ] , languageModelVersion : PythonModelVersion . v2 } ,
36+ // Temporarily disable PowerShell tests due to Encountered an error (InternalServerError) from host runtime error.
37+ // { title: 'PowerShell', ...getPowerShellValidateOptions(), deployInputs: [/powershell.*7.4/i, TestInput.UseDefaultValue /* instance mem size*/, TestInput.UseDefaultValue /*max instance*/, confirmDeploy] },
38+ { title : 'Python' , ...getPythonValidateOptions ( '.venv' , undefined , PythonModelVersion . v2 ) , createProjectInputs : [ / p y / ] , deployInputs : [ getRotatingPythonVersion ( ) , TestInput . UseDefaultValue /* instance mem size*/ , TestInput . UseDefaultValue /*max instance*/ , confirmDeploy ] , languageModelVersion : PythonModelVersion . v2 } ,
3639]
3740
3841const parallelTests : ParallelTest [ ] = [ ] ;
0 commit comments