Subject | Hash | Author | Date (UTC) |
---|---|---|---|
Improved testing; add a fetch over git for a private repo | 8241de314aff22da494bbd0ed5b1ee2017674c6f | Catalin(ux) M. BOIE | 2017-02-24 21:52:02 |
Change caps for some error message; no code changes. | aab9ce336362beda61a4470cbd63ccc06778eeb1 | Catalin(ux) M. BOIE | 2017-02-24 21:48:13 |
Some clients, for exampple JGit sends the request gzipped. Deal with it. Thanks Gabi for the report! | ea9023af24a172724ec22313c8c0c15cc88f90df | Catalin(ux) M. BOIE | 2017-02-24 19:47:29 |
Switch to quotes to be able to use commas; small corrections | ab27969287d666d0fb526f7b24b04f65ab7d54f7 | Catalin(ux) M. BOIE | 2017-02-14 18:28:13 |
Added more info to comparison and added baloons (Stig suggestion) | 07c13312204980b85229acf7f0ab1e3a66aa6677 | Catalin(ux) M. BOIE | 2017-02-13 18:31:41 |
Comparison updated based on Stig's help! Thanks! | d45c87235c003153b0579d9d875b62a0f6e0f209 | Catalin(ux) M. BOIE | 2017-02-13 17:54:00 |
Corrected a ORDER before WHERE affecting the listing of the users in admin section | ee889bb3e9fb175af625cc5dab26c079fe6a6108 | Catalin(ux) M. BOIE | 2017-01-31 18:08:47 |
Bump version to v0.65 | 23209e409cae8a83b33b53b3cb3109a63be7bd8c | Catalin(ux) M. BOIE | 2017-01-30 18:52:26 |
Updates SELinux policy file | fa9d4acd0c6ee730ee45c3e3ab57b55665e74666 | Catalin(ux) M. BOIE | 2017-01-30 18:51:52 |
Added credits for TLS setup about perfect forward secrecy | 63ff4cf11961421d6f187d2597354d12eff9a810 | Catalin(ux) M. BOIE | 2017-01-30 18:51:31 |
Make more clear the text about Enterprise Edition | 20a621f3de637975d93cbb260213c2d833a0acab | Catalin(ux) M. BOIE | 2017-01-30 18:50:50 |
TODO updates | 29e7ddcea2ed6add27a13dfef09c8660d4b3520e | Catalin(ux) M. BOIE | 2017-01-30 18:49:28 |
Use IdentitiesOnly when setup SSH config for RocketGit | fbd5d71c0341f9187cfd677d2d620749d09c61d6 | Catalin(ux) M. BOIE | 2017-01-30 18:49:10 |
Fixed push by HTTP; fixing some tests | af00ea421d6eec2877cab0c37f9c492fff3860ec | Catalin(ux) M. BOIE | 2017-01-30 18:48:19 |
If user is suspended or deleted, show an error | c308a9b435c9e5baa39ac3529c794df227ab9196 | Catalin(ux) M. BOIE | 2017-01-06 07:12:32 |
Allow users to delete their account | 2a2338aca850737f16febc056c1d248daf935736 | Catalin(ux) M. BOIE | 2016-12-30 12:49:48 |
Improved TLS cyphers list for better security | 00f1ad9bffc47d0cd786e6caa6f9777fae27b2ff | Catalin(ux) M. BOIE | 2016-12-30 12:47:54 |
Corrected the api key mail | 3ac431ae8e880ceebc18507383771b23ce5d9b6a | Catalin(ux) M. BOIE | 2016-12-08 04:20:30 |
Big Amazon fixes | f185636cf44652a2da9779ab21979807b91cf48f | Catalin(ux) M. BOIE | 2016-12-07 20:38:54 |
Typos, some additions for hints, TODO | a0b3ff70ddcdfa28770b6467b03332b70cf38067 | Catalin(ux) M. BOIE | 2016-12-07 20:37:47 |
File | Lines added | Lines deleted |
---|---|---|
tests/Makefile | 1 | 1 |
tests/_run_tests.sh | 6 | 0 |
tests/by_http.php | 13 | 0 |
tests/http.inc.php | 8 | 3 |
tests/http_admin.php | 5 | 0 |
File tests/Makefile changed (mode: 100644) (index 6dfa24a..7271462) | |||
... | ... | clean: | |
14 | 14 | http.arond *.pub git2key git2 *.in q_merge_requests/mr-* \ | http.arond *.pub git2key git2 *.in q_merge_requests/mr-* \ |
15 | 15 | qstats/* repos/* helper helper.pub keys/* ca *.pid \ | qstats/* repos/* helper helper.pub keys/* ca *.pid \ |
16 | 16 | _pr_anon.git *.tmp base ubase wh_cloud.git export.json \ | _pr_anon.git *.tmp base ubase wh_cloud.git export.json \ |
17 | .by_http | ||
17 | .by_http state/* |
File tests/_run_tests.sh changed (mode: 100755) (index bcc30d9..0f417b0) | |||
... | ... | tests="by_http wh_lambda http_keys http_forgot \ | |
10 | 10 | failed="" | failed="" |
11 | 11 | add="" | add="" |
12 | 12 | for t in ${tests}; do | for t in ${tests}; do |
13 | if [ -r "state/${t}" ]; then | ||
14 | continue | ||
15 | fi | ||
16 | |||
13 | 17 | echo | echo |
14 | 18 | echo "${t}: Running..." | echo "${t}: Running..." |
15 | 19 | if [ -r "${t}.sh" ]; then | if [ -r "${t}.sh" ]; then |
... | ... | for t in ${tests}; do | |
21 | 25 | failed="${failed}${add}${t}" | failed="${failed}${add}${t}" |
22 | 26 | add=" " | add=" " |
23 | 27 | echo "${t}: FAILED!" | echo "${t}: FAILED!" |
28 | else | ||
29 | touch "state/${t}" | ||
24 | 30 | fi | fi |
25 | 31 | done | done |
26 | 32 |
File tests/by_http.php changed (mode: 100644) (index 1676be2..eb00180) | |||
... | ... | $a = rg_exec('rm -rf .by_http' | |
44 | 44 | . ' && git init' | . ' && git init' |
45 | 45 | . ' && git remote add origin ' . escapeshellarg($repo['clone_url_http']) | . ' && git remote add origin ' . escapeshellarg($repo['clone_url_http']) |
46 | 46 | . ' && git remote add origin2 ' . escapeshellarg($repo2['clone_url_http']) | . ' && git remote add origin2 ' . escapeshellarg($repo2['clone_url_http']) |
47 | . ' && git remote add origin2_git ' . escapeshellarg($repo2['clone_url_git']) | ||
47 | 48 | . ' && echo "a signature" > a' | . ' && echo "a signature" > a' |
48 | 49 | . ' && git add a' | . ' && git add a' |
49 | 50 | . ' && git commit -a -m "' . $commit_body . '"', '', FALSE, FALSE); | . ' && git commit -a -m "' . $commit_body . '"', '', FALSE, FALSE); |
... | ... | if ($r['ok'] != 1) { | |
94 | 95 | rg_log_exit(); | rg_log_exit(); |
95 | 96 | ||
96 | 97 | ||
98 | rg_log(''); | ||
99 | rg_log_enter('Trying to fetch master (private repo; by git://)...'); | ||
100 | $r = rg_exec('cd .by_http && strace -s2000 -f -tt -o fetch_by_git.strace' | ||
101 | . ' git fetch --verbose origin2_git master', '', FALSE, FALSE); | ||
102 | if ($r['ok'] == 1) { | ||
103 | rg_log_ml('out: ' . print_r($r, TRUE)); | ||
104 | rg_log('Seems I can fetch by git:// from a private repo!'); | ||
105 | exit(1); | ||
106 | } | ||
107 | rg_log_exit(); | ||
108 | |||
109 | |||
97 | 110 | rg_log(''); | rg_log(''); |
98 | 111 | rg_log_enter('Trying to push master (without user/pass; private repo)...'); | rg_log_enter('Trying to push master (without user/pass; private repo)...'); |
99 | 112 | putenv('GIT_ASKPASS=/bin/true'); | putenv('GIT_ASKPASS=/bin/true'); |
File tests/http.inc.php changed (mode: 100644) (index 89c22b0..4b78082) | |||
... | ... | function do_req($url, &$data, &$headers) | |
90 | 90 | $cmd = "tidy -errors -utf8 -file http.tidy.out http.tidy.in"; | $cmd = "tidy -errors -utf8 -file http.tidy.out http.tidy.in"; |
91 | 91 | system($cmd, $ec); | system($cmd, $ec); |
92 | 92 | if ($ec != 0) { | if ($ec != 0) { |
93 | echo "tidy ec=$ec\n"; | ||
94 | echo file_get_contents("http.tidy.out"); | ||
93 | rg_log('tidy ec=' . $ec); | ||
94 | rg_log_ml(file_get_contents('http.tidy.out')); | ||
95 | 95 | exit(1); | exit(1); |
96 | 96 | } | } |
97 | 97 | } | } |
... | ... | function test_login($url, $rg_ui, &$good_sid) | |
186 | 186 | $headers = array("Cookie: sid=d978671c2cd12fba05be218bb1653c1ce7bfb947"); | $headers = array("Cookie: sid=d978671c2cd12fba05be218bb1653c1ce7bfb947"); |
187 | 187 | $r = do_req($url . "/op/login", $data, $headers); | $r = do_req($url . "/op/login", $data, $headers); |
188 | 188 | if ($r === FALSE) { | if ($r === FALSE) { |
189 | echo "Cannot load login form.\n"; | ||
189 | rg_log('Cannot load login form!'); | ||
190 | 190 | return FALSE; | return FALSE; |
191 | 191 | } | } |
192 | 192 | $good_sid = $r['sid']; | $good_sid = $r['sid']; |
193 | if (!isset($r['tokens']['login'])) { | ||
194 | rg_log_ml('r: ' . print_r($r, TRUE)); | ||
195 | rg_log('Login token not returned!'); | ||
196 | return FALSE; | ||
197 | } | ||
193 | 198 | $good_token = $r['tokens']['login']; | $good_token = $r['tokens']['login']; |
194 | 199 | rg_log("good: sid=$good_sid token=$good_token"); | rg_log("good: sid=$good_sid token=$good_token"); |
195 | 200 | if (strncmp($good_sid, "X", 1) != 0) { | if (strncmp($good_sid, "X", 1) != 0) { |
File tests/http_admin.php changed (mode: 100644) (index 080c7d5..76463cd) | |||
... | ... | if ($r === FALSE) { | |
31 | 31 | exit(1); | exit(1); |
32 | 32 | } | } |
33 | 33 | $good_sid = $r['sid']; | $good_sid = $r['sid']; |
34 | if (!isset($r['tokens']['login'])) { | ||
35 | rg_log_ml('R: ' . print_r($r, TRUE)); | ||
36 | rg_log('Cannot find login token!'); | ||
37 | exit(1); | ||
38 | } | ||
34 | 39 | $good_token = $r['tokens']['login']; | $good_token = $r['tokens']['login']; |
35 | 40 | ||
36 | 41 |