List of commits:
Subject Hash Author Date (UTC)
Do more tests and resync some with the reality db9bb136ff176006cbb8f8848309b8adbf98d630 Catalin(ux) M. BOIE 2016-07-11 04:07:38
Improved user cache to not have null elements in JSON d6b75a2cc4830cfb8dfb92e911f1e5a41c2023bc Catalin(ux) M. BOIE 2016-07-11 04:06:25
Allow rights to have numbers and _ in name 4f5c38389bc98e2dcb60d36359917c33820e5779 Catalin(ux) M. BOIE 2016-07-11 04:05:40
Allow strange chars in cache names 00b05d99d3d3cf0229249718d2482af40f063972 Catalin(ux) M. BOIE 2016-07-11 04:04:08
Small improvements to builder and worker 08f9bc668f7f192af61868bebd644bea64b6aedd Catalin(ux) M. BOIE 2016-07-11 04:01:47
SELinux improvements to support the builder a2b52360b43be53786ee5d68c9fcb2db14f29c0c Catalin(ux) M. BOIE 2016-07-11 04:00:57
Document docker on Download web section 5d4ece50d6b4dc3d4902afd9264a45834ceb3592 Catalin(ux) M. BOIE 2016-07-11 03:54:31
Doc: restore context for rc.local eb5fa1cab84737e3440cfbca147d50859b8f9a53 Catalin(ux) M. BOIE 2016-07-07 04:09:23
Fixed small bug preventing e-mail to show in report 26d884b3a332f3c3b241c194912b9653749a9427 Catalin(ux) M. BOIE 2016-07-07 03:37:23
Do not clobber the cron file 5c68384676d9b8087255dda3b62e3588fc50e6c7 Catalin(ux) M. BOIE 2016-07-06 22:03:58
When using rg_json_encode, no quotes needed. c4b7693a81e593918f8c06408f16b4884a92773b Catalin(ux) M. BOIE 2016-07-06 05:21:00
Remove summary from tables because violates HTML5 specs. :( 11865f18e979f3849dbb265e5c5350f4a638088b Catalin(ux) M. BOIE 2016-07-06 05:00:11
Bump version to 0.55 58652b8250a867c0f4e9e3a9c76737443f242b36 Catalin(ux) M. BOIE 2016-07-06 04:48:24
Big commit of a lot of unrelated changes. Shame on me! e503666df79ef1553d0bb7ffd1d12a6b62748b1c Catalin(ux) M. BOIE 2016-07-06 04:44:43
Do not free resources if query fails. 57baca81e9087a00a8e2e1807c932de2fb9769c4 Catalin(ux) M. BOIE 2016-06-26 11:47:09
Packaging changes: prepared for Debian build c32cb09dc84615f4984ce5f8fac4064accbeeb28 Catalin(ux) M. BOIE 2016-06-12 05:59:14
webhooks - rename Name to Type 7d774d4818950b3d3916e834b0dde3081b90960e Catalin(ux) M. BOIE 2016-05-08 11:36:45
Correct license for spec file (Affero -> A) 3635ec1e7b416524ad15e06c884b4546600d68e4 Catalin(ux) M. BOIE 2016-05-08 11:09:01
Bump version to 0.54 a6f90aaaedcaa67073408100b6a0abd5c7ddd6fa Catalin(ux) M. BOIE 2016-05-08 11:06:23
SELinux: permit access to /tmp b33571b8aa45d49053ef20cbb485ef36dc6f5e49 Catalin(ux) M. BOIE 2016-05-08 11:05:44
Commit db9bb136ff176006cbb8f8848309b8adbf98d630 - Do more tests and resync some with the reality
Author: Catalin(ux) M. BOIE
Author date (UTC): 2016-07-11 04:07
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2016-07-11 04:07
Parent(s): d6b75a2cc4830cfb8dfb92e911f1e5a41c2023bc
Signer:
Signing key:
Signing status: N
Tree: 95bd92136bd425e47cf34243c26449c4b56c5886
File Lines added Lines deleted
tests/.gitignore 1 0
tests/api.sh 6 1
tests/cache.php 11 0
tests/http.inc.php 4 0
tests/keys.php 2 2
tests/rights.php 5 3
tests/wh_http.php 1 1
File tests/.gitignore changed (mode: 100644) (index 399dcaf..3cc55b1)
... ... err-*
9 9 *.diff *.diff
10 10 http.tidy.in http.tidy.in
11 11 http.tidy.out http.tidy.out
12 *.out
12 13 git2 git2
13 14 git2key git2key
14 15 git2key.pub git2key.pub
File tests/api.sh changed (mode: 100755) (index 9f7b33f..4938aca)
3 3 user="catab" user="catab"
4 4 key="925cb5896280c6f132263336a5e90819" key="925cb5896280c6f132263336a5e90819"
5 5 curl --header "Authorization: ${user} ${key}" \ curl --header "Authorization: ${user} ${key}" \
6 --include \
7 6 --data "{\"cmd\": \"user_info\", \"user\": \"${user}\"}" \ --data "{\"cmd\": \"user_info\", \"user\": \"${user}\"}" \
7 -o api.out \
8 8 http://rg:9000/op/api http://rg:9000/op/api
9 json_verify < api.out
10 if [ "${?}" != "0" ]; then
11 echo "JSON seems to not be ok!"
12 exit 1
13 fi
File tests/cache.php changed (mode: 100644) (index 9eb6c2c..5dc816f)
... ... if ($r !== 'A') {
109 109 } }
110 110
111 111
112 rg_log('');
113 rg_log_enter('Testing a key that contains \n');
114 $k = 'aaa::bbb' . "\n";
115 rg_cache_set($k, 'value', 0);
116 $r = rg_cache_get($k);
117 if (strcmp($r, 'value') != 0) {
118 rg_log_ml('r:' . print_r($r, TRUE));
119 rg_log('Strange keys does not work correctly!');
120 }
121 rg_log_exit();
122
112 123 rg_log("OK!"); rg_log("OK!");
113 124 ?> ?>
File tests/http.inc.php changed (mode: 100644) (index c8410af..01923e2)
... ... function test_login($url, $rg_ui, &$good_sid)
212 212 return FALSE; return FALSE;
213 213 } }
214 214 $good_sid = $r['sid']; $good_sid = $r['sid'];
215 if (empty($good_sid)) {
216 rg_log('Empty good_sid!');
217 return FALSE;
218 }
215 219
216 220 if (strstr($r['body'], "invalid user")) { if (strstr($r['body'], "invalid user")) {
217 221 rg_log_ml(print_r($r, TRUE)); rg_log_ml(print_r($r, TRUE));
File tests/keys.php changed (mode: 100644) (index e092a10..3909a36)
... ... if ($c === FALSE) {
59 59 exit(1); exit(1);
60 60 } }
61 61 $e = "command=\"" $e = "command=\""
62 . $rg_scripts . "/scripts/remote.sh 1 $key_id1\","
62 . $rg_scripts . "/scripts/remote.sh 1 $key_id1 N\","
63 63 . $rg_ssh_paras . ' ' . $key1 . "\n" . $rg_ssh_paras . ' ' . $key1 . "\n"
64 64 . "command=\"" . "command=\""
65 . $rg_scripts . "/scripts/remote.sh 2 $key_id2\","
65 . $rg_scripts . "/scripts/remote.sh 2 $key_id2 N\","
66 66 . $rg_ssh_paras . ' ' . $key2 . "\n"; . $rg_ssh_paras . ' ' . $key2 . "\n";
67 67 if (strcmp($c, $e) != 0) { if (strcmp($c, $e) != 0) {
68 68 rg_log("Generated file does not seems OK!"); rg_log("Generated file does not seems OK!");
File tests/rights.php changed (mode: 100644) (index 707a4d1..5df61ae)
... ... rg_log('');
108 108 rg_log("Testing rg_rights_get..."); rg_log("Testing rg_rights_get...");
109 109 $right_id = 0; $right_id = 0;
110 110 $r = rg_rights_get($db, $a['obj_id'], "type1", $a['who'], $a['uid'], $right_id); $r = rg_rights_get($db, $a['obj_id'], "type1", $a['who'], $a['uid'], $right_id);
111 if (($r['ok'] !== 1) || (strcmp($r['list'][1]['rights'], "d") != 0)) {
112 rg_log("Seems I cannot get rights (" . rg_rights_error() . ")");
111 if (($r['ok'] !== 1) || empty($r['list'])
112 || (strcmp($r['list'][1]['rights'], "d") != 0)) {
113 113 rg_log_ml("r: " . print_r($r, TRUE)); rg_log_ml("r: " . print_r($r, TRUE));
114 rg_log("Seems I cannot get rights (" . rg_rights_error() . ")");
114 115 exit (1); exit (1);
115 116 } }
116 117 // 'get' again, to see if cache works // 'get' again, to see if cache works
117 118 $r = rg_rights_get($db, $a['obj_id'], "type1", $a['who'], $a['uid'], $right_id); $r = rg_rights_get($db, $a['obj_id'], "type1", $a['who'], $a['uid'], $right_id);
118 if (($r['ok'] !== 1) || (strcmp($r['list'][1]['rights'], "d") != 0)) {
119 if (($r['ok'] !== 1) || empty($r['list'])
120 || (strcmp($r['list'][1]['rights'], "d") != 0)) {
119 121 rg_log("Seems I cannot get rights (" . rg_rights_error() . ")"); rg_log("Seems I cannot get rights (" . rg_rights_error() . ")");
120 122 rg_log_ml("r: " . print_r($r, TRUE)); rg_log_ml("r: " . print_r($r, TRUE));
121 123 exit(1); exit(1);
File tests/wh_http.php changed (mode: 100644) (index c9517bb..85daba0)
... ... $data = array( 'delete' => 1,
356 356 'token' => $good_token, 'token' => $good_token,
357 357 'delete_list[' . $wh_id1 . ']' => 'on'); 'delete_list[' . $wh_id1 . ']' => 'on');
358 358 $r = do_req($test_url . "/op/settings/wh/list", $data, $headers); $r = do_req($test_url . "/op/settings/wh/list", $data, $headers);
359 if (!strstr($r['body'], 'deleted with success')) {
359 if (!strstr($r['body'], 'success')) {
360 360 rg_log_ml('r[body]: ' . print_r($r['body'], TRUE)); rg_log_ml('r[body]: ' . print_r($r['body'], TRUE));
361 361 rg_log("Cannot delete webhook!"); rg_log("Cannot delete webhook!");
362 362 exit(1); exit(1);
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/catalinux/rocketgit

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/catalinux/rocketgit

Clone this repository using git:
git clone git://git.rocketgit.com/user/catalinux/rocketgit

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main