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

38 Коммитов

Автор SHA1 Сообщение Дата
Scott Beddall 4b59d8e0ff
Remove `additionalProperties` validation suppression (#1027)
* reflect the updates from #1027, but without paying the merge conflict price
* ensure that the response validation is failed as expected
2024-06-17 15:34:05 -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
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 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
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
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
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
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
xiaoxu qi 85fb41394f
Support round trip validation (#847)
* draft: init

* test 01

* update ref

* update attrs

* checker

* update

* update

* update

* remove lazy build

* version 1: ready for tests

* lazy build init

* add test

* update lazy build and test

* update

* fix some comment

* add todos before useing loader

* test for swaggerloader

* use swagger loader

* swagger loader for test

* use traverse swagger

* add comment and use resolveRef as parameter

* remove debug log

* update test and init operationLoader outof while-loop

* use snapshot

* use provider in SwaggerSpec

* update package

* update package from develop

* update package from develop no update

* adopt shouldResolveRef in loader opt

* update test

* update test case

* update properties parser

* update snap

* update snap
2022-08-29 16:03:43 +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
xiaoxu qi a4f99bf82e
Add activity id (#824)
* init

* version update

* version update

* update changelog

Co-authored-by: Ray Chen <raychen@microsoft.com>
2022-07-01 16:02:28 +08:00
xiaoxu qi 384248d42c
Xiaoxu/coverage: add coverage for each swagger file for trafficValidator (#757)
* init

* update operationCoverageResult,operationUndefinedResult, errorMessage and if-else-block

* modify error message
2022-03-02 11:29:44 +08:00
xiaoxu qi fcf57101ba
Fix GC introduced by 2.11.7 (#759)
* init

* test
2022-02-28 14:39:02 +08:00
xiaoxu qi 37fad216e0
de-duplicate swagger path when loading swagger (#753)
* de=duplicate swagger path

* update change log

* update change log

Co-authored-by: Ray Chen <raychen@microsoft.com>
2022-02-16 15:02:24 +08:00
Ray Chen 77e49b7f9d
User/raych1/cli bug fix (#716)
* Fix validation command error

* style fix

* package json fix

* package lock update
2021-12-03 17:30:52 +08:00
Ruoxuan Wang 06f47f51e1
Ruowan/bug fix (#714)
* fix regex issue

* bump version

* revert package-lock

* Update ChangeLog.md

Co-authored-by: Ray Chen <raychen@microsoft.com>
2021-12-02 10:14:57 +08:00
Ruoxuan Wang 37bd15f5fe
Ruowan/bug fix (#713)
* add operationSearchTest

* fix regex

* add changelog
2021-12-01 13:57:51 +08:00
Ray Chen 45f515661e
Support spec traces in liveValidator (#711) 2021-12-01 10:41:12 +08:00
Ruoxuan Wang d1e42e9767
fix url encoding issue (#706)
* fix url encoding issue

* new URL add base host

* fix URL based

* fix unittest

* rename function

* renmae

* update changelog

* update test and remove unused readme

* fix data-plane regex

* update liveValidator
2021-11-23 11:13:34 +08:00
Ray Chen f079ea65c5
Make response headers as optional (#705)
* Make response headers as optional

* adding test payloads

* Ignore LRO header check for livevalidator

* Support suppression on error code
2021-11-18 13:24:05 +08:00
Ray Chen ad2c485d5a
support dataplane traffic validation (#696)
* support dataplane traffic validation

* add operationInfo and extends format

* bump version
2021-11-04 16:20:24 +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
Ruoxuan Wang 2140c9f99d
Fix cg 3 (#675)
* fix cg

* bump version

* reformat

* reformat

* fix no new line
2021-09-28 13:03:28 +08:00
Ray Chen a91895fd04
Live validator update from rpaas feedback (#656)
* Live validator update from rpaas feedback

* Isolate RP when running transform in livevalidator

* Use template msg for livevalidation runtime error
2021-08-25 14:36:17 +08:00
Phoenix He 2e25ef5da2
Refactor Semantic Feature (#649)
* sync

* Add changelog

Co-authored-by: Phoenix He <tih@microsoft.com>
Co-authored-by: raychen <raychen@microsoft.com>
2021-08-12 17:36:27 +08:00
Ray Chen 1234376d48
Ignore LRO header check in case of sync calls (#637)
* Ignore LRO header check in case of sync calls

* Update snapshots and test swagger
2021-07-06 15:39:47 +08:00
Ruoxuan Wang 9fdf0cd30f
Ruowan/dependency (#622)
* add error log when jsonPointer is invalid

* analyze dependency output resourceId definition json path

* remove unused code

* add test fixtures

* fix unittest

* small fix and optimise dependency structure

* add more field for dependencyResult

* export swaggerAnalyzer

* rename resourceType to fullResourceType

* update description

* bump version and update readme

* update package-lock.json

* update package-lock.json

* fix eslint

* fix prettier error

* test step any of to oneof

* bug fix: get armTemplate deployment parameters. add arm deployment
status check

* update changelog
2021-06-01 14:01:44 +08:00
Ray Chen 515b9875d4
Ignore sub level resources validation for missing_resource_id rule (#623)
* Ignore sub level resources validation

* Added test

* Export function parseValidationRequest
2021-05-26 13:26:47 +08:00
Ray Chen 50a0dd5a22
Supports different logging types in livevalidator (#621)
* Supports different logging types in livevalidator

* Remove unnecessary perf logging for one operation.
2021-05-18 10:56:28 +08:00
Ray Chen aa8ead5858
Add more loggings and export types (#615)
* Add more loggings and export types

* fix lint

* Log duration for on demand build validator

* Output err details
2021-05-11 13:41:26 +08:00
Ruoxuan Wang ff64062a5b
Test scenario main (#599)
Support test scenario and test runner
2021-03-24 16:48:10 +08:00
Ray Chen ab8af58add
Update LRO rules for adding allowed response code (#598)
* Update LRO rules for adding allowed response code

* Fix style issue
2021-03-23 17:40:24 +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
Ray Chen 307f062f95
Add new rule of missing_resource_id and isArmCall option. (#579)
* Add new rule of missing_resource_id and isArmCall option.
2021-02-26 13:51:01 +08:00
Phoenix He 150c5e9c7c
Test Scenario Support (#558)
* Support yaml in jsonLoader

* New package
2021-01-18 16:54:38 +08:00
Phoenix He 5f01014b4b
Always transform response code (#549)
* Always transform response code

* Add test
2020-12-22 09:54:34 +08:00
raychen fcc6da5bf9 Ignore body schema validation when schema is not required and body value is empty. 2020-11-25 14:59:48 +08:00
raychen 8815d179d1 Release 2.0.0 version 2020-11-24 11:07:36 +08:00