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

37 Коммитов

Автор SHA1 Сообщение Дата
Scott Beddall b3a9b4c2e2
Refactor pipelines - Spring Grove (#1031)
* refactor pipelines to be compatible with 1es templates
* add build-in release phase utilizing ESRP task
2024-06-06 13:42:23 -07:00
Scott Beddall e09eb66d08
regression snapshot update (#1003) 2023-09-25 16:16:05 -07:00
Eddy Ashton 340525eac6
Remove incorrect ASCII conversion (#979)
* Remove incorrect ASCII conversion
* Fix + extend byte format unit tests
* Update snapshots
* Apply snapshot-patch

Co-authored-by: Scott Beddall <45376673+scbedd@users.noreply.github.com>
2023-06-13 10:25:12 -07:00
Scott Beddall 8f9c9bd47d
regression snapshot update (#981) 2023-06-06 10:28:50 -07:00
Jianye Xi cfd1bbbf37
Rule based api test generator (#885)
* add rule based api test generator

Co-authored-by: jianyexi <jianyxi@microsoft.com>
2022-12-23 15:42:32 +08:00
Ke Yu 1874a87daa
Add type validation for additionalProperties (#845)
* update rule for additionalProperties

* update snapshot

* rename label about additional properties with object type

Co-authored-by: Ke Yu <v-ky@microsoft.com>
Co-authored-by: Ray Chen <raychen@microsoft.com>
2022-10-31 11:43:20 +08:00
Matthew Christopher ccdcdfcf3c
ARM ID validation (#851)
* ARM ID validation

* Unit tests

* Restrict arm-id validation to examples and arm tra

* Refactor missing_resource_id rule

Ignore error when response body is empty in example validation;
Add isArmCall flag in semantic validation.

* Updated snapshot of example generation test

Test failed because the location is set as required property in resource model so response body only has location property and doesn't have id property.

* Updated snapshot for example validation test

* Delete examplegen snapshot

* re-add example gen snapshot

* add swagger changes

* add example files used by test

* added examples used by test

* Added all exmaples generated by auto gen

* update index value in model validation

Co-authored-by: raychen <raychen@microsoft.com>
2022-09-21 09:29:24 +08:00
Ke Yu 95f76f2c76
Support api-version validation (#854)
* support api-version validation

* fix modelValidatorTest

* fix example api-version

* update snapshot

* fix build error

* use continue instead of break

* update snapshot

* fill exampleJsonPath and examplePosition

* update snapshot

Co-authored-by: Ray Chen <raychen@microsoft.com>
2022-09-20 17:44:59 +08:00
Ke Yu 501faac110
Fix issues about: multipart/form-data, duration, exampleJsonPath, LRO validation and generate (#812)
* fix bug about multipart/form-data

* support duration format when generating examples

* bump oav version

* multipart form data should only have one file type parameter is required

* Report real exampleJsonPath when additional parameter includes '.'

* update logic about multipart/form-data

* still validate LRO operation when response doesn't have schema

* update exampleGeneratorTests snapshot

* update regression tests snapshot

* change the domain of LRO header

* update snapshot name

* skip error MULTIPLE_BODY_PARAMETERS when consumes includes multipart/form-data

* update test example fileName

Co-authored-by: Ray Chen <raychen@microsoft.com>
2022-06-24 17:15:32 +08:00
KeYu(AnkhSpirit) 85293ed4a9
Fix LRO_RESPONSE_CODE rule (#724)
* update LRO_RESPONSE_CODE validation rule

* update snapshot

* update snapshot

* add test file for model validation

Co-authored-by: Ray Chen <raychen@microsoft.com>
2021-12-23 10:54:51 +08:00
tianxchen-ms 2e9bb2f71b
fix failed to resolve discriminator models in nested definitions (#721)
* fix nested definition resolve descriminator

* add change log

* fix false alarm when inherited model has a discriminator value

* update snapshot

* revert change launch.json

* try fix pipeline false alarm

Co-authored-by: Tianxiang Chen <tianxchen@microsoft.com>
2021-12-17 16:32:55 +08:00
Ray Chen 3329c1669d
Upgrade autorest schema (#701)
* Upgrade autorest schema

* Fix content-type and unknown format issue.

* fix snapshots
2021-11-09 08:43:42 +08:00
KeYu(AnkhSpirit) cf8c7c6c59
fix jsonPathToArray bug and update snapshot (#702)
* fix jsonPathToArray bug and update snapshot

* add change log

* update change log
2021-11-08 15:19:28 +08:00
Ray Chen 9024ac5b59
Fix error conversion issue in MV (#694)
* Fix error conversion issue in MV

* refactor output info in mv/sv commands

* fix snapshot of regression test
2021-10-26 15:45:55 +08:00
Ray Chen 15bc328187
User/raych1/new mv (#680)
* new version of model validation

* package info change

* Update some tests

* clean up some unused code

* support formData parameter

* fix lint issue

* update snapshot

* resolve external swagger error path

* fixed style issue

* fix error in semantic validator test while merging branch 'new-mv' (#691)

* fix snapshots

Co-authored-by: KeYu(AnkhSpirit) <33389195+KeYu-AnkhSpirit@users.noreply.github.com>
2021-10-20 13:42:57 +08:00
Ray Chen 40b6b7fa84
User/raychen/lro (#588)
* Add LRO validation rule

* Added two rules for LRO validation in live validator.

* Exclude error response from LRO validation.
2021-03-16 16:55:13 +08:00
raychen a74c3577da Updated test snapshot of regression test. 2020-11-25 16:17:09 +08:00
raychen 8815d179d1 Release 2.0.0 version 2020-11-24 11:07:36 +08:00
Ray Chen fb06a7fcb0
Update regression test snapshot. (#535) 2020-09-07 15:46:16 +08:00
Renhe Li f12bb2528c
Fix the additional path item problem for error path (#527)
* Fix the additional path item problem for error path

* Update snapshot file

* Support writeonly property

* Apply the change for write_only property

* Update the version of OAV

Co-authored-by: FAREAST\renhel <renhel@microsoft.com>
2020-08-18 16:28:07 +08:00
Ray Chen 6825fd1ca6
Update test snapshot. (#512) 2020-05-26 14:57:05 +08:00
Ligengxin 5a020d1145
check out error code of snap files (#508)
* check out error code of snap files

Co-authored-by: liwenbin <liwenbin@apexsoft.com.cn>
2020-04-24 13:14:30 +08:00
JianyeXi 3ddb780aa9
fix model validation failure when path parameter value containing sep… (#502)
* fix model validation failure when path parameter value containing sepecial charaters

* handle useSchemePrefix property in x-ms-parameterized-host

* update

* handle default useSchemePrefix

* fix snapshot

Co-authored-by: Jianye Xi <jianyxi@microsoft.com>
2020-04-10 17:08:13 +08:00
Ray Chen a2d2f5edbd
Upgrade yasway version. (#500)
* Upgrade yasway version.

Include the regression fix on customvalidator.
2020-03-30 11:01:11 +08:00
Ray Chen 1dcb4322d0
Upgrade yasway to include the fix. (#498)
* Upgrade yasway to include the fix.

The fix on global parameter validation in request.
Added unit test.

* Update regression snapshot.
2020-03-27 19:15:43 +08:00
Ray Chen 1deda4b25d
Enable request parameter suppression. (#493)
* Enable request parameter suppression.

Added suppression as member property in base class;
Request only includes parameter, enable parameter name match suppression.
2020-03-23 14:57:41 +08:00
JianyeXi 0aeec688e1
fix issue caused by host path parameter value with url (#482)
* fix  issue caused by host path parameter value with url

* update test snapshot

* update comment

* update test snapshot

* bump up version

* fix typo

* Workaround azuredevops isssue.

There's an issue with YAML pipeline triggers which doesn't trigger
pipeline when it's not explicitly specified in yaml file.

* fix snapshot

Co-authored-by: Ray Chen <raychen@microsoft.com>
2020-03-16 10:46:08 +08:00
nickzhums d5deab2023 Resource provider and API-version should be case-insensitive for live validation (#461)
* Convert API version to be lowercase during validation and add uunit tests

* Bump oav and yasway version

* Fix tsc formatting issue

* Update outdated unit test

* Update test snapshot

* Update changelog

* Lowercase the query string as well
2019-11-21 15:26:44 +08:00
nickzhums e1e7f7000a
[S1007882] Check if x-ms-mutability property is write-only in the response validation (#459)
* Check if x-ms-mutability property is write-only in the response validation. If so, report an error.
2019-11-04 14:45:27 +08:00
Ray Chen 3e29e1344a
Report exmaple position for request errors (#445)
* Report exmaple position for request errors

Issues#423

* Prevent duplicate loading example file.

* Add some await keyword.

* Fixed unit test.
2019-09-04 13:48:49 +08:00
Amar Zavery 4123d46bee
fix validation for nullable array types and fix a discrepancy in specResolver (#440)
* fix validation for nullable array types and fix a discrepancy in specResolver

* update test snapshot

* apply patch
2019-07-30 15:17:13 -07:00
Renhe Li 8a7bace89e
Update pathInPayLoad for MISSING_REQUIRED_PROPERTIES and OBJECT_ADDITONAL_PROPERTIES (#438)
* Path in payload for MISSING_REQUIRED_PROPERTIES and for OBJECT_ADDITIONAL_PROPERTIES should point to the property.

* Update the handling for JsonPathInPayload

* Put the missing/additional property handling into setPathProperties

* revert the change in LiveValidator.ts

* Modify the snapshot of the test and change the version to 0.18.7

* update the minor version instead of patch version
2019-07-12 11:21:34 +08:00
Ray Chen 6b4c9a849e Added one more rule for response validation in model validation. (#436)
* Added one more rule for reponse validation.

Fail the validation when there's schema defined for response body in spec but the example
response doesn't provide the body in response.

* Fix the exmaples for unit tests.

* Added two more unit tests.

Coverage for the new added rules about body/schema validation in
response.

* Apply snapshot patch.

* Bump package version and update changeLog file.

* Apply snapshot patch.

* Update version number in changeLog.

* Apply snapshots patch again.

* Update per the review comment.

* Update test snapshot.
2019-07-08 16:02:37 -07:00
Eric Williams 317296ba10 Updating regression test snapshots (#429) 2019-06-12 16:11:39 -07:00
Eric Williams d54eaf3cfd
Adding support for JSON path & schema path in errors (#428)
* JSON path support
* Support for schemaPath in errors
2019-06-12 14:19:59 -07:00
Amar Zavery 9b3f0009ec
update cache initialization to Promise.all and update yuml2svg package version and add test for readonly properties (#424)
* update cache initialization to Promise.all and update yuml2svg package version

* nit fix and test artifact update

* Adding tests for validating readOnly properties

* Fix type issue

* Fix type

* Add amar snapshot changes

* address code review feedback

* update changelog and bump min version of yasway to 1.7.3
2019-05-29 15:37:21 -07:00
billytrend 2c03e13db1
Add regression suites for validateExamples (#403) 2019-05-08 11:39:02 -07:00