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

316 Коммитов

Автор SHA1 Сообщение Дата
Scott Beddall (from Dev Box) 7770e771b3 bump oav version, deps, and changelog 2024-06-11 17:22:42 -07:00
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
Mike Harder 10557cd67b
Support all current LTS Node versions (>=18.0.0) (#1032) 2024-06-03 10:21:14 -07:00
wwendyc 9910da6f08
bump node engine version (#1029)
Co-authored-by: Wendy Chang <wendychang@microsoft.com>
2024-05-07 15:19:28 -07:00
wwendyc e24124f20f
re-enable arm-id validation (#1028)
Co-authored-by: Wendy Chang <wendychang@gmail.com>
2024-03-27 12:32:29 -07:00
Jared Stein 377354862e
Migrate to ms-rest-js dependency (#995)
* Migrate to ms-rest-js dependency
* Update to new headers
* update changelog to mention of removal of ms-rest dependency in favor of @azure/ms-rest-js

---------

Co-authored-by: Scott Beddall <scbedd@microsoft.com>
2024-02-23 12:12:49 -08:00
Scott Beddall 186bb06af3
Port `arm`-specific changes into `develop` (#1025)
* bring all the accumulated changes from enable-armid-only branch
* update package version and npm update
* populate payload file
2024-02-20 13:57:17 -08:00
Scott Beddall ceb45d81e7
Resolve Regressions on on behavior of `anyOf` due to updates on `refWithReadOnly` (#1019)
* rename xMsReadOnlyRef to xmsReadonlyRef, resolving the 9 or so regressions caused by #996 and #1004

---------

Co-authored-by: semick-dev <sbeddall@gmail.com>
2023-11-15 11:03:56 -08:00
Zhenhua Hu a0291e3249
[JSON Report] Expose new properties in JSON Report (#1011)
* add code
* update ChangeLog.md

---------

Co-authored-by: Scott Beddall (from Dev Box) <scbedd@microsoft.com>
2023-10-20 16:48:01 -07:00
Zhenhua Hu a37dd2b750
[HTML Report] Fix display issues in Windows OS (#1010)
* add code
* update ChangeLog.md
2023-10-20 15:05:41 -07:00
Scott Beddall 795eda540a
Resolve Erroneous `additionalProperty` error on `refWithReadOnly` (#1004)
* This PR adds to the 'selective ignore' list that is maintained to bypass certain errors that we want to ignore. here's the thing. I really think that the true solution is to fix this in the schema schemaValidator, as it's error on the property we're adding to the schema. Is there such a thing as properties on the schema that are present, but totally ignored for the purposes of validation? Need to investigate. in the meantime, this is what it would look like to just ignore this specific error

* move the test with the others

* apply prettier fixes

* add the necessary package and changelog updates to reflect the PR

---------

Co-authored-by: Scott Beddall (from Dev Box) <scbedd@microsoft.com>
2023-09-29 13:05:10 -07:00
Scott Beddall a16d08d153
update package json (#1001) 2023-09-25 16:49:29 -04:00
Scott Beddall 31a8314064
Re-Enable AdditionalProperties enforcement (#985)
* re-enable additionalProperties enforcement by default. update LiveValidatorOptions to reflect presence of isArmCall which grants access to this skip
* patch one test so that the scenario that we use for validate-v2 image is correct!
2023-07-05 17:05:34 -07:00
Scott Beddall 4b63a1a765
Cut `oav` release (#982)
* add new oav version
* Update ChangeLog.md
2023-06-27 11:08:37 -07:00
Scott Beddall 34ff9ca28c
Revert Overridden Dependencies (#980)
* Revert "Override dependencies on `file-type` and `qs` (#973)"
* npm update. update postmanCollectionGenerator code to align with types.
* fix the prettier issue with swaggerTypes.ts
2023-06-05 16:43:13 -07:00
Scott Beddall 92115cb0ce
Override dependencies on `file-type` and `qs` (#973)
* override transitive dependencies on qs and file-type
* update changelog
* update package version from 3.2.8 to 3.2.9-beta.1
2023-04-17 16:25:26 -07:00
Scott Beddall fc099919d9
Update dependency on `core-http` (#971)
* core-http so that we can get updated version of xml2js
* update changelog, update package.json
2023-04-12 12:56:12 -07:00
xiaoxu qi 984c4f4e83
support round trip validation (#964)
* support round trip validation

* test

* test

* add tests with roundtrip option

* merge ref sibling loader with current jsonloader

* add general validation tests

* update tests

* update test

* update test

* add snapshot

* update test

* test

* fix

* remove refsibling

* update changelog

* bump version

* fix
2023-02-25 10:37:41 +08:00
Jianye Xi 34676f38e4
Improve LRO polling (#922)
* add validation for final state via

* add validation for azure async operation

* fix comment

* add live validation for LRO final get

* fix comments

* fix comment

* add more ARM validation

* update post man rule generation

* improve postman assertion

* fix test

* Azure-AsyncOperation is prior

* fix print detail response log

* fix lint error

* fix baseUri

* update snapshot

* generate examples for LRO final get

* fix lint error

* update change log

* update package lock

---------

Co-authored-by: jianyexi <jianyxi@microsoft.com>
Co-authored-by: Lei Ni <7233663+leni-msft@users.noreply.github.com>
2023-02-23 15:06:17 +08:00
Ray Chen a993efe883
log additionalProperties invalid type error only (#965)
* log additionalProperties invalid type error only

* Delete unused swaggers

* Fixed test

* Bump version

* Updated package version for beta

* Updated param name

* Updated pkg version for release
2023-02-21 10:11:47 +08:00
Tianen 7af1579585
[bugfix] playload uncorrect path (#958)
* stash

* fix bug by using relative path

* add changelog and bump version
2023-02-10 11:02:31 +08:00
Ke Yu a7186f1ba7
Revert node requirement to >=10 (#960)
* revert @apidevtools/swagger-parser

* update change log

* lock @apidevtools/swagger-parser to v10.0.3

* keep node>= 12

* remove change log

* update change log

---------

Co-authored-by: Ke Yu <v-ky@microsoft.com>
2023-02-08 14:53:43 +08:00
Tianxiang Chen 00dbf751ad
Skip createResouceGroup and deleteResourceGroup when pass resourceGroup parameter (#956)
* Skip createResouceGroup and deleteResourceGroup

* update changelog

---------

Co-authored-by: Tianxiang Chen <tianxchen@microsoft.com>
2023-02-06 15:51:00 +08:00
Tianxiang Chen 5c2d7c132a
support scope in static generator (#948)
* support scope

* add test

* add changelog

* fix test

* update changelog

* update changelog

* 3.2.5

---------

Co-authored-by: Tianxiang Chen <tianxchen@microsoft.com>
2023-02-06 10:45:05 +08:00
Ke Yu e816994072
Support node 12 (#952)
* use @apidevtools/swagger-parser instead

* update node version

* update change log

* update v3.2.4 date

* Update ChangeLog.md

---------

Co-authored-by: Ray Chen <raychen@microsoft.com>
2023-01-31 11:02:01 +08:00
Lei Ni 476efaa6e9
Fix empty html report bug (#946)
* rename method

* rename payload file

* fix parseValidationRequest

* add TrafficValidatorTests

* test case

* test case

* revert

* fix test case

* fix empty report

* fix test case

* rename folder

* resolve comments
2023-01-19 17:47:39 +08:00
Tianxiang Chen 5ad77f1e53
add json report in validate-traffic (#941)
* add json report in validate-traffic

* update changelog

Co-authored-by: Tianxiang Chen <tianxchen@microsoft.com>
2023-01-11 16:15:57 +08:00
Ke Yu 122f255d36
Support single generation rule (#921)
* Support single generation rule

* change generateRule to a private property

* update the name of generationRule

* update the name of generationRule

Co-authored-by: Ray Chen <raychen@microsoft.com>
2023-01-11 11:36:49 +08:00
Hiroshi Yoshioka 5246068acc
Typo "resouce"→"resource" (#926)
https://github.com/Azure/oav/blob/develop/ChangeLog.md
#PingMSFTDocs

Co-authored-by: Lei Ni <7233663+leni-msft@users.noreply.github.com>
Co-authored-by: Ray Chen <raychen@microsoft.com>
2023-01-10 21:29:33 +08:00
Lei Ni 3b6381b5a1
Support test-proxy recording externalization (#927)
* support testProxyAssets option

* update snapshot

* update changelog

* bug fix

* fix comment

* fix bug

* support randomSeed option

* use .git as root folder

* use same runId

* update snapshot
2022-12-20 12:11:09 +08:00
Tianxiang Chen eb947e7532
File as scope (#917)
* support multiple scenario files in postmanCollectionGenerator

* file as input

* temporary save

* revert schema

* encapsulate postmanCollectionRunner

* fix baseenv

* fix test

* fix baseenv

* fix comment

* add test

* update change log

* 3.3.0

Co-authored-by: Lei Ni <leni@microsoft.com>
Co-authored-by: Tianxiang Chen <tianxchen@microsoft.com>
2022-12-12 14:00:33 +08:00
Lei Ni 09c16344f0
Fix prefix length (#919)
* set prefix length to 8

* update changelog
2022-12-05 13:43:12 +08:00
Tianxiang Chen 82077f3dd3
support file type in API scenario (#912)
* support file type

* update changelog

* 3.2.4

* fix bug

* fix comment

Co-authored-by: Tianxiang Chen <tianxchen@microsoft.com>
2022-11-28 17:09:15 +08:00
Ray Chen e96760fd6a
Ignore unknown formats in AJV (#910)
* Ignore unknown formats in AJV

* Added testing spec

* Updated test
2022-11-23 17:27:40 +08:00
Lei Ni 4e297241a6
Support polling with operation-location header (#900)
* support data-plane lro polling

* disable roundtrip validator temporarily

* disable rountrip validator tests

* support azurekey auth

* update snapshot

* update changelog

* changelog

* 3.2.2

* support path prefix in parameterized host

* fix bug
2022-11-14 15:30:01 +08:00
Ke Yu 0bc37900d2
Fix bug during reporting real exampleJsonPath (#902)
* Fix bug during reporting real exampleJsonPath

* update if condition

* prettier code

Co-authored-by: Ray Chen <raychen@microsoft.com>
2022-11-11 14:29:41 +08:00
Tianen 217fa08351
fix bug on isUnderFileRoot (#881)
* fix bug on isUnderFileRoot

* fix bug

* fix bug

* Update test/swagger/fileLoaderTest.ts

Co-authored-by: Mike Kistler <mikekistler@microsoft.com>

* fix lint

* add changelog

* Update ChangeLog.md

Co-authored-by: v-tianxi@microsoft.com <v-tian@microsoft.com>
Co-authored-by: Mike Kistler <mikekistler@microsoft.com>
Co-authored-by: Ray Chen <raychen@microsoft.com>
2022-11-10 16:13:39 +08:00
Ke Yu e839be11c6
Add LRO header validation for data-planes swagger (#897)
* Add LRO header validation for data-planes swagger

* add azure-AsyncOperation

* Combine if condition

Co-authored-by: Ray Chen <raychen@microsoft.com>
2022-11-10 15:08:25 +08:00
Ke Yu acc22c7027
Fix P1 issues (#891)
* add title and operationId to example

* generate subscriptionId in guid format

* update snapshot

* get title from x-ms-example first

* update examples

* add rule name to title

* update change log

* update rule suffix of title
2022-11-02 11:46:26 +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
Lei Ni fdc0e17b81
fix content-type (#892)
* fix content-type

* fix query value type

* 3.2.1-beta.2

* update test case

* changelog

* 3.2.1
2022-10-28 13:51:50 +08:00
tianxchen-ms 22a5175ace
add role assignment shortcut (#880)
* add role assignment shortcut

* fix comment

* use env

* change log

* 3.2.1

Co-authored-by: Tianxiang Chen <tianxchen@microsoft.com>
2022-10-19 13:48:58 +08:00
Ke Yu a87a57277a
Retire some features (#860)
* retire validateExamplesInCompositeSpec in validate-example

* retire SpecValidator in validate-spec

* retire autorestPlugin

* retire dependencies

* retire vscode launch config

* revert simple semantic validation

* npm install

* clear unused dependencies

* update version

* update version to v3.2.0

Co-authored-by: Ray Chen <raychen@microsoft.com>
2022-10-11 16:26:32 +08:00
Lei Ni bdaf8e2ef9
Aad auth (#863)
* load authentication

* add appconfig test case

* remove shareScope support

* armEndpoint

* itemGroup for scenario

* prepare & cleanup folder

* fix poller order

* improve lro poller

* implement auth option

* paramiterize armEndpoint

* single script

* fix armEndpoint

* clean lro code

* clean unused dependencies

* fix poller script

* fix host

* add authorization swagger

* improve logging

* check in azure built-in roles

* define roleAssignmentStep

* load roleAssignment step

* collection for scenario file

* fix runCollection

* refactor logging

* add data plane api scenario

* fix log

* update snapshot

* use local variables

* fix testproxy option

* update snapshot

* fix package.json

* changelog

* 3.1.0

* changelog

* Integrate roundtrip into api scenario (#867)

* init

* delete operationMatch

* revert package

* argvs

* init

* delete operationMatch

* revert package

* argvs

* remove skipRoundtripValidation and check isMangementPlane

* update changelog

* update changelog

* update snapshot

* suppress warning log in live validator

* update package-lock.json

* fix schema ref

* fix generated step name

* align with autorest auth options

* fix roundtrip validation

* format handlebars

* Revert "format handlebars"

This reverts commit bdf9b8b290.

* show roundtrip validation results in report

* revert log level

Co-authored-by: xiaoxu qi <xiaoxuqi@microsoft.com>
2022-09-27 15:55:43 +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 56ca2025c1
Fix bug when operation has no own parameters (#855)
* Fix bug when operation has no own parameters

* Use mergedParameters instead
2022-08-22 14:15:01 +08:00
tianxchen-ms 2ac4bc9068
add response assert (#849)
* add response assert

* add response assert

* skip validation

* 3.0.5-beta

* update snapshot

* add mock operation info

* fix html bug

* 3.0.5-beta.1

* update changelog

* 3.0.5

Co-authored-by: Tianxiang Chen <tianxchen@microsoft.com>
2022-08-12 16:03:09 +08:00
Lei Ni ab717d2799
More scopes (#850)
* add support for Subscription and Tenant scope

* update CHANGELOG

* fix bug
2022-08-05 16:19:09 +08:00
Tianen b9c4927a23
[data-plane report] 3th update (#820)
* add utils function

* fix lint

* fix logic

* Update liveValidatorLoader.ts

* change  baselayout template

* update format code

* add resultForRendering big loop

* fix runtimeException bug

* update oav version

* add changelog

Co-authored-by: v-tianxi@microsoft.com <v-tian@microsoft.com>
Co-authored-by: Ray Chen <raychen@microsoft.com>
2022-08-04 17:14:32 +08:00