tianxchen-ms
6f243d4ed4
add readme.test.md ( #835 )
...
* add readme.test.md
* move html report path
* update snapshot
Co-authored-by: Tianxiang Chen <tianxchen@microsoft.com>
2022-07-12 10:26:56 +08:00
Lei Ni
0e0d49c5b6
Generate example ( #833 )
...
* generateExample
* fix
* use translator
* scenario
* rename
* run
* test
* _swaggerFilePaths
* generateExample
* fix bug
* changelog
* 3.0.3
* fix bug
2022-07-06 12:02:03 +08:00
tianxchen-ms
c6e95c45fe
add report test ( #832 )
...
* add report test
* fix snapshot
Co-authored-by: Tianxiang Chen <tianxchen@microsoft.com>
2022-07-05 14:25:32 +08:00
tianxchen-ms
77f47e2607
convert runtime error to live validation issue ( #831 )
...
Co-authored-by: Tianxiang Chen <tianxchen@microsoft.com>
2022-07-04 14:39:33 +08:00
Lei Ni
c8a450e662
Save payload ( #827 )
...
* generate examples
* clean code
* fix operationsList generator
* savePayload
* add payload in html report
Co-authored-by: Tianxiang Chen <tianxchen@microsoft.com>
2022-07-01 20:19:29 +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
Tianen
31c9a69fce
Migrate oav traffic converter ( #830 )
...
* add traffic-converter
* add changelog and update readme
* fix comment
Co-authored-by: v-tianxi@microsoft.com <v-tian@microsoft.com>
Co-authored-by: Ray Chen <raychen@microsoft.com>
2022-06-30 17:42:41 +08:00
tianxchen-ms
9c5b3f6818
fix template location replace bug ( #829 )
...
Co-authored-by: Tianxiang Chen <tianxchen@microsoft.com>
2022-06-30 14:40:23 +08:00
tianxchen-ms
9012f49c81
fix mustache file not packed ( #828 )
...
Co-authored-by: Tianxiang Chen <tianxchen@microsoft.com>
2022-06-29 17:41:29 +08:00
tianxchen-ms
db9658238c
fix html report template path ( #826 )
...
Co-authored-by: Tianxiang Chen <tianxchen@microsoft.com>
2022-06-29 16:55:55 +08:00
tianxchen-ms
c32c578f15
generate html report ( #825 )
...
* generate html report
* add service name
Co-authored-by: Tianxiang Chen <tianxchen@microsoft.com>
2022-06-29 15:33:59 +08:00
tianxchen-ms
e72bf7d20d
fix example file path ( #823 )
...
Co-authored-by: Tianxiang Chen <tianxchen@microsoft.com>
2022-06-27 15:02:14 +08:00
tianxchen-ms
f12348e221
uncheck under file root ( #822 )
...
Co-authored-by: Tianxiang Chen <tianxchen@microsoft.com>
2022-06-27 11:39:24 +08:00
tianxchen-ms
6e2f6b8335
fix spec path ( #821 )
...
* fix spec path
* add fileroot
* fix fileroot
Co-authored-by: Tianxiang Chen <tianxchen@microsoft.com>
2022-06-27 10:27:10 +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
Lei Ni
3840542759
fix vlaue.replace is not function ( #819 )
2022-06-23 17:17:55 +08:00
Lei Ni
01c87c9123
change default output folder ( #818 )
...
* change default output folder
* ignore .apitest
2022-06-22 16:14:13 +08:00
tianxchen-ms
1134311b05
add example base apiscenario generator ( #817 )
...
* add test case
* add example based generation
* substring limit 10
* update snapshot
Co-authored-by: Tianxiang Chen <tianxchen@microsoft.com>
2022-06-20 10:21:10 +08:00
Lei Ni
100b655547
Support devMode for cadl local dev/test ( #814 )
...
* fix --specs param
* add support for devMode
* generate example from postman recording
* update log
* use lodash to get json pointer value
* unused
* workaround skipping lro poll in devMode
* absolute path in generated collection
* fix schema validation
* update snapshot
* fix example generation
* update variable regex
* revert option for devMode
* fix typo
* hotfix apiscenario generation
* 3.0.0-beta.5
* fix example step
* add test case
* fix templateGenerator
* update CHANGELOG
* Revert "3.0.0-beta.5"
This reverts commit 43e1637eae
.
Co-authored-by: Tianxiang Chen <tianxchen@microsoft.com>
2022-06-17 15:45:16 +08:00
tianxchen-ms
29abf8249e
generate api scenario from recording ( #804 )
...
* generate api scenario from recording
* add test
* update index
* replace location
* replace variables and use parameter
* add arm folder
* fix variablize bug
* rename
* fix test
* update snapshot
* fix test
* delete unused test file
* update changelog and remove test file
Co-authored-by: Tianxiang Chen <tianxchen@microsoft.com>
2022-06-15 11:49:41 +08:00
tianxchen-ms
78749305ba
Apiscenario ( #747 )
...
* change types
* commit
* fix loader
* fix variableEnv
* apiVersion
* add arm deployment script arguments
* fix
* fix compile error
* add setBatchEnv
* fix error
* fix error
* generate api scenario from swagger
* success run basic generated api scenario
* fix bugs
* fix deps
* request and response validate (#760 )
* request and response validate
* fix markdown format and remove code
* remove unused code
Co-authored-by: Tianxiang Chen <tianxchen@microsoft.com>
* use pre-request script for auth
* set environment variables
* use location variable
* default step name
* fix
* use mocker to generate api scenario
* fix step name
* fix bug
* Fit example based scenario to new syntax (#763 )
* Fit example based scenario to new syntax
* update snapshot
Co-authored-by: Tianxiang Chen <tianxchen@microsoft.com>
* add readme params
* [ApiScenario] support readme (#768 )
* support readme
* add generate log
* use 3.0 autorest
* update schema
Co-authored-by: Tianxiang Chen <tianxchen@microsoft.com>
* fix schemaType
* fix requestUpdate and exampleResponseDiff (#775 )
* fix requestUpdate and exampleResponseDiff
* fix response diff
* fix example diff
Co-authored-by: Tianxiang Chen <tianxchen@microsoft.com>
* 2.12.0-beta.0
* fix copyfiles
* 2.12.0-beta.1
* fix package.json
* 2.12.0-beta.2
* fix autorest version
* 2.12.0-beta.3
* remove autorest (#780 )
Co-authored-by: Tianxiang Chen <tianxchen@microsoft.com>
* 2.12.0-beta.4
* armtemplate variable convention (#781 )
Co-authored-by: Tianxiang Chen <tianxchen@microsoft.com>
* 3.0.0-beta.0
* test proxy recording loader
* util
* regex
* _testLoad
* Support remote uri (#784 )
* remote cdn scenario
* fix local
* 3.0.0-beta.1
* fix analyze-report
* fix bug
* fix bug
* response assertion
* load readmeTag
* load readme tag
* load cross-rp swagger
* use cross-RP operation
* 3.0.0-beta.2
* test proxy recording
* fix example based template generate (#795 )
* fix example based template generate
* fix commit
Co-authored-by: Tianxiang Chen <tianxchen@microsoft.com>
* start/stop testProxy
* polling through test proxy
* 3.0.0-beta.3
* add test for apiScenarioLoader (coverage: 79%) (#758 )
* add test for apiScenarioLoader (coverage: 56%)
* add test for apiScenarioLoader (coverage: 79%)
* Apiscenario test (#800 )
* remove log
* refactor pathEnv
* rename requestParameters & responseExpected
* add ApiScenarioLoader test
* test load from uri
* test load Spring.yaml
* skip test from uri
* test load appplatform basic.yaml
* load compute scenario
* remove compute/network/appplatform test
* postmanCollectionGenerator test (#801 )
* fix eslint
* Apiscenario test (#803 )
* ouput uncovered operations in verbose
* testProxy test case
* refactor
* update snaptshot
* tiny change
* use clientRequest
* fix loader test
* Apiscenario test (#806 )
* add more scenario and generate base snapshot
* fix arm url
* remove uploadBlob option
* updateSnapshot
* fix bug
* prefix x_
* improve pseudo random
* fix variable scope
* Refactor runner client (#807 )
* refactor postmanCollectionRunnerClient
* fix bug & update snapshot
* Remove shareScope (#808 )
* fix bug
* remove shareScope
* support variable prefix (#809 )
* Revert "remove shareScope"
This reverts commit 1ad06dd59a
.
* fix variable scopes
* skipCleanUp if scopes are shared
* 3.0.0-beta.4
* skip test generate example
* remove obsolete snapshot
* fix comments
* fix fileLoader
* revert exampleGenerator specs
* add comment
* 3.0.0
* fix bug of fileLoader preloadCache
* fix fileRoot in run-api-scenario
* fix package-lock not in sync & fix eslint
* fix npm scripts & update CHANGELOG
Co-authored-by: Lei Ni <leni@microsoft.com>
Co-authored-by: Tianxiang Chen <tianxchen@microsoft.com>
Co-authored-by: Lei Ni <7233663+leni-msft@users.noreply.github.com>
Co-authored-by: Ke Yu <33389195+keryul@users.noreply.github.com>
2022-06-10 15:01:39 +08:00
Ray Chen
967a29d767
Support arm-id format ( #802 )
...
* Support arm-id format
* Added test
* Remove .only from test
2022-05-27 17:51:02 +08:00
Tianen
4abf2dfe26
Generate swagger report 2 ( #797 )
...
* first chagne
* finish
* revert launch.json
* change testFailed table width
* fix error and add args exception
* add js to hidden run time exception
* change login to render runtime exception
* fix comment to resolve cmd alias
Co-authored-by: Ray Chen <raychen@microsoft.com>
2022-05-23 17:26:14 +08:00
kevinmichaelbowersox
a26ae9cc73
Fixes issues in the formatting of the README.md file ( #796 )
...
* Update README.md
Fixing the formatting in the readme file so that bullets do not display in a textarea which makes content hard to read with scrollbar. Removed references to issues that seemed unrelated to the "issues detected".
* Update README.md
Fixed formatting on bullets
Co-authored-by: Ray Chen <raychen@microsoft.com>
2022-05-23 13:59:24 +08:00
Ke Yu
dff4f111c4
Get real schema and data while error's schema has allOf property ( #798 )
2022-05-16 17:31:46 +08:00
Ke Yu
48a1a72ec3
Fix bug about copyfiles command during build ( #782 )
...
* Fix bug about copyfiles command
* bump version and add change log
* lock async version to 3.2.3 in istanbul
2022-04-20 17:51:58 +08:00
Ke Yu
e76784bb28
Fix CG ( #779 )
...
* Bump json-pointer from 0.6.1 to 0.6.2
* Get rid of z-schema dependency
* Bump async from 3.2.0 to 3.2.3
* Bump ansi-regex to 5.0.1
* Bump md5-file from 4.0.0 to 5.0.0
* fix error about md5-file
* Bump validator to 13.7.0
* Bump json-schema from 0.2.3 to 0.4.0
* fix error about swagger-parser
Co-authored-by: Ray Chen <raychen@microsoft.com>
2022-04-18 17:52:58 +08:00
Ke Yu
3eec33d4ac
fix bug about query parameter validation ( #767 )
...
* Ignore INVALID_TYPE validation in case of query parameter in string format
* update revalidate logic
* align change log version
* put all the revalidate logic to function ReValidateIfNeed()
* set timeout to single test
* update revalidate logic
* update revalidate logic and test files
* clean old codes
2022-04-18 17:19:14 +08:00
dependabot[bot]
b2c2aaad43
Bump moment from 2.29.1 to 2.29.2 ( #778 )
...
Bumps [moment](https://github.com/moment/moment ) from 2.29.1 to 2.29.2.
- [Release notes](https://github.com/moment/moment/releases )
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md )
- [Commits](https://github.com/moment/moment/compare/2.29.1...2.29.2 )
---
updated-dependencies:
- dependency-name: moment
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-11 09:57:58 +08:00
Ray Chen
376b27a93b
Support traffic validation report generation ( #769 )
...
* Add report for traffic validation
* Update swagger accuracy report
* Add rendering data in report
* Add link and friendly name of error
* Generate Swagger Accuracy Report (#770 )
* change baselayout template
* Fixed snapshot test failure
Co-authored-by: Tianen <347142915@qq.com>
2022-04-07 15:42:08 +08:00
dependabot[bot]
fb3e5fa2ae
Bump minimist from 1.2.5 to 1.2.6 ( #766 )
...
Bumps [minimist](https://github.com/substack/minimist ) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases )
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6 )
---
updated-dependencies:
- dependency-name: minimist
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ray Chen <raychen@microsoft.com>
2022-04-07 14:39:57 +08:00
Ke Yu
0c2683fe44
Fix bug about error path ( #776 )
...
* add condition for newPathArr
* add test and change log
* upgrade package version
* add comments for newPathArr
* update comment and assert on the error path
Co-authored-by: Ray Chen <raychen@microsoft.com>
2022-04-07 14:17:19 +08:00
Alexander Batishchev
2918f02fd5
Fixed regex for management group in armUrlParser.ts ( #774 )
...
* Fixed regex for management group in armUrlParser.ts
* Update armUrlParser.ts
* Update lib/apiScenario/armUrlParser.ts
Co-authored-by: Lei Ni <7233663+leni-msft@users.noreply.github.com>
Co-authored-by: Ray Chen <raychen@microsoft.com>
2022-04-07 08:52:31 +08:00
Alexander Batishchev
fb38b9b417
Added NPM package version ( #773 )
2022-04-07 08:35:22 +08:00
Ray Chen
f4f361bbac
Create error-definitions.json ( #771 )
...
error contains code, friendlyName, and link to github document.
2022-04-02 10:04:57 +08:00
tianxchen-ms
12b188e47e
fix readonly bug in example diff ( #761 )
...
Co-authored-by: Tianxiang Chen <tianxchen@microsoft.com>
2022-03-11 10:59:12 +08:00
Ke Yu
d022e558a1
Clarify the error message of NOT_PASSED ( #762 )
...
* Clarify the error message of NOT_PASSED
* add change log
* add assert on the error location
2022-03-10 17:37:07 +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
KeYu(AnkhSpirit)
4655cd8341
Upgrade version to 2.11.7 ( #755 )
2022-02-22 08:42:06 +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
KeYu(AnkhSpirit)
f202b99c57
fix bug about date-time validation ( #752 )
...
* fix bug about date-time validation
* test if the bug is fixed
* add test property and bump version
* update test property
Co-authored-by: Ray Chen <raychen@microsoft.com>
2022-02-16 14:02:36 +08:00
dependabot[bot]
ea9af65d9b
Bump follow-redirects from 1.14.7 to 1.14.8 ( #751 )
...
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects ) from 1.14.7 to 1.14.8.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases )
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.14.7...v1.14.8 )
---
updated-dependencies:
- dependency-name: follow-redirects
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ray Chen <raychen@microsoft.com>
2022-02-15 16:31:38 +08:00
dependabot[bot]
9c9650c09b
Bump simple-get from 3.1.0 to 3.1.1 ( #750 )
...
Bumps [simple-get](https://github.com/feross/simple-get ) from 3.1.0 to 3.1.1.
- [Release notes](https://github.com/feross/simple-get/releases )
- [Commits](https://github.com/feross/simple-get/compare/v3.1.0...v3.1.1 )
---
updated-dependencies:
- dependency-name: simple-get
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-15 16:17:53 +08:00
Ruoxuan Wang
615df5b0d6
Upgrade newman ( #749 )
...
* upgrade newman package
* bump version and update changelog
* apply snapshot patch
Co-authored-by: Ray Chen <raychen@microsoft.com>
2022-02-14 14:25:27 +08:00
Samer Alameer
76d2ec1eab
Re-arranging the readme file propsa ( #748 )
...
The top of the readme should usually contain information about how to install the tool. I would suggest pushing down the "Run test" to the bottom after the users are able to install the tool and understand how to use it first
Thanks
2022-02-14 13:21:03 +08:00
dependabot[bot]
6cde32133e
Bump follow-redirects from 1.14.1 to 1.14.7 ( #746 )
...
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects ) from 1.14.1 to 1.14.7.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases )
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.14.1...v1.14.7 )
---
updated-dependencies:
- dependency-name: follow-redirects
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ray Chen <raychen@microsoft.com>
2022-01-27 11:02:26 +08:00
dependabot[bot]
bab3d5361d
Bump node-fetch from 2.6.1 to 2.6.7 ( #745 )
...
Bumps [node-fetch](https://github.com/node-fetch/node-fetch ) from 2.6.1 to 2.6.7.
- [Release notes](https://github.com/node-fetch/node-fetch/releases )
- [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.1...v2.6.7 )
---
updated-dependencies:
- dependency-name: node-fetch
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-27 10:55:31 +08:00
KeYu(AnkhSpirit)
eb0d22d652
loosen date-time validation ( #744 )
...
* loosen date-time validation
* recode, fix test error, update snapshot
* update numberOfSpecs
2022-01-26 11:34:07 +08:00
KeYu(AnkhSpirit)
7ad54bc872
Fix false alarm for NOT_PASSED about multipleOf ( #743 )
...
* Fix false alarm for NOT_PASSED about multipleOf
* add test and update change log
* update test payload
* bump version to 2.11.5
* reduce the size of the payload file
* update validation logic
2022-01-24 15:53:52 +08:00