Notebook Service tests (#13181)

This commit is contained in:
Arvind Ranasaria
2020-11-03 14:16:11 -08:00
committed by GitHub
parent f10ac10f6d
commit b175c97dfe
5 changed files with 352 additions and 45 deletions

View File

@@ -3,10 +3,11 @@
* Licensed under the Source EULA. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { EOL } from 'os';
import * as nls from 'vscode-nls';
import { getErrorMessage } from './common/utils';
import { ResourceTypeCategories } from './constants';
import { FieldType, OptionsType } from './interfaces';
const localize = nls.loadMessageBundle();
export const account = localize('azure.account', "Azure Account");
@@ -45,6 +46,10 @@ export const multipleValidationErrors = localize("validation.multipleValidationE
export const scriptToNotebook = localize('ui.ScriptToNotebookButton', "Script");
export const deployNotebook = localize('ui.DeployButton', "Run");
export const viewErrorDetail = localize('resourceDeployment.ViewErrorDetail', "View error detail");
export const failedToOpenNotebook = (error: any) => localize('resourceDeployment.FailedToOpenNotebook', "An error occurred opening the output notebook. {1}{2}.", EOL, getErrorMessage(error));
export const backgroundExecutionFailed = (taskName: string) => localize('resourceDeployment.BackgroundExecutionFailed', "The task \"{0}\" has failed.", taskName);
export const taskFailedWithNoOutputNotebook = (taskName: string) => localize('resourceDeployment.TaskFailedWithNoOutputNotebook', "The task \"{0}\" failed and no output Notebook was generated.", taskName);
export function getResourceTypeCategoryLocalizedString(resourceTypeCategory: string): string {
switch (resourceTypeCategory) {