Skip to content

Commit 642b23a

Browse files
authored
fix: the request method is incorrect via swagger creation (#342)
Co-authored-by: rick <[email protected]>
1 parent b6b7483 commit 642b23a

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

console/atest-ui/src/views/TestSuite.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,7 @@ const apiSpecKinds = [
173173
]
174174
175175
const handleAPISelect = (item: TestCase) => {
176-
if (testCaseForm.method === '') {
177-
testCaseForm.method = item.request.method
178-
}
176+
testCaseForm.method = item.request.method
179177
if (testCaseForm.name === '') {
180178
testCaseForm.name = item.name
181179
}

pkg/server/convert.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ func ToGRPCTestCase(testCase testing.TestCase) (result *TestCase) {
136136
req := &Request{
137137
Api: testCase.Request.API,
138138
Method: testCase.Request.Method,
139-
// Query: mapToPair(testCase.Request.Query),
139+
Query: mapInterToPair(testCase.Request.Query),
140140
Header: mapToPair(testCase.Request.Header),
141141
Form: mapToPair(testCase.Request.Form),
142142
Body: testCase.Request.Body.String(),

0 commit comments

Comments
 (0)