From f5ffd978ac7ddddf5f26a976cc71ff68ec41aebe Mon Sep 17 00:00:00 2001 From: jasder Date: Thu, 9 Sep 2021 14:35:26 +0800 Subject: [PATCH] FIX delete some file --- app/controllers/concerns/laboratory_helper.rb | 2 +- lib/gitcheck/myshixun_update.txt | 0 lib/gitcheck/myshixun_update_error.txt | 0 lib/gitcheck/readme_test.txt | 51 ------------- lib/gitcheck/shixun_update_error.txt | 72 ------------------- 5 files changed, 1 insertion(+), 124 deletions(-) delete mode 100644 lib/gitcheck/myshixun_update.txt delete mode 100644 lib/gitcheck/myshixun_update_error.txt delete mode 100644 lib/gitcheck/readme_test.txt delete mode 100644 lib/gitcheck/shixun_update_error.txt diff --git a/app/controllers/concerns/laboratory_helper.rb b/app/controllers/concerns/laboratory_helper.rb index b231b848..ea6e0055 100644 --- a/app/controllers/concerns/laboratory_helper.rb +++ b/app/controllers/concerns/laboratory_helper.rb @@ -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" } diff --git a/lib/gitcheck/myshixun_update.txt b/lib/gitcheck/myshixun_update.txt deleted file mode 100644 index e69de29b..00000000 diff --git a/lib/gitcheck/myshixun_update_error.txt b/lib/gitcheck/myshixun_update_error.txt deleted file mode 100644 index e69de29b..00000000 diff --git a/lib/gitcheck/readme_test.txt b/lib/gitcheck/readme_test.txt deleted file mode 100644 index 317af632..00000000 --- a/lib/gitcheck/readme_test.txt +++ /dev/null @@ -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"} - - diff --git a/lib/gitcheck/shixun_update_error.txt b/lib/gitcheck/shixun_update_error.txt deleted file mode 100644 index ef9663c4..00000000 --- a/lib/gitcheck/shixun_update_error.txt +++ /dev/null @@ -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