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

64 Коммитов

Автор SHA1 Сообщение Дата
Ray Chen 941c5bc685
Fixed high security alerts for sdk-testgen codes (#8473)
* Fixed high security alerts for sdk-testgen codes

* Fix lint error
2024-06-19 10:52:19 +00:00
Chenjie Shi 620272b66d
bump version (#8263) 2024-05-14 09:45:11 +00:00
Chenjie Shi d19a580b74
update dep and resolve typing issue (#8252)
* update dep and resolve typing issue

* update dep and export

* changelog

* update node version

* lint

* update test
2024-05-14 16:18:06 +08:00
Rodge Fu 7a8c5c9376
upgrade rush and pnpm in project ../tools/sdk-testgen (#6693)
* upgrade rush to 5.101

* update to pnpm 7

* update nodejs

* update pnpm lock file

* fix lint rule
2023-08-09 16:34:12 +08:00
Rodge Fu 3f3d96c4fc
Fix the support of generating Example Model of DataFactoryKeyVaultReference type of DataFactoryElement (#6561)
* support keyvaultreference dfe type

* update changelog and version

* fix lint error
2023-08-08 15:09:54 +08:00
Rodge Fu 5cd613dc42
Support DataFactoryElement in sdk_testgen (#6364)
* add support for dfe
* bump sdk_testgen to 2.6.0
2023-06-22 12:09:46 +08:00
Chenjie Shi 5fcd40f306
Upgrade testmodeler (#6341)
* upgrade m4 version

* bump version
2023-06-14 20:08:50 +08:00
Konrad Jamrozik 36991c47d3
Update sdk-testgen vmImage to ubuntu-22.04 (#6013) 2023-04-21 13:47:10 -07:00
changlong-liu 7c10ce5ef4
[testmodeler] fix multi level flatten (#5666)
* fix multi level flatten

* lint

* rush udpate

* Fixed a bug of bodyparameter parsing and added eslint

---------

Co-authored-by: raychen <raychen@microsoft.com>
2023-03-14 07:28:34 +08:00
changlong-liu 0ecf2fe5aa
[testmodeler] upgrade dependencies (#5298)
* Upgrade dependency semver ranges
- @types/node to ^14, since Node 14 is oldest supported version
- pre-release versions to pinned, since breaking changes are allowed at any time
- typescript from ^ to ~, since breaking changes are allowed in minor releases
- oav to 3.2.2, since 3.2.3 has a (likely accidental) breaking change
- All other packages from ~ to ^

* Update changelog and package version

* rush update

* update test

update test

update shrinkwrap

* webpack

* rush update

* Revert "rush update"

This reverts commit 04da27f166.

* Revert "webpack"

This reverts commit 439dbb85c8.

* use oav@3.2.4

* update version and changelog

* Merge main

* Revert "Merge main"

This reverts commit ea277adadd.

* update changelog

---------

Co-authored-by: Mike Harder <mharder@microsoft.com>
2023-02-20 13:17:35 +08:00
changlong-liu 13c6a04329
[testmodeler] All devDependencies after webpack (#5347)
* all devDependencies after webpack

* fixlint
2023-02-07 14:15:31 +08:00
changlong-liu c1ae59d024
[testmodeler] add webpack (#5285)
* webpack

* remove shrinkwrap

* changelog

* trailing new line
2023-02-02 17:12:24 +08:00
Konrad Jamrozik 292b1f8f68
Update `ubuntu-latest` images: set them to Ubuntu 22.04 XOR comment they are `latest` intentionally (#5006)
https://github.com/Azure/azure-sdk-tools/pull/5006
2023-01-10 14:35:06 -08:00
changlong-liu 609fb3aa85
[testmodeler] upgrade codemodel (#4941)
* use @autorest/codemodel@4.19.2

* rush change

* changelog

* v2.4.0

* autorest3.9.3

* revert

* update-tests
2022-12-13 13:54:57 +08:00
changlong-liu 367adebb42
add option --explicit-types to allow customize tagged types in exported code model. (#3976)
* explicti-types

* changelog

* lint

* fix-swaggerpath

* fix

* use operation response schema

* changelog

* publish
2022-08-22 11:43:37 +08:00
Chenjie Shi c0469066dd
Fix example group (#3845)
* fix: reuse m4 operation group to group examples

* build: release @autorest/testmodeler_v2.3.1
2022-08-05 21:20:59 +08:00
changlong-liu 681da8a923
[testmodeler] load apiscenario 1.2 with oav@3.0 (#3613)
* read operationId

* install oav@3.0.3

* add test.md

* remove localcheck

* fix

* changelog

* configurable loader option

* changelog

* lint

* fixcg

* publish

* Revert "publish"

This reverts commit 8f1b13b99a.

* --testmodeler.export-explicit-type

* publish
2022-07-21 15:28:22 +08:00
Chenjie Shi 4d2d5fb100
migrate all gotest code to Azure/autorest.go repo (#3593)
* migrate all gotest code to Azure/autorest.go repo

* fix dep
2022-07-08 17:52:08 +08:00
changlong-liu 8516bbfa5c
[testmodeler] support api key as securityParameters (#3566)
* security parameters

* changelog

* fix

* generateoutput

* regenerate

* regenerate
2022-07-06 14:19:29 +08:00
Chenjie Shi 67b4e8175d
Gotest filename (#3414)
* feat: change go example and test filename

* build: release @autorest/gotest_v4.0.2
2022-06-08 17:31:02 +08:00
Chenjie Shi 10dcae37b9
fix: corner case for polymorphism type (#3391)
* fix: corner case for polymorphism type
When response entity is a polymorphism type, we need to set the field key explicitly. Also when a map value is a polymorphism type, we should use the polymorphism interface for the value type and composite the value with pointer.

* test: add machinelearning rp for polymorphism test
2022-06-02 11:06:58 +08:00
Chenjie Shi 61205cc2b4
Fix go testgen (#3366)
* fix: support go semantic version convention

* build: release @autorest/gotest_v4.0.1

* test: update test readme and test snapshots
2022-05-24 14:10:48 +08:00
Chenjie Shi e5d165f932
doc: how to use gotest (#3203)
* doc: how to use gotest

* doc: refine some words
2022-05-16 15:58:29 +08:00
Chenjie Shi 3fb99104df
Gotestgen update (#3343)
* feat: update to latest core lib and codegen

* fix: default use location

* fix: update LRO usage

* test: update test snapshot

* build: release @autorest/gotest_v4.0.0
2022-05-16 10:33:33 +08:00
Chenjie Shi 94ee172cd2
Fix mock-service-host and go-testgen (#3307)
* fix: infinite loop for pager operation without response check in scenario test

* fix: wrong path/head/query type parser

* feat: use example value instead of placeholder of string value

* feat: user testsuite to do the mock test

* fix: only set object with status when lro finished

* test: update test snapshot

* fix: lint problem
2022-05-11 13:44:03 +08:00
Chenjie Shi d4ac9a8f59
Gotest refine (#3202)
* feat: default not to generate mock test, logic change for ResumeToken option, param naming refine and package upgrade

* test: update test snapshot

* build: release @autorest/gotest_v3.1.2

* fix: lock async version

* fix: lock async version
2022-04-26 10:44:05 +08:00
changlong-liu 28b04448b2
[sdk-testgen] shrinkwrap (#3200)
* use-shrinkwrap

* testmodeler@2.2.5

* lint

* eslint8.14

* update

* revert-to-pnpm

* use npm-shinkwrap

name

files

resume ci.yml format

format

* contribute
2022-04-25 11:43:57 +08:00
changlong-liu bf2d1af3ee
[sdk-testGen] use oav@2.12.1 (#3197)
* oav@2.12.1

* changelog
2022-04-24 11:27:50 +08:00
Chenjie Shi c76f8a4c4f
Fix go testgen (#3158)
* fix: wrong usage for log.Fatalf

* test: update test snapshot

* build: release @autorest/gotest_v3.1.1
2022-04-18 15:48:22 +08:00
Chenjie Shi 89d4c6c771
Go testgen upgrade (#3149)
* feat: upgrade to preview.39 and change list operation name

* test: update test snapshot

* build: release @autorest/gotest_v3.1.0

* test: update snapshot
2022-04-15 14:30:21 +08:00
Chenjie Shi 0ba739bc8d
Fix go generic (#3118)
* fix: upgrade go version tag in templates

* build: release @autorest/gotest_v3.0.1

* test: update snapshot
2022-04-11 18:00:10 +08:00
Chenjie Shi 0355606eab
Generic support for go testgen (#3097)
* feat: simple handle pageable response variable

* feat: update go codegen dep

* feat: support go codegen v38 with go generic

* test: update test snapshot

* build: release @autorest/gotest_v3.0.0

* fix: upgrade lint version and fix lint issue
2022-04-08 13:35:03 +08:00
Chenjie Shi 6a260a697f
fix go testgen problem (#2986)
* fix: lro need to get final response type name

* fix: client subscription param problem

* fix: oav loader cache

* test: update test snapshot

* fix: ci error

* chore: minor adjustment

* build: release @autorest/testmodeler_v2.2.4 @autorest/gotest_v2.2.1
2022-03-29 10:33:53 +08:00
changlong-liu 302ae6a23c
[testmodeler]: compatible with modelerfour4.18.2 (#2957)
* user codemodel 4.18.2

* changelog

* user4.17.2forgo

* gochangelog

* lint
2022-03-23 16:04:39 +08:00
Chenjie Shi db6d7b9213
Sample generation and some fix for gotest (#2920)
* fix: operation has no subscriptionID param but client has, need to handle it seperately

* fix: change from go get to go install to prevent warnning

* feat: consolidate manual-written and auto-generated scenario test code

* feat: update to latest azcore for mock test

* feat: add sample generation

* test: update test snapshot

* build: release @autorest/gotest_v2.2.0
2022-03-18 14:38:16 +08:00
changlong-liu 618e850146
[sdk-testgen] add armTemplatePayloadString in testmodeler (#2908)
* add-armTemplatePayloadString

* lint

* output

* remove outputVariableNames

* version

* --testmodeler.add-armtemplate-payload-string

* lint fix

* revert

* use new testmodeler

* output

* multilined string
2022-03-17 10:10:20 +08:00
Chenjie Shi 670c034e6e
Fix wrong generation for output variable with chain invoke (#2874)
* fix: output variable with chain invoke

* build: release @autorest/gotest_v2.1.4

* chore: update test snapshot
2022-03-07 13:42:50 +08:00
Chenjie Shi 573cc9ba47
change example template for go test (#2851)
* fix: change example response usage

* build: release @autorest/gotest_v2.1.3

* chore: change example comment description

* fix: update test snapshot
2022-03-04 11:29:39 +08:00
Chenjie Shi 1c8c11ad90
chore: use autorest session to print log (#2838)
* chore: use autorest session to print log

* build: release @autorest/testmodeler_v2.2.1 and @autorest/gotest_v2.1.2
2022-03-03 10:47:20 +08:00
Chenjie Shi cfc8df64fe
fix: resource deployment param bug and userAssignedIdentity bug (#2804)
* fix: resource deployment param bug and userAssignedIdentity bug

* chore: update test output for the gotest change

* build: release @autorest/gotest_v2.1.1
2022-02-24 14:24:17 +08:00
Chenjie Shi c4cdcabe80
feat: add scenario output variables' json pointer support to testmodeler and gotest (#2779)
* feat: add scenario output variables' json pointer support to testmodeler and gotest

* test: update integrate test and add rush change files

* chore: fix ts lint error

* refactor: move language specific logic to gotest and seperate union type

* build: release @autorest/gotest_v2.1.0 and @autorest/testmodeler_v2.2.0
2022-02-22 19:07:43 +08:00
Chenjie Shi 4cbca618d2
Add scenario test generation to go testgen (#2576)
* feat: basic structure of scenario test generation

* fix: compatible with any/anyObject codegen change

* feat: upgrade to latest codegen and refine some deprecated function call

* feat: refine scenario test implementation

* fix: lint and template blank

* fix: update test file

* fix: wrong unsealed choice value conversion

* test: update test swagger and all test result

* feat: add recording support for scenario test

* fix: test new line problem for arm script

* build: release @autorest/testmodeler:2.1.0 @autorest/gotest:2.0.0
2022-02-11 17:56:25 +08:00
changlong-liu 6fbd490a72
sdk-testgen: testmodeler: load new api scenario (#2516)
* upgrade to oav@2.10.2
* publish testmodeler&gotest
2022-01-13 10:30:49 +08:00
Chenjie Shi 3b2069d07d
build: release @autorest/testmodeler_v1.1.0 and @autorest/gotest_v1.2.0 (#2537) 2022-01-12 10:40:48 +08:00
Chenjie Shi 7f79ebf62f
Feat and fix for testmodeler and go testgen, test file path change (#2503)
* feat: compatible with latest azcore and azidentity

* fix: any object default value, multiple format of time

* feat: remove decode for query param in example model to be align with swagger example rule

* feat: change mock test handler for path and query param to align with swagger example rule

* fix: refine log for mock test

* fix: array item code generator bug

* chore: add rush change file

* chore: move test swagger file to root folder to decrease file path length

* ci: add path length check to ci
2022-01-08 13:30:07 +08:00
Chenjie Shi 2ee37b3c1f
Refine go testgen (#2488)
* fix: refine polymorphism response check, client param not equal, pager response err judge

* chore: add rush change file and update test snapshot

* fix: generation of null value for object

* chore: update rush change file
2022-01-05 15:06:06 +08:00
Chenjie Shi 1f4559c4ce
Fix mock server corner case (#2487)
* fix: get examples from x-ms-paths part

* fix: when comparing rfc3339 datetime format string, use timestamp value parser to avoid format difference

* fix: nextLink removal in inner object
2022-01-05 15:04:20 +08:00
Chenjie Shi 889fb20f1c
fix: different conversion for choice and sealedchoice (#2472) 2021-12-23 13:47:22 +08:00
Chenjie Shi c9e678c82f
Add response check for go mock test generation (#2467)
* feat: add verify-response flag and refactor config method

* feat: add request check with send-example-id flag

* feat: upgrade dep version

* refactor: config get set

* feat: add response check to mock test generation, do some bug fix and refactor

* chore: add rush change files
2021-12-22 12:25:37 +08:00
changlong-liu 340fece72e
[testmodeler]: find body case insensitively (#2425)
* find body case insensitively

* version 1.0.4

* Revert "version 1.0.4"

This reverts commit dbbee6c79c.

* change log

* insensitive-top-name-only

* fix lint

* correct-changelog
2021-12-13 15:49:50 +08:00