Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
test_platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Wallen姚文辉
test_platform
Commits
4b5713de
Commit
4b5713de
authored
May 31, 2024
by
Wallen姚文辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
一些微调
parent
c553d9fb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
notoken.py
controller/notoken.py
+2
-0
No files found.
controller/notoken.py
View file @
4b5713de
...
@@ -110,6 +110,7 @@ def relevancycase(id,project,headers):
...
@@ -110,6 +110,7 @@ def relevancycase(id,project,headers):
requests
.
request
(
"post"
,
jiraAddress
+
"/rest/synapse/latest/requirementTestCase/addTestCase"
,
headers
=
headers
,
json
=
{
"currentReqkey"
:
k
,
"testCaseKeys"
:
v
,
"history"
:
"yes"
})
requests
.
request
(
"post"
,
jiraAddress
+
"/rest/synapse/latest/requirementTestCase/addTestCase"
,
headers
=
headers
,
json
=
{
"currentReqkey"
:
k
,
"testCaseKeys"
:
v
,
"history"
:
"yes"
})
def
run
(
id
,
url
,
project
):
def
run
(
id
,
url
,
project
):
id
=
int
(
id
)
headers
=
{
headers
=
{
"Authorization"
:
"Basic "
+
base64
.
b64encode
((
"betty.zww:AAAaaa111"
)
.
encode
(
'utf-8'
))
.
decode
(),
"Authorization"
:
"Basic "
+
base64
.
b64encode
((
"betty.zww:AAAaaa111"
)
.
encode
(
'utf-8'
))
.
decode
(),
"accept"
:
"application/json,text/javascript,*/*;q=0.01"
"accept"
:
"application/json,text/javascript,*/*;q=0.01"
...
@@ -129,5 +130,6 @@ def uploadcase():
...
@@ -129,5 +130,6 @@ def uploadcase():
@
notoken
.
route
(
'/upstatus/<id_>'
,
methods
=
[
"GET"
])
@
notoken
.
route
(
'/upstatus/<id_>'
,
methods
=
[
"GET"
])
def
upstatus
(
id_
):
def
upstatus
(
id_
):
id_
=
int
(
id_
)
global
runinfo
global
runinfo
return
jsonify
({
"code"
:
200
,
"message"
:
"请求成功"
,
"status"
:
runinfo
.
get
(
id_
)}),
200
return
jsonify
({
"code"
:
200
,
"message"
:
"请求成功"
,
"status"
:
runinfo
.
get
(
id_
)}),
200
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment