Граф коммитов

264 Коммитов

Автор SHA1 Сообщение Дата
Nathan Turinski 0cd040f458 Some fixes for the tests 2024-05-09 16:08:41 -07:00
Nathan d654250073
Update backup templates and disable Ballerina project creation tests (#4058)
* Update backup templates and disable Ballerina project creation tests

* Reset launch json
2024-03-28 15:57:59 -07:00
Megan Mott 6a7a02a691
Update `eslint-config` to enforce import types (#3918)
* Update imports using import type

* change
2023-12-05 10:48:45 -08:00
Hossam Mabed d080d3b977
Add EventGrid Cloud Event templates for .NET to verified list (#3916)
* update backup templates

remove setting

* attempt 1

* clean up
2023-11-29 11:34:08 -08:00
Nathan 5e16be93ac
Fix automated testing suite (#3880)
* Move assert in if clause

* Fix remaining tests (hopefully)
2023-10-10 13:24:27 -07:00
Nathan d48841aba8
Refactor template providers to check template schema, not language model (#3842)
* Refactor template providers to check template schema, not the language model

* Minor edits

* Improve comment

* Fix some accidentaly typos

* Add EnableWorkerIndexing for Python v2 projects as well
2023-09-15 13:08:52 -07:00
Nathan 53db433877
TemplateProvider for python v2 templates (#3799)
* Basic WIP of parsing v2 schema templates

* WIP

* WIP

* Handle project creation and job prompts/executes

* Initial PR feedback

* Rename FuctionTemplateV2 to FunctionV2Template

* Retrieve templates from extension bundle

* Use AzExtFsExtra.appendFile

* Fix build errors

* Rename BaseStep to StepBase

* PR feedback

* Rename FunctionV2Template variable

* Update package, add prog model step for Python, parse templates by template.v# rather than bundleVersions prop, default main app name

* Extra enumInputStep out to use QuickPickInputStep

* Refactor typings and add tests

* See if this fixes the tests at all

* Minor fixes

* Update backup templates for Pystein

* Revert changes in tests

* Revert changes in tests

* Add back changes removing .net 5

* Fix some build errors in test

* Comb through for a few more changes

* Fix build
2023-09-11 15:36:18 -07:00
Nathan d1249d4da7
Remove all .NET 5 tests since its EOL (#3832) 2023-09-08 13:00:48 -07:00
Alex Weininger 7ced659cf9
Fix executing service bus topic trigger (#3763)
* Fix executing service bus topic trigger

* Fix test
2023-07-18 16:30:51 -07:00
Anjana Supun cd2e6326a5
Add Ballerina language support (#3584)
* Add Ballerina language support

* Remove project subpath

* Add review suggestions

* Add debugger related changes

* Add minor review comments

* Add ballerina tests

* Add ballerina to test workflows

* Add ballerina related changes

* Add ballerina script type

* Fix lint issues

* Migrate from bal init to bal new
2023-07-14 13:09:46 -07:00
Alex Weininger 716d26dee4
Upgrade to TS 5.1.3 (#3712) 2023-06-13 14:59:07 -07:00
Alex Weininger 0201d98f6f
Update to utils v2 (#3707)
* Update to utils v2

* Remove `@azure/ms-rest-js`

* Use Node 16

* Set webpack target to node

* Treat 200 response as stream

* Treat all responses as a stream
2023-06-13 13:03:47 -07:00
Alex Weininger 890b122384
Enable unit tests (#3591)
* Revert "Skip all automated tests (#3437)"

This reverts commit 36a0ea7d23.

* Fix create function tests for durable Python templates (#3596)

* Fix create function tests

* Fix durable tests

* Fix durable tests

* Fixup

* Undo

* Fix create function tests for durable templates (#3598)

* Fix create function tests

* Fix durable tests

* Fix durable tests

* Fixup

* wip

* wip

* Fix durable tests

* Undo changes to main.js

* Undo changes to package.json

* Undo changes to FunctionTesterBase.ts

* Undo changes to runTest.ts

* Undo changes

* Undo

* Fix durable constants

* Fix template counts

* Add Model V3 input for add binding tests

* Fix picking model v3 for create new project tests

* Test crazy idea

* Ignore JSON parse errors

* Fix init project tests

* Fix createFunctionFromApi tests

* Test

* Fix createNewProjectApi test

* Remove .only
2023-05-15 11:22:40 -07:00
Eric Jizba 462add3144
Add clean script to TypeScript projects (#3654) 2023-04-24 11:09:10 -07:00
Nathan 36a0ea7d23
Skip all automated tests (#3437)
* Skip all tests from running

* Ignore test in the tsconfig.json

* Ignore eslint for test

* Add tests to the eslint ignore list

* need to compile tests still

* Comment out remaining code
2022-11-16 00:33:05 -08:00
David Justo 9d0c8f87e0
Verify Durable Functions Entity templates (#3412)
* verify out-of-proc Entity templates

* only add entity templates to specific PLs
2022-11-14 15:15:01 -08:00
Matthew Fisher a27cc81f8f
Streamline project creation when no active project is detected via `Create Function` (#3414) 2022-11-11 15:33:11 -08:00
Hanxiao Liu 9a25d46e96
Support java 17 runtime when create function project (#3311)
* Support create java 17 function project

* Force to use latest maven archetype when create maven function project

* Fix validation issue in `verifyAppSettings`

* Add validation for local java runtime

* Resolve issues in test cases

* Fix wording and migrate to `AzExtFsExtra`

* Update version for gradle plugin and java library
2022-09-13 09:36:27 -07:00
Phillip Hoff 925796cee3
Support for new Python language model (#3235)
* Sketch preview project type.

* Switch to language model rather than separate (sub) languages.

* Exclude Python v2+ from creating functions on project create.

* Store project language model in workspace settings.

* Add project-level function source.

* Use "isolated mode" detection of functions for Python v2+.

* Open function .py file on project creation.

* Detect Python language model.

* Add Python preview to VS Code init list.

* Extract python preview model into constant.

* Sketch prompt for Python function location.

* Sketch selecting a script.

* Sketch opening template.

* Append new function to file.

* Enforce storage configuration for Python V2+.

* Exclude extension bundles from Python V2+ projects.

* Check for valid Functions version.

* Complete merge from `main`.

* Resolve linter warnings.

* Updates per PM feedback.

* Updates per PR feedback.

* Shift subwizard to separate class.

* Move Python location script up front.

* Move Python script name prompt up front.

* Switch to local content provider.

* Fake Markdown for trigger template.

* Tweak text.

* Move content to query string.

* Sketch embedding PyStein templates in extension.

* Add Python Preview templates to verified list.

* Exclude OpenAPI function from PyStein projects.

* Account for lack of new files in function creation.

* Use template for project.

* Fix finding MD content in template.

* Disable name prompt for V2.

* Update required Function host version, add whitespace during append.

* Update version number.

* Replace direct use of fs-extra.

* Add notes for preview Python model numbering.

* More notes.

* Show getting started MD on creation.

* Do not expose properties commands from PyStein functions in tree.

* Exclude PyStein from re-adding bundle property on function create.

* Updates to documentation per feedback in PR.

* Update supported PyStein version number and comments.

* Allow opening MD to the side.

* Use opt-out list instead of opt-in.
2022-08-19 13:54:27 -07:00
Nathan 03bfe11077
Add net7 tests (#3277)
* Add net7 tests

* Update test/project/createNewProject.test.ts

Co-authored-by: Brandon Waterloo [MSFT] <36966225+bwateratmsft@users.noreply.github.com>

Co-authored-by: Brandon Waterloo [MSFT] <36966225+bwateratmsft@users.noreply.github.com>
2022-08-05 10:05:19 -07:00
Nathan 2249997540
Just use the 1st value for creating python projects (#3276) 2022-08-04 11:41:59 -07:00
Alex Weininger 32c2d51312
Switch to latest VS Code test package (#3275)
Co-authored-by: phoff <phoff@microsoft.com>
2022-08-04 10:45:44 -07:00
Nathan c27703a3e0
Replace fse with AzExtFsUtils where possible (#3268)
* SqlBindingTrigger template changes

* Use AzExtFsUtils where possible

* recursive delete/overwrite copy

* Overwrite backup templates when copying them

* Try to revert package.json

* Change fse.remove to .deleteResource
2022-08-01 11:51:07 -07:00
Nathan 72eddaee33
Fix tests to use v4 Core Tools (#3267)
* Change defaultTestFuncVersion to v4 and some other test fixes

* Download v4 version instead of v3

* standaloneCli changed to coreTools in releases json

* More test fixes

* Increase the minimum version in the test because the local version will be v4
2022-07-29 10:32:04 -07:00
Nathan b877d7e5ab
Update net7 templates (#3262) 2022-07-28 10:44:29 -07:00
Nathan 5adb507159
Update backup templates (#3260)
* SqlBindingTrigger template changes

* Update templates
2022-07-27 20:10:50 -07:00
Alex Weininger ad720b24f2
Fix PowerShell template tests (#3213) 2022-06-07 10:56:06 -07:00
Alex Weininger 947ded14db
Fix activating extension before running tests (#3198) 2022-05-27 09:42:06 -07:00
Alex Weininger a991bd57cb
Merge unified into main (#3168)
Co-authored-by: Alex Weininger <alex.weininger@live.com>
Co-authored-by: Nathan <naturins@microsoft.com>
2022-05-13 14:39:39 -07:00
Nathan dcf6c3f08d
Convert to azext-dev package (#3072)
* Convert to azext-dev package

* Fix webpack

* Use new appservice package

* npm install dev 0.1.3
2022-04-14 13:08:45 -07:00
Nathan 411ece5f94
package migration for @microsoft packages and T2 (#3046)
* package migration for @microsoft packages and T2

* Remove stale comment

* Add registerAzureUtilsExtensionVariables(ext) call before AppService

* Alphabetize

* Comments to fix loadMore if paging gets fixed
2022-02-15 10:08:16 -08:00
Hanxiao Liu f0784d241f
Support create gradle project in Functions extension (#2970)
* Refactor JavaProjectCreateStep to support create Java Gradle project

* Get latest gradle plugin version from repository when create gradle projects

* Validate gradle installation status before create gradle project

* Resolve issues and add test cases for java gradle

* Migrate to JavaBuildToolTask for build tool selection when create new java project

* Add validation for gradle project in java template provider and resolve test case issue

* Resolve style issues and fix typo

* Refactor addJavaCreateProjectStep to do build tool selection in prompt steps

* Resolve comment issues
2022-02-02 20:36:33 -08:00
Alex Weininger 14dcb9b1b6
Handle multiple target frameworks when creating function via API (#3031) 2022-01-04 13:04:15 -08:00
Brandon Waterloo [MSFT] 1576745478
Drop unsupported .NET Core versions and nearly-unsupported Python version (#3018) 2021-12-07 13:42:05 -05:00
Hanxiao Liu fec41467d7
Refactor Java project init step to support gradle java project (#2932) 2021-09-17 11:52:41 -07:00
Eric Jizba bc7f244643
Add .Net 6 nightly deploy test (#2965) 2021-09-13 09:57:31 -07:00
Eric Jizba f327d913d2
Temporarily disable net5 v4 test (#2950) 2021-09-03 11:48:48 -07:00
Alex Weininger 086bce4706
Respect folderPath option in createFunction api (#2946) 2021-09-02 16:43:07 -07:00
Eric Jizba b4516d328c
Increase requestTimeout for tests (#2929) 2021-08-24 13:23:16 -07:00
Eric Jizba 27970afcd4
Add setting for funcCliPath (#2928) 2021-08-24 09:26:19 -07:00
Eric Jizba 06974c2c23
Support create project/function for v4 (#2914) 2021-08-13 11:04:53 -07:00
Will Lorey ac446dd2f2
Switch to shared ESLint config (#2916) 2021-08-13 10:40:56 -07:00
Eric Jizba e91d781bd5
Bump shared packages to support correlation id (#2897) 2021-07-29 16:16:03 -07:00
Eric Jizba d65ea09e53
Use `workspace.findFiles` instead of `fs` methods (#2891) 2021-07-21 11:35:19 -07:00
Eric Jizba f52388ad23
Add validation of dotnet vs. dotnet-isolated runtime (#2876) 2021-07-12 18:32:12 -07:00
Eric Jizba 5a22682460
Better handle overwrite of existing tasks (#2871) 2021-07-09 16:45:58 -07:00
Eric Jizba f84df319eb
Disable workspace trust for tests to fix build (#2870) 2021-07-09 12:15:38 -07:00
Eric Jizba 15e9aacb95
Use action-specific user input (#2869)
and remove extension-specific user input

See https://github.com/microsoft/vscode-azuretools/pull/949 for more info
2021-07-08 11:05:34 -07:00
Eric Jizba 4d34ad3137
Fix Add binding test (#2865) 2021-06-23 11:27:18 -07:00
Eric Jizba aabab3e68e
Fix venvUtil tests (#2864) 2021-06-23 11:01:47 -07:00