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
Ke Yu
6b269336ce
enable codeQL ( #907 )
...
* enable codeQL
* remove duplicates
* remove redundant changes
2022-11-18 16:15:34 +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
Tianxiang Chen
f0e57b150d
support data plane recording ( #896 )
...
* support data plane recording
* update snapshot
* add yaml header
* fix comment
* update snapshot
* add test case
* test encode
* fix comment
* update snapshot
Co-authored-by: Tianxiang Chen <tianxchen@microsoft.com>
2022-11-07 15:54:51 +08:00
Lei Ni
fc981bde10
fix file link ( #894 )
...
* fix file link
* package error-definition.json
2022-11-04 10:34:11 +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
Mike Kistler
2293b0c1a7
Add CONTRIBUTING.md file ( #890 )
2022-10-28 11:28:02 +08:00
Tianxiang Chen
40f5f9c43a
support data plane recording generate ( #889 )
...
* support data plane recording generate
* 3.2.1-beta
* fix comment
* add unit test
* 3.2.1
Co-authored-by: Tianxiang Chen <tianxchen@microsoft.com>
2022-10-27 14:39:35 +08:00
Lei Ni
8b696ccf59
Improve default step naming ( #888 )
...
* improve naming
* update snapshots
2022-10-25 11:11:03 +08:00
xiaoxu qi
c2f67e1431
null property should be ignored ( #886 )
...
* null property should be ignored
* check null value
2022-10-24 11:32:32 +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
xiaoxu qi
fb7313c0c8
Xiaoxu/addinfo ( #879 )
...
* add details
* update snapshot
* use string template
* update snapshot
* update snapshot
2022-10-11 19:06:14 +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
Mike Kistler
1dd0a274f6
JSON-format traffic validation errors before printing ( #876 )
2022-10-10 09:31:30 +08:00
Lei Ni
65852766f8
fix path parameter pattern ( #873 )
2022-09-30 11:00:43 +08:00
tianxchen-ms
f30684dfcb
replace variable in key ( #869 )
...
* replace variable in key
* update message
* add new test case
* update snapshot
* resolve confilct
* fix ci
* update snapshot
Co-authored-by: Tianxiang Chen <tianxchen@microsoft.com>
2022-09-29 14:55:56 +08:00
Lei Ni
3753e153ae
define newman item type ( #872 )
2022-09-28 13:58:59 +08:00
Lei Ni
7696835c3e
fix payload path link ( #871 )
...
* fix payload path link
* fix roundtrip validation
2022-09-27 17:22:43 +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
xiaoxu qi
7742096af8
remove circular ref ( #865 )
...
* remove circular ref
* remove duplicated snapshot
* update snapshot
* add test for circular
* add status code
* fix prettier
* add one rp
Co-authored-by: Ray Chen <raychen@microsoft.com>
2022-09-15 18:05:24 +08:00
tianxchen-ms
85b062aa1f
support example used in multi operations ( #862 )
...
* support example used in multi operations
* improve generate scenario
* update snapshot
* change order
Co-authored-by: Tianxiang Chen <tianxchen@microsoft.com>
2022-09-08 14:13:16 +08:00
Tianen
72800adf47
simulate hash click by jQuery ( #864 )
...
Co-authored-by: v-tianxi@microsoft.com <v-tian@microsoft.com>
2022-09-08 13:47:34 +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
f8e9624c1c
add link ( #859 )
...
Co-authored-by: v-tianxi@microsoft.com <v-tian@microsoft.com>
2022-08-29 12:00:13 +08:00
tianxchen-ms
1193293516
fix response parse error ( #858 )
...
* fix response parse error
* Update lib/apiScenario/newmanReportParser.ts
Co-authored-by: Tianxiang Chen <tianxchen@microsoft.com>
Co-authored-by: Lei Ni <7233663+leni-msft@users.noreply.github.com>
2022-08-24 16:05:21 +08:00
tianxchen-ms
9db4046c0b
use newman summary in memory ( #857 )
...
Co-authored-by: Tianxiang Chen <tianxchen@microsoft.com>
2022-08-23 15:11:06 +08:00
Tianen
9875310b7e
Add markdown to swagger report ( #853 )
...
* add part of task
* add some changes about render full page render
* change position between test-failed and not-tested
* fix comment and change template that can support general normal case
* upper case api
Co-authored-by: v-tianxi@microsoft.com <v-tian@microsoft.com>
Co-authored-by: Ray Chen <raychen@microsoft.com>
2022-08-22 17:34:51 +08:00
tianxchen-ms
6ad309ac79
apiscenario bug fix ( #856 )
...
Co-authored-by: Tianxiang Chen <tianxchen@microsoft.com>
2022-08-22 14:32:48 +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
tianxchen-ms
34c9b84830
improve markdown report ( #846 )
...
* improve markdown report
* update change log
* update markdown report order
* delete correlationId
* update snapshot
Co-authored-by: Tianxiang Chen <tianxchen@microsoft.com>
2022-08-02 15:21:04 +08:00
microsoft-github-policy-service[bot]
b1b4a3f20d
Microsoft mandatory file ( #842 )
...
Co-authored-by: microsoft-github-policy-service[bot] <77245923+microsoft-github-policy-service[bot]@users.noreply.github.com>
2022-08-02 10:36:44 +08:00
Lei Ni
c1996477d6
fix variable patches ( #841 )
...
* fix variable patches
* add test case
* update changelog
* update snapshot
2022-08-02 10:25:32 +08:00
tianxchen-ms
f37550d3cb
fix report path prefix ( #840 )
...
Co-authored-by: Tianxiang Chen <tianxchen@microsoft.com>
2022-07-25 11:43:30 +08:00
tianxchen-ms
1a4e303380
improve api test report ( #839 )
...
* into one html and move markdown and junit report
* rename specPathPrefix
* add operationIds in report.json
* update changelog
* fix crossrp in report and coverage
* rename externalReference
Co-authored-by: Tianxiang Chen <tianxchen@microsoft.com>
2022-07-22 11:02:28 +08:00
Ke Yu
bf07412d3c
Support data validation and generation in byte format ( #834 )
...
* Enable byte format validation and generation
* update snapshot
* update liveValidatorTest snapshot
* update validateExamplesRegression snapshot
* update validation about base64 format
* update snapshot
* Cancel config setting about atob()
Co-authored-by: Ray Chen <raychen@microsoft.com>
2022-07-20 16:59:18 +08:00
dependabot[bot]
1da2a5ef24
Bump moment from 2.29.3 to 2.29.4 ( #838 )
...
Bumps [moment](https://github.com/moment/moment ) from 2.29.3 to 2.29.4.
- [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.3...2.29.4 )
---
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-07-18 13:53:30 +08:00
tianxchen-ms
f706d5667f
api scenario improve and bug fix ( #837 )
...
* fix api scenario int variable generation bug
* fix step variable resolve & delete resource group
* fix html failed count
* add htmlSpecPathPrefix in cmd
* update snapshot and test case
* update snapshot
* update changelog
* 3.0.4
Co-authored-by: Tianxiang Chen <tianxchen@microsoft.com>
2022-07-18 10:51:01 +08:00
tianxchen-ms
bd04e228b4
fix run api test when using scenario file path ( #836 )
...
Co-authored-by: Tianxiang Chen <tianxchen@microsoft.com>
2022-07-12 14:02:34 +08:00