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

276 Коммитов

Автор SHA1 Сообщение Дата
dependabot[bot] 2ed94305ee
Bump jsonpath-plus from 4.0.0 to 10.0.0 (#1049)
* Bump jsonpath-plus from 4.0.0 to 10.0.0

Bumps [jsonpath-plus](https://github.com/s3u/JSONPath) from 4.0.0 to 10.0.0.
- [Release notes](https://github.com/s3u/JSONPath/releases)
- [Changelog](https://github.com/JSONPath-Plus/JSONPath/blob/main/CHANGES.md)
- [Commits](https://github.com/s3u/JSONPath/commits)

---
updated-dependencies:
- dependency-name: jsonpath-plus
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update changelog

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Mike Harder <mharder@microsoft.com>
2024-10-15 10:22:40 -07:00
Zhenhua Hu 9a2fcc1bf5
Add Passed opeartions to the report (#1044)
* add pass operations to reports

* update package.json, package-lock.json and ChangeLog.md
2024-09-12 17:54:58 -07:00
Scott Beddall d24383eb55
Don't generate examples for `password` with a random string (#1042)
* generate a single known string for password related fields
2024-07-12 17:38:54 -07:00
Scott Beddall a196a110e6
bump oav version, deps, and changelog (#1036) 2024-06-11 17:27:54 -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 cfd51d250a
Remove mockjs from dependencies (#1024)
* remove mockerJS usage mockForPattern
* add a specification which includes a 'pattern' into the examplegenerator test case set
2024-01-29 14:42:21 -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
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 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
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
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 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
dependabot[bot] 386c127b3b
Bump json5 from 1.0.1 to 1.0.2 (#937)
Bumps [json5](https://github.com/json5/json5) from 1.0.1 to 1.0.2.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](https://github.com/json5/json5/compare/v1.0.1...v1.0.2)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

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>
2023-01-11 11:53:06 +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
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
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
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
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
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
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
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
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
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
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
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
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