Ligengxin
51e2e4247b
support validate-traffic <traffic-path> <spec-path> command in OAV cli ( #633 )
...
* support validate-traffic <traffic-path> <spec-path> command
* fix format
* update command describe
* update
* update log type
* format
* update readme
* delete semicolon
* test ci
* check file path before validate
* resolve comment
* resovle comment
* Update
* add missing dependency files
* fix lint
* remove files
* resolve comment
* fix lint
* Bump version and update changelog
* update
Co-authored-by: Ray Chen <raychen@microsoft.com>
2021-07-13 11:36:21 +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
375072f6b9
support extract output from armTemplate deployment ( #634 )
...
* support extract output from armTemplate
* update changelog and bump version
* remove unused log
* fix compitablity issue
* fix compatibility issue.
2021-06-29 13:51:20 +08:00
Ruoxuan Wang
8c9e084268
small fix ( #632 )
2021-06-24 16:33:49 +08:00
Ruoxuan Wang
87d8b0d1df
Ruowan/checklevel ( #628 )
...
* support two checklevel and ignore readonly, secret property compare.
* donot output log when request method is post
* rename to RUNTIME_ERROR
* rename level
* remove unused log
* refine description
* update changelog
* rename check level
2021-06-24 13:27:25 +08:00
Zhenglai Zhang
1371ee8fed
Add test scenario JUnit result output and markdown report refinement ( #629 )
...
* add markdown report support
* fix linting issues
* update generate markdown report flow
* fix snapshot
* improve report format
* fix markdownReportPath as optional
* fix markdownReportPath
* add junit xml output
* fix markdown
* fix package.json formatting
2021-06-23 10:25:56 +08:00
Ruoxuan Wang
a93b956b38
Ruowan/list operations ( #625 )
...
* generate listOperation
* rename rule incorrect provisioning state
* refactor api testing code
* rename error code
* update changelog bump version
* update changelog
* fix relative path bug
* update changelog
* output junit report
* revert package.json
* bump version
* add patch
* revert
* rename rule-name
* fix
* rename generate rule put-delete to resource-put-delete
2021-06-17 11:05:57 +08:00
Zhenglai Zhang
0b6adc1b21
add markdown report support for test scenario runner ( #624 )
...
* add markdown report support
* fix linting issues
* update generate markdown report flow
* fix snapshot
* improve report format
* fix markdownReportPath as optional
2021-06-10 11:35:16 +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
Ruoxuan Wang
ccac9026e0
Ruowan/arm endpoint ( #620 )
...
* support pass armEndpoint and location
* bump version
* test scenario runner support overwrite location, by args
2021-05-14 14:31:02 +08:00
Ruoxuan Wang
caa19ba531
optimise upload blob path and report format ( #610 )
...
* optimise upload blob path
add code severity
support load resource type
output all file to outputFolder
* add timings
* run failure. exitCode = 1
* add dataMasker
* generate minute level runId
* support mask token
* escapeRegExp
* refine comment
* update changelog and bump version
* do not output header
* refine report format
* add testScenarioName field
* small fix
* small fix
* add error message for response diff and update report.
* update report blob path
* optimise postman collection blob file path
* add container report for pipeline
* response diff result to array type
* response diff ignore id, location, datetime
* bump handlebars version
* remove internal link
* add comments and small fix
* update runtime error code to "RUNTIME_ERROR"
* update runtime error code
* update runtime error message
* update changelog
2021-05-12 11:08:52 +08:00
Ray Chen
9bec0f5020
examplegen support multiple operations ( #618 )
...
* Support examplegen for multiple operations
2021-05-11 16:18:43 +08:00
Ruoxuan Wang
9b6155260e
support upload generated file and report to blob ( #608 )
...
* support upload generated file and report to blob
* small fix
* use <ResourceProvider>/<api-version>/<test-scenario-name> for storing
blob result
* move collection name env name to defaultNaming.ts
* bump version and support auto upload generated file
* auto generate readme.test.md
* update changelog
2021-04-21 10:58:11 +08:00
Ruoxuan Wang
191f544087
oav2.3.1 dependency analyze. auto genereate test-scenario. run test scenario ( #607 )
...
* oav2.3.1 dependency analyze. auto genereate test-scenario. run test
scenario
* rename dependencyAnalyzer to swaggerAnalyzer
* output newman json report
2021-04-08 11:27:49 +08:00
Ray Chen
a3176ba721
Update error message of some rules ( #602 )
2021-03-30 16:28:37 +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
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
a022613e39
Fixed mocked value of LRO headers ( #587 )
2021-03-15 10:47:08 +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
Ray Chen
effbc86ed4
Bump version for re-publish. ( #577 )
2021-02-08 11:40:30 +08:00
Phoenix He
e6d445dc0b
Bugfix collect correct err.data in discriminator validation for multi… ( #568 )
...
* Bugfix
* Add test
* Update changelog
2021-01-27 13:22:14 +08:00
JianyeXi
3b8911bd0f
fix undefined reference ( #564 )
...
* fix undefined reference
* bump version
* fix lint
Co-authored-by: jianye xi <jianyxi@microsoft.com>
2021-01-25 10:04:50 +08:00
Phoenix He
d46ff90231
Bugfix should copy required array for allOf transformer ( #563 )
...
* Bugfix should copy required array for allOf transformer
* Bugfix collect correct err.data in discriminator validation
* Add doc
2021-01-21 15:45:00 +08:00
Phoenix He
7d3b53beb1
Bump to 2.2.0 ( #562 )
2021-01-19 10:32:07 +08:00
Phoenix He
150c5e9c7c
Test Scenario Support ( #558 )
...
* Support yaml in jsonLoader
* New package
2021-01-18 16:54:38 +08:00
JianyeXi
33a8222912
Example generation improvement ( #550 )
...
* add example cache
* improve merge array cache algorithm
* fix comments
* fix snapshot
Co-authored-by: jianye xi <jianyxi@microsoft.com>
2021-01-07 10:52:02 +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
0d8fc2952e
Ignore required rule validation in response in case of x-ms-secret.
2020-11-25 10:30:34 +08:00
raychen
8815d179d1
Release 2.0.0 version
2020-11-24 11:07:36 +08:00
Ray Chen
63330796d1
Ignore required rule check in response. ( #543 )
...
Only in case of both required and x-ms-secret:true are annotated.
2020-10-16 09:50:16 +08:00
Renhe Li
8f45598321
Apply the latest change for yasway to treat {} and null for parameter body with the same behavour ( #541 )
...
Co-authored-by: FAREAST\renhel <renhel@microsoft.com>
2020-09-29 13:18:39 +08:00
Ray Chen
424143000c
Ignore invalid yaml object when parse error. ( #539 )
...
* Ignore invalid yaml object when parse error.
* update package.lock
2020-09-16 15:18:52 +08:00
Wenhao Zhang
cd3896e62c
Update function getErrorsFromSemanticValidation to extract inner error correctly ( #530 )
...
* Fix oav bug
* lint fix
* bump version and add changelog
Co-authored-by: t-zhangw <codespace@72c482c53b75>
2020-09-04 10:51:09 +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
Renhe Li
822ab7e7ba
Remove sensitive value is the live validation result of x-ms-secret ( #525 )
...
* Remove sensitive value is the live validation result of x-ms-secret
* Undo unnecessary file
Co-authored-by: FAREAST\renhel <renhel@microsoft.com>
2020-08-17 14:14:02 +08:00
Wenhao Zhang
d7f69d59cf
Export more methods from oav for validation in unified pipeline ( #523 )
...
* Export more methods from oav for validation in unified pipeline
* minor
* add change log and bump version
Co-authored-by: t-zhangw <codespace@72c482c53b75>
2020-08-14 15:56:26 +08:00
Johnson Yang
9365547033
Upgrade yargs version to fix security vulnerability warning ( #521 )
2020-08-13 08:30:32 +08:00
Ray Chen
79cb1cdcca
Take perf fix from yasway. ( #517 )
2020-07-27 09:23:29 +08:00
Renhe Li
d6241a5024
Fix the bug that the value of 'x-ms-secret' should be boolean instead of string ( #514 )
...
Co-authored-by: FAREAST\renhel <renhel@microsoft.com>
2020-07-09 12:59:30 +08:00
Ray Chen
46f761f01a
Fixed nullable value bug ( #511 )
...
* Fixed nullable value bug
Avoid adding nullable value for parameter when its' type isn't string.
2020-05-25 17:30:58 +08:00
Ray Chen
11713918e3
Output the exception information when pretty switch is enabled ( #504 )
...
* Bug #1106292 output exception info
Output the exception information When pretty switch is enabled.
2020-04-20 14:43: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
Renhe Li
a679d0f8c4
Update the version of yasway and add the test case for x-ms-mutiablilty read ( #497 )
...
Co-authored-by: FAREAST\renhel <renhel@microsoft.com>
2020-03-26 15:40:54 +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
1c702e952a
Fix invalid internal reference can not report error ( #489 )
...
* check if all internal reference defined
2020-03-19 20:56:08 +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