forked from Gitlink/forgeplus
FIX delete some file
This commit is contained in:
parent
e38539445d
commit
f5ffd978ac
|
@ -41,7 +41,7 @@ module LaboratoryHelper
|
|||
my_courses: "https://www.trustie.net/users/#{current_user.try(:login)}/user_courselist",
|
||||
my_projects: "/users/#{current_user.try(:login)}/projects",
|
||||
my_organ: "https://www.trustie.net/users/#{current_user.try(:login)}/user_organizations",
|
||||
default_url: "https://www.trustie.net/",
|
||||
default_url: Rails.application.config_for(:configuration)['platform_url'],
|
||||
tiding_url: "https://www.trustie.net/users/#{current_user.try(:login)}/user_messages",
|
||||
register_url: "https://www.trustie.net/login?login=false"
|
||||
}
|
||||
|
|
|
@ -1,51 +0,0 @@
|
|||
# 新版Git测试说明
|
||||
统一:
|
||||
参考实训:http://47.96.87.25:48080/shixuns/ca9fvobr/repository
|
||||
请求方式:POST
|
||||
参数{repo_path: "educoder/ca9fvobr.git"}
|
||||
公共方法:
|
||||
['add_repository', 'fork_repository', 'delete_repository', 'file_tree', 'update_file',
|
||||
'file_content', 'commits']
|
||||
|
||||
1、仓库目录接口
|
||||
测试方法:模拟1000个用户同时去访问接口,访问方式
|
||||
http://121.199.19.206:9000/api/file_tree
|
||||
参数:
|
||||
{repo_path: "educoder/ca9fvobr.git", path: ''} // 如:{path: 'step1'}
|
||||
|
||||
2、创建版本库
|
||||
访问地址:http://121.199.19.206:9000/api/add_repository
|
||||
参数:
|
||||
{repo_path: 比如:"Hjqreturn/aaass1.git"}
|
||||
|
||||
3、fork版本库
|
||||
http://121.199.19.206:9000/api/fork_repository
|
||||
参数:
|
||||
{repo_path: 'Hjqreturn/aaass1.git', fork_repository_path: 'educoder/ca9fvobr.git'}
|
||||
说明:fork_repository_path是新项目的repo_path, repo_path是源项目的
|
||||
|
||||
|
||||
4、更新文件
|
||||
测试方法:
|
||||
1、更新同一个文件,并发量可以不用很大,可以用同一个用户并发10-100
|
||||
2、更新不同的文件:可以依据创建的版本库去更新
|
||||
访问地址:http://121.199.19.206:9000/api/update_file
|
||||
参数:
|
||||
{repo_path: "educoder/ca9fvobr.git",
|
||||
file_path: 'step1/main.py',
|
||||
message: 'commit by test',
|
||||
content: 'afdjadsjfj1111',
|
||||
author_name: 'guange',
|
||||
author_email: '8863824@gmil.com'}
|
||||
|
||||
5、获取文件内容
|
||||
访问地址:http://121.199.19.206:9000/api/file_content
|
||||
参数:
|
||||
{repo_path: "educoder/ca9fvobr.git", path: 'step1/main.py',}
|
||||
|
||||
6、获取提交记录
|
||||
访问地址:http://121.199.19.206:9000/api/commits
|
||||
参数:
|
||||
{repo_path: 比如:"educoder/ca9fvobr.git"}
|
||||
|
||||
|
|
@ -1,72 +0,0 @@
|
|||
mbtclufr
|
||||
9op3hs4j
|
||||
96ctv7yr
|
||||
rtmzxfke
|
||||
ofqxthrf
|
||||
czu9w4gj
|
||||
9fpzj6et
|
||||
pwhc865b
|
||||
maozpx4l
|
||||
y5wh2ofx
|
||||
b5rzhpf3
|
||||
bs243nrl
|
||||
47fn2yfb
|
||||
kwotfxey
|
||||
w5468sbp
|
||||
fyekprio
|
||||
q6ze5fih
|
||||
b5hjq9zm
|
||||
ky8pbqux
|
||||
53phc7nq
|
||||
b9j2yuix
|
||||
9t3uphwk
|
||||
iokm8ah2
|
||||
qlsy6xb4
|
||||
345bqhfi
|
||||
v728fqia
|
||||
4euftvf2
|
||||
f23sef5m
|
||||
nhqis8m9
|
||||
qp72tb5x
|
||||
gt3anszw
|
||||
tng6heyf
|
||||
nb9keawo
|
||||
elgnbkp9
|
||||
4neslomg
|
||||
lh35s6ma
|
||||
xmc4rpay
|
||||
qrpaxi6b
|
||||
9fla2zry
|
||||
efuibzrm
|
||||
fzp3iu4w
|
||||
pligsyn8
|
||||
glbksr29
|
||||
kfm7ghyc
|
||||
p6hk3svf
|
||||
p539gjhm
|
||||
am5o73er
|
||||
4x3qwrbe
|
||||
fqosyl8g
|
||||
of5z3fci
|
||||
tb7hw62n
|
||||
ie6zxg7r
|
||||
4q2bmy9h
|
||||
fpm3u5yb
|
||||
nikx3ojt
|
||||
vt82s9bq
|
||||
ma59fefo
|
||||
lxa39tfq
|
||||
4gnockxf
|
||||
nxwg84ey
|
||||
fmie8nzb
|
||||
w5nsr24v
|
||||
4hn3efwc
|
||||
h9ljfbq7
|
||||
nuv54t8b
|
||||
2te9fmfq
|
||||
vihnsayz
|
||||
qhlyn82s
|
||||
vw74kmfr
|
||||
vcta36bz
|
||||
henz425l
|
||||
g529v38z
|
Loading…
Reference in New Issue