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

754 Коммитов

Автор SHA1 Сообщение Дата
kai ru 64f403a5fe
Update README.md (#900) 2022-11-01 10:34:12 +08:00
necusjz 27b54a441f
Add a dry run as document (#891)
* add a dry run as document

* refine README.md
2022-05-05 14:00:10 +08:00
necusjz 1114a7b781
refine documents (#886) 2022-03-10 14:43:28 +08:00
necusjz 08dd5d35bd
Update FAQ for common errors while code generation (#885)
* update FAQ for common errors

* add specific version information
2022-02-25 18:28:12 +08:00
kai ru d453d45869
Update how-to-author-readme-file.md (#884) 2022-02-25 18:27:53 +08:00
kai ru b000db70f6
Use tack2 SDK by default for azure core (#880)
* update track2 for core

* update version for release
2021-08-19 12:23:41 +08:00
kai ru 67f4aa7528
[Fix] add property for flattened params (#879)
* add property for flattened params

* Fix issue
2021-08-18 17:01:46 +08:00
kai ru 130ea45553
Disable History.rst overriding (#877)
* Disable History.rst overriding

* add protection for history.rst and yaml file
2021-08-11 16:20:55 +08:00
kai ru 2352cafca8
[Custom] Optimize custom function (#872)
* support to remove empty property

* update test custom file

* add default value for argument which is not in parameter

* update tests
2021-08-09 10:19:37 +08:00
kai ru 2c670a3724
fix invalid custom generated issue (#864)
* fix invalid custom

* fix #861

* fix test
2021-07-21 11:39:10 +08:00
changlong-liu 5ab34ef283
20210625 fix e2e (#867)
* use node 13.x

* temp test

* Revert "temp test"

This reverts commit a7cd08ea73.
2021-06-28 09:49:53 +08:00
changlong-liu 48e940ce8d
use main (#865) 2021-06-25 10:55:00 +08:00
kai ru aef72eb32b
Add parentKeys for subprop of action (#862)
* support parentKeys in subprop of action

* using pythonName instead of ToSnakeCase

* fix value_chunk_list issues

* remove some empty lines in generated code.

* keep origin action style

* update tests
2021-06-24 08:21:44 +08:00
changlong-liu a573427e94
20210426 swagger scenario (#838)
* use oav 2.3.2

* use oav 2.3.2

* handle wrong test scenario

* remove old scenario

* gen rest call

* fix rest call body

* test output

* clear code

* rename swagger test filename

* clean code

* output

* scenario steps file

* use swagger_steps

* fix spell issue

* configurable use-swagger-scenario and location

* spell fix
2021-06-10 17:23:08 +08:00
kai ru e57ffffae8
Update README.md (#857) 2021-06-10 10:43:08 +08:00
changlong-liu 114cc5e245
Polymorphism multi layer split (#848)
* hider update

* poly as resource

* polymorphism fix

* merger update for poly

* reserve work

* discriminator value

* comment out debug info

* for wsl path

* reserve work

* fix bugs

* remove duplicated autogen test scenario

* Revert "fix bugs"

This reverts commit fac6981063.

* fix datafactory test

* fix managedNetwork

* check discriminator value in test

* add middle group in help

* fix action bug

* check schema for checking dup names

* remove resource prefix in param

* use clicommon 0.6.2

Co-authored-by: qiaozha <qiaozha@microsoft.com>
2021-06-01 13:30:18 +08:00
kai ru 64757000c7
Rename template suffix by *.njk (#852)
* rename template *.njx by *.njk

* rename njx to njk in code
2021-05-27 11:00:10 +08:00
Zunli Hu bf0a871112
fix (#849) 2021-05-26 15:24:18 +08:00
changlong-liu 0679c212cf
20210508 fix unittest (#843)
* use relative path for nunjucks.render

* give linter more time to run

* fix readme test
2021-05-10 15:14:52 +08:00
changlong-liu 6122a3c663
readme.md refactor and duplicate test parameters (#836)
* refactor

* for #828

* FIX TEST

* refactor

* down sort

* pin to prettier@2.2.1
2021-05-10 13:27:55 +08:00
changlong-liu c2bef11083
refactor: report.md (#835)
* refactor: report.md

* unit test

* fix test
2021-04-23 12:40:23 +08:00
Qiaoqiao Zhang c6a297b844
Fix marketplaceordering issues (#831)
* command-interfaces-user-cases-document

* document update

* group change

* bugfixes and doc improvement

* update group description

* remove new sdk release impact on scenario test

* autorest directive and cli directive document

* refactor of code model impl

* fix codemoel layer

* refactor fixes

* refactor

* reserve work

* refactor the codemodel

* example refactor

* resolve conflict part

* resolve conflicts

* manual-config-feature-gap-after-refactor

* fix-test

* add test config

* manual config features and tests

* scenario test

* fix-marketplaceordering-issues

* add array type example

* feature type

* remove unused reference

* fix marketplaceordering folder path etc

* fix duplicate group help info

* fix scenario test except kusto

* fix kusto test

* scenario test

* add fix for help

* add back msgraph change

* fix help info

* Update CliTopInit.ts
2021-04-21 19:40:48 +08:00
Qiaoqiao Zhang c85ea6a31e
CLIModel refactor step 1 - split interfaces (#824)
* command-interfaces-user-cases-document

* document update

* group change

* bugfixes and doc improvement

* update group description

* remove new sdk release impact on scenario test

* autorest directive and cli directive document

* refactor of code model impl

* fix codemoel layer

* refactor fixes

* refactor

* reserve work

* refactor the codemodel

* example refactor

* resolve conflict part

* resolve conflicts

* Manual config feature gap after refactor (#827)

* manual-config-feature-gap-after-refactor

* fix-test

* add test config

* manual config features and tests

* scenario test

* add array type example

* feature type

* remove unused reference
2021-04-19 14:21:44 +08:00
changlong-liu 1b68eeb0db
for #814 (#819)
* for #814

* clean

* for #820

* clean

* for #802

* gen output after merge

Co-authored-by: Qiaoqiao Zhang <55688292+qiaozha@users.noreply.github.com>
2021-04-14 19:45:40 +08:00
kingces95 0d9d62903d
Update how-to-generate.md (#727)
* Update how-to-generate.md

* Update how-to-generate.md

* Update how-to-generate.md

* Update how-to-generate.md

Co-authored-by: Qiaoqiao Zhang <55688292+qiaozha@users.noreply.github.com>
2021-04-14 16:53:43 +08:00
Qiaoqiao Zhang 237047f3cb
Command interfaces user cases document (#796)
* command-interfaces-user-cases-document

* document update

* group change

* bugfixes and doc improvement

* update group description

* remove new sdk release impact on scenario test

* autorest directive and cli directive document
2021-04-14 13:10:51 +08:00
changlong-liu 71b8167daf
20210402 linting and doc (#812)
* testcase -> test case

* for #783

* for #777

* for #798

* #811

* shrink impact

* output

* fix -y
2021-04-07 17:09:34 +08:00
Qiaoqiao Zhang 1c7662d1e4
Action.py template based refactor (#804)
* action.py-template-based-refactor

* add unit test

* reserve work

* reserve work

* update getaction data

* reserve work

* reserve work

* fix some issues

* logic fixing and test

* fix scenario test

* template improve

* add back commands py unittest

* fix positional action and dictionary type

* add unit test

* fix test

* try-fix-windows-issue
2021-04-07 13:49:16 +08:00
Qiaoqiao Zhang a630f855c3
fix-single-enum-path-parameter (#809) 2021-04-06 12:49:15 +08:00
changlong-liu 6021d350d0
max&min test (#790)
* max&min test

* test

Co-authored-by: Qiaoqiao Zhang <55688292+qiaozha@users.noreply.github.com>
2021-04-02 10:07:15 +08:00
Qiaoqiao Zhang b48d0de21e
Fix import error too general other issues (#797)
* fix importerror too general and other issues

* remove extension-mode default experimental for target-mode == core

* code fixing

* change import error

* add document and test for extension description customization

* document and message type update
2021-03-25 16:30:53 +08:00
Qiaoqiao Zhang f3591bb2eb
Fix release pipeline issues (#747)
* fix-npm pack issues

* memory limit

* memory limit
2021-03-24 18:15:23 +08:00
Qiaoqiao Zhang 1324dd0f70
fix-parameter-conflict-issue-for-msgraph (#791) 2021-03-19 15:36:33 +08:00
changlong-liu af56f237a1
fix dup import bug (#786) 2021-03-17 18:01:22 +08:00
Qiaoqiao Zhang 48d5a84bfb
Modifier move group issue (#780)
* modifier-move-group-issue

* fix modifier move group issue

* need refer

* fix move group issue

* fix scenario test

* fix-unittest

* fix list id part issue

* Update CliCommands.ts

* disable bad continuation due to pylint conflict

* fix scenario test due to sdk bump
2021-03-16 13:16:44 +08:00
Qiaoqiao Zhang 4b57d1ae9a
fix-action-recognize-error (#775)
* fix-action-recognize-error

* fix scenario tests

* change into serial test as oom in windows
2021-03-10 16:37:38 +08:00
changlong-liu f986d63af2
20210225 ontag cmdlet (#759)
* cmdlet tests and some fixes

* test output

* catch SystemExit for 500

* output

* use ori_commands2.py

* unittest and refactor

* for depth coverage: bug for disabled example test formatting #723

* configurable cmdlet test gen

* default genCmdletTest as false

* clear code, doc, {} as true

* output

* more test and rename

* fix
2021-03-10 10:10:51 +08:00
Qiaoqiao Zhang 368f4fc16f
Fix un usual operation id (#768)
* try-fix-command-split

* fix command split

* fix test

* test

* add support for non _ operationId

* fix-help-bug

* minor doc update

* fix incremental wrong logic

* fix top help bug
2021-03-05 17:25:49 +08:00
Qiaoqiao Zhang 00d5836179
Try fix command split (#767)
* try-fix-command-split

* fix command split

* fix test

* test

* add support for non _ operationId

* Revert "add support for non _ operationId"

This reverts commit 4e43655b85.
2021-03-04 17:59:13 +08:00
Qiaoqiao Zhang c834d30705
Try fix msgrapth (#761)
* try-fix-msgraph

* reserve work

* fix-merger

* fix merger

* add scenario test for msgraph

* fix compute custom construction issue and add test

* Update CliCustom.ts

* add comments for code

* Update merger.ts
2021-03-02 11:32:09 +08:00
Renhe Li 630dfbd6cb
Enable Jest for all AZ tests (#751)
* Init commit

* Update all tests to use jest

* Update all test cases

* Update the autorest version

* add coverage

* remove mocha

* Resolve conflict

Co-authored-by: FAREAST\renhel <renhel@microsoft.com>
Co-authored-by: Qiaoqiao Zhang <55688292+qiaozha@users.noreply.github.com>
Co-authored-by: qiaozha <qiaozha@microsoft.com>
2021-02-25 12:34:14 +08:00
changlong-liu 05501e01bc
20210207 preparer gen (#736)
* for configurable test preparers

decorator

forInstance

fix

gen preparers

multiline fix

refactor

output

multiline

subnet

multiline

minor fix

dictionary output

findresource by className and objectName

test-unique-resource

check delete httpmethod

test-unique-resource

for testResource in swagger

resume multiline

integrate oav

clear oldstyle preparer codes

esLint

work around autorest linux file:/// bug

oav@2.2.0

clean code

support split in scenario

fix

npm test

WIP

test case

test

* remove runLintball

* oav 2.2.0

* debug

* revert temp debug

* debug mac

* check mac os

* initTest in unittest

* format preparers.py

* clean

* refactor

* test-unique-resource doc

* refactor
2021-02-24 16:27:09 +08:00
Qiaoqiao Zhang 6178150352
track2 option in clicore (#754)
* track2 option in clicore

* add test for core track2
2021-02-23 10:14:33 +08:00
Qiaoqiao Zhang dffa20678b
fix-commands-py-stable-mode-issue (#753) 2021-02-22 14:27:16 +08:00
Qiaoqiao Zhang 40dbd79eaa
fix-commands-py-bug (#752) 2021-02-22 12:51:50 +08:00
Qiaoqiao Zhang b13482edd0
fix-cli-flatten-parameter-construct-bug (#749)
* fix-cli-flatten-parameter-construct-bug

* remove debug info

* add test
2021-02-18 16:59:28 +08:00
Qiaoqiao Zhang cb7ee69ae9
fix-npm pack issues (#746) 2021-02-18 11:06:46 +08:00
Qiaoqiao Zhang e1242eeafb
fix package issue (#745)
* fix package issue

* bump version
2021-02-18 09:15:02 +08:00
Qiaoqiao Zhang b82fb88812
fix security issues (#743)
* fix security issues

* update python path

* python cross platform

* memory limit

* fix-msgraph lib bug

* try fix tests

* try fix test

* remove parallel
2021-02-12 16:51:41 +08:00
Qiaoqiao Zhang 4ca6b7fcb7
Add back commands template (#737)
* Add template for commands.py (#728)

* fix-command-rename-bug

* add-template-for-commands.py

* add lintball for python formatting

* common util as lintball

* change converter and add converter test

* reserve work

* commands.py render logic

* generate commands.py and add lintball

* add imports and pylint disables

* fix commands.py test

* change single quote

* fix issues

* add wait command and fix tests

* fix suports_no_wait and azext folder

* fix extension

* bump CI version

* Update ci.yml

* devops python 3.7

* remove eslint as a single task

* fix-command-rename-bug

* add-template-for-commands.py

* add lintball for python formatting

* common util as lintball

* change converter and add converter test

* reserve work

* commands.py render logic

* generate commands.py and add lintball

* add imports and pylint disables

* fix commands.py test

* change single quote

* fix issues

* add wait command and fix tests

* fix suports_no_wait and azext folder

* fix extension

* bump CI version

* Update ci.yml

* devops python 3.7

* remove eslint as a single task

* Revert "fix-command-rename-bug"

This reverts commit 009a751f8a.

* fix comment

* change converter into class member function

* change param name

* remove useless if logic

* change condition to return type

* fix-lintball-windows-issues

* resolve relative path

* resolve relative path

* using python scripts

* remove venv folder

* resolve some conflics

* remove uselese js file

* add python script and other fixes

* git ignore

* move folder

* fix python linter

* test related

* commit changes

* remove unittest for commands template temporarily

* remove poststart

* remove tmpfile

* try fix windows platform issues

* path consistent

* fix-tests

* fix-test

* fix-test-for-windows

* fix tests

* remove extra js file

* fix scenarios

* add pip install requirements when venv_preexists

* Update scenario-test.ts

* add node options for oom

* node options env
2021-02-10 08:23:15 +08:00