refactor(接口测试): 增加授权校验

This commit is contained in:
fit2-zhao 2022-11-16 14:45:59 +08:00 committed by fit2-zhao
parent 40696b0f02
commit fefe8ad952
6 changed files with 16 additions and 8 deletions

View File

@ -164,7 +164,7 @@
<dependency>
<groupId>io.metersphere</groupId>
<artifactId>ms-jmeter-core</artifactId>
<version>1.2.1</version>
<version>1.2.2</version>
<exclusions>
<exclusion>
<artifactId>netty</artifactId>

@ -1 +1 @@
Subproject commit 6fd455241b44c9d952979b68922801bb6a0bbe3d
Subproject commit 953dd4a8f838e5f6b3cb7c1ca4590449adcb53a6

View File

@ -81,7 +81,7 @@
<script>
import MsDialogFooter from "@/business/components/common/components/MsDialogFooter";
import {ENV_TYPE} from "@/common/js/constants";
import {getCurrentProjectID, strMapToObj} from "@/common/js/utils";
import {getCurrentProjectID, hasLicense, strMapToObj} from "@/common/js/utils";
import EnvPopover from "@/business/components/api/automation/scenario/EnvPopover";
export default {
@ -134,7 +134,9 @@ export default {
methods: {
open() {
this.runModeVisible = true;
this.query();
if(hasLicense()) {
this.query();
}
this.getResourcePools();
this.getWsProjects();
this.runConfig.environmentType = ENV_TYPE.JSON;

View File

@ -96,7 +96,7 @@
<script>
import {
getCurrentProjectID,
getCurrentUser, getCurrentWorkspaceId,
getCurrentUser, getCurrentWorkspaceId, hasLicense,
listenGoBack, objToStrMap,
removeGoBackListener, strMapToObj
} from "@/common/js/utils";
@ -344,7 +344,9 @@ export default {
this.activeName = 'first';
this.getResourcePools();
this.getWsProjects();
this.query();
if(hasLicense()) {
this.query();
}
this.runConfig.environmentType = ENV_TYPE.JSON;
},
findSchedule() {

View File

@ -153,7 +153,9 @@ export default {
}
this.runModeVisible = true;
this.testType = testType;
this.query();
if(hasLicense()) {
this.query();
}
this.getResourcePools();
this.getWsProjects();
},

View File

@ -314,7 +314,9 @@ export default {
listenGoBack(this.close);
this.activeName = 'first';
this.getResourcePools();
this.query();
if(hasLicense()) {
this.query();
}
this.runConfig.environmentType = ENV_TYPE.JSON;
},
query() {