Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[testmodeler] upgrade dependencies #5298

Merged
merged 15 commits into from
Feb 20, 2023
1,405 changes: 140 additions & 1,265 deletions tools/sdk-testgen/common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions tools/sdk-testgen/packages/autorest.testmodeler/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
{
"name": "@autorest/testmodeler",
"entries": [
{
"version": "2.5.0",
"tag": "@autorest/testmodeler_v2.5.0",
"date": "Wed, 1 Feb 2023 20:23:19 GMT",
"comments": {
"patch": [
{
"comment": "Update dependency semver ranges"
}
]
}
},
{
"version": "2.4.0",
"tag": "@autorest/testmodeler_v2.4.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# Change Log - @autorest/testmodeler

This log was last generated on Mon, 12 Dec 2022 06:18:04 GMT and should not be manually modified.
This log was last generated on Wed, 1 Feb 2023 20:23:19 GMT and should not be manually modified.

## 2.5.0
Wed, 1 Feb 2023 20:23:19 GMT

### Patches

- Update dependency semver ranges

## 2.4.0
Mon, 12 Dec 2022 06:18:04 GMT
Expand Down
3,445 changes: 403 additions & 3,042 deletions tools/sdk-testgen/packages/autorest.testmodeler/npm-shrinkwrap.json

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions tools/sdk-testgen/packages/autorest.testmodeler/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@autorest/testmodeler",
"version": "2.4.0",
"version": "2.5.0",
"description": "Autorest extension for testmodeler",
"main": "dist/index.js",
"scripts": {
Expand Down Expand Up @@ -29,33 +29,33 @@
"license": "MIT",
"devDependencies": {
"@types/jest": "^26.0.24",
"@types/node": "10.17.0",
"@types/node": "^14.0.0",
"@typescript-eslint/eslint-plugin": "^5.17.0",
"@typescript-eslint/parser": "^5.17.0",
"cpy-cli": "~4.1.0",
"cpy-cli": "^4.1.0",
"eslint": "^7.25.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-sort-imports-es6-autofix": "^0.6.0",
"eslint-plugin-sort-imports-es6-autofix": "0.6.0",
"jest": "^26.6.3",
"prettier": "^2.2.1",
"ts-jest": "^26.5.5",
"typescript": "^4.2.4"
"typescript": "~4.2.4"
},
"dependencies": {
"@autorest/codemodel": "^4.19.2",
"@autorest/extension-base": "^3.5.0",
"@azure-tools/codegen": "^2.9.1",
"@types/lodash": "~4.14.176",
"@types/lodash": "^4.14.176",
"autorest": "^3.2.3",
"cross-env": "^7.0.3",
"jest-junit": "^12.2.0",
"js-yaml": "~4.0.0",
"js-yaml": "^4.0.0",
"jsonpath": "^1.1.1",
"lodash": "~4.17.21",
"lodash": "^4.17.21",
"node-yaml": "^3.2.0",
"oav": "3.0.3",
"reflect-metadata": "~0.1.13",
"oav": "3.2.4",
"reflect-metadata": "0.1.13",
"yuml2svg": "^5.0.1"
},
"files": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -613,8 +613,9 @@ export class TestCodeModeler {
for (const testResource of this.testConfig.getValue(Config.testResources)) {
const testFile = typeof testResource === 'string' ? testResource : testResource[Config.test];
try {
const loader = ApiScenarioLoader.create(this.createApiScenarioLoaderOption(fileRoot));
const testDef = (await loader.load(testFile)) as TestDefinitionModel;
const opts = this.createApiScenarioLoaderOption(fileRoot);
const loader = ApiScenarioLoader.create(opts);
const testDef = (await loader.load(testFile, opts.swaggerFilePaths)) as TestDefinitionModel;
this.initiateTestDefinition(session, testDef, codemodelRestCallOnly);
this.codeModel.testModel.scenarioTests.push(testDef);
} catch (error) {
Expand All @@ -637,9 +638,10 @@ export class TestCodeModeler {
}
let scenarioPathName = path.join(apiFolder, scenariosFolder, scenarioFile);
try {
const loader = ApiScenarioLoader.create(this.createApiScenarioLoaderOption(fileRoot));
const opts = this.createApiScenarioLoaderOption(fileRoot);
const loader = ApiScenarioLoader.create(opts);
scenarioPathName = scenarioPathName.split('\\').join('/');
const testDef = (await loader.load(scenarioPathName)) as TestDefinitionModel;
const testDef = (await loader.load(scenarioPathName, opts.swaggerFilePaths)) as TestDefinitionModel;

this.initiateTestDefinition(session, testDef, codemodelRestCallOnly);
this.codeModel.testModel.scenarioTests.push(testDef);
Expand Down
Loading