-
Notifications
You must be signed in to change notification settings - Fork 150
Introduce new scenarios testing framework #4895
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
MicroFish91
wants to merge
27
commits into
main
Choose a base branch
from
mwf/test-scenarios-framework
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
90be4a6
WIP
MicroFish91 3ff5184
WIP: Create New Project done
MicroFish91 ef08785
WIP: Everything creates properly
MicroFish91 f7dd79c
WIP: More updates
MicroFish91 7607ee6
Working for one section
MicroFish91 5c6ba28
Set up some custom coding agents for planning and reviewing
MicroFish91 ce6701d
Update lots of copilotey things
MicroFish91 ee4386c
Another set of scenarios working
MicroFish91 68fe065
Working with scenarios tracker
MicroFish91 426f6ab
Fix some issues, add verify deployment
MicroFish91 6c47b65
Dotnet working, added post tests even if deployment failed
MicroFish91 856e7b1
Enable most of the durable tests azureStorage + DTS
MicroFish91 564b423
Add scenario testing for http triggers js
MicroFish91 810d456
Update test combinations markdown
MicroFish91 60b703e
Update plan.md's
MicroFish91 15cf768
Add core vs extended - unfinished
MicroFish91 97b9d0a
Remove extra features
MicroFish91 9a3f6f0
Misc improvements
MicroFish91 6036466
Clean up stray code
MicroFish91 315373f
Add more comments
MicroFish91 002aa82
Reorganize constants
MicroFish91 949efde
Update constants
MicroFish91 7604239
Rename some properties and environment variable
MicroFish91 b21d39a
Update basic tests
MicroFish91 6f7a76c
Update a comment
MicroFish91 22939af
Add createNewProject verification post test
MicroFish91 124c790
Update storage connection description
MicroFish91 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| /*--------------------------------------------------------------------------------------------- | ||
| * Copyright (c) Microsoft Corporation. All rights reserved. | ||
| * Licensed under the MIT License. See License.txt in the project root for license information. | ||
| *--------------------------------------------------------------------------------------------*/ | ||
|
|
||
| // #region create-new-project | ||
| // Project type picks | ||
| export const durableOrchestratorPick: RegExp = /Durable Functions Orch/i; // Sometimes this is "orchestrator" or "orchestration" depending on the template feed | ||
| export const durableAzureStoragePick: RegExp = /Azure Storage/i; | ||
|
|
||
| // Default names | ||
| export const durableOrchestratorName: string = 'durableHello'; | ||
|
|
||
| // Language picks | ||
| export const jsLanguagePick: RegExp = /JavaScript/i; | ||
|
|
||
| // Framework picks | ||
| export const jsModelV4Pick: RegExp = /v4/i; | ||
|
|
||
| // #endregion | ||
|
|
||
| // ---------------------------- | ||
|
|
||
| // #region create-function-app | ||
| // Default runtime picks | ||
| export const nodeRuntimePick: RegExp = /Node\.js(\s)?22/i; | ||
|
|
||
| // Create resource picks | ||
| export const createNewResourceGroupPick: RegExp = /Create new resource group/i; | ||
| export const createNewStorageAccountPick: RegExp = /Create new storage account/i; | ||
| export const createNewAppInsightsPick: RegExp = /Create new application insights/i; | ||
| export const createNewAppServicePlanPick: RegExp = /Create new app service plan/i; | ||
| export const createNewUserAssignedIdentityPick: RegExp = /Create new user[- ]assigned identity/i; | ||
|
|
||
| // Location picks | ||
| export const locationDefaultPick: RegExp = /West US 2/i; | ||
|
|
||
| // #endregion |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,9 +3,10 @@ | |
| * Licensed under the MIT License. See LICENSE.md in the project root for license information. | ||
| *--------------------------------------------------------------------------------------------*/ | ||
|
|
||
| import { registerAppServiceExtensionVariables } from '@microsoft/vscode-azext-azureappservice'; | ||
| import { registerAzureUtilsExtensionVariables } from '@microsoft/vscode-azext-azureutils'; | ||
| import { createTestActionContext, runWithTestActionContext, TestOutputChannel, TestUserInput } from '@microsoft/vscode-azext-dev'; | ||
| import { AzExtFsExtra } from '@microsoft/vscode-azext-utils'; | ||
| import * as assert from 'assert'; | ||
| import { AzExtFsExtra, registerUIExtensionVariables } from '@microsoft/vscode-azext-utils'; | ||
| import * as os from 'os'; | ||
| import * as path from 'path'; | ||
| import * as vscode from 'vscode'; | ||
|
|
@@ -56,6 +57,10 @@ suiteSetup(async function (this: Mocha.Context): Promise<void> { | |
|
|
||
| ext.outputChannel = new TestOutputChannel(); | ||
|
|
||
| registerAppServiceExtensionVariables(ext); | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. TODO: Remove when migrating to es build |
||
| registerAzureUtilsExtensionVariables(ext); | ||
| registerUIExtensionVariables(ext); | ||
|
|
||
| registerOnActionStartHandler(context => { | ||
| // Use `TestUserInput` by default so we get an error if an unexpected call to `context.ui` occurs, rather than timing out | ||
| context.ui = new TestUserInput(vscode); | ||
|
|
@@ -170,8 +175,8 @@ async function initTestWorkspaceFolders(): Promise<string[]> { | |
| const folders: string[] = []; | ||
| for (let i = 0; i < workspaceFolders.length; i++) { | ||
| const workspacePath: string = workspaceFolders[i].uri.fsPath; | ||
| const folderName = path.basename(workspacePath); | ||
| assert.equal(folderName, String(i), `Unexpected workspace folder name "${folderName}".`); | ||
| // const folderName = path.basename(workspacePath); | ||
| // assert.equal(folderName, String(i), `Unexpected workspace folder name "${folderName}".`); | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this assertion needed? |
||
| await AzExtFsExtra.ensureDir(workspacePath); | ||
| await AzExtFsExtra.emptyDir(workspacePath); | ||
| folders.push(workspacePath); | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Todo: Unset these before merging
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default nightly run would test with AzCode_RunScenarioExtended not set to anything**