List of commits:
Subject Hash Author Date (UTC)
Functional tests improvements 6b82e5a1eaf800a15e42840bc9c889e32a7532f0 Catalin(ux) M. BOIE 2017-03-19 19:40:21
Do not report security violations generated by the functional tests 6028674aa0153d4bc1c46999516f87a6019df6d2 Catalin(ux) M. BOIE 2017-03-19 19:38:23
Admin init form: pass next to user to be able to be cached by browsers c3d9974e92a03a3ec4d093188842330bb7a0cad0 Catalin(ux) M. BOIE 2017-03-17 23:41:10
SELinux: Allow php-fpm to create log files 94962a7b15e91acfa609663185ceab365a89ac98 Catalin(ux) M. BOIE 2017-03-17 23:39:01
Allow anonymous push when using git:// or ssh:// 46d947874f12b7ac7f1ac3fa552f703c498082b2 Catalin(ux) M. BOIE 2017-03-02 22:17:48
tests: now we keep the state c75b10325c24e32b699f22a13c9374e80fe45a2b Catalin(ux) M. BOIE 2017-03-02 22:05:43
No need anymore for usr/lib 58a51962e9025457419fac5051d0840732aeff6c Catalin(ux) M. BOIE 2017-03-02 21:34:11
If nothing found in a folder, xargs will fail 9ea8a34050bc2ce4c53e942834f34eaffa5d4f06 Catalin(ux) M. BOIE 2017-03-02 19:50:55
Bump version to 0.66 4f63811dd434780c4342c087757b6003a9c20c9e Catalin(ux) M. BOIE 2017-03-02 17:54:40
Minor change on how do we call fgetcsv 175715a4739e8a33cbd939d847eed9d3d24e24be Catalin(ux) M. BOIE 2017-03-02 17:53:57
Cosmetic changes for comparison 780b0e99bf591c5081eed9ca9cbe2623d3cab22c Catalin(ux) M. BOIE 2017-03-02 17:53:29
Added a custom csv line parsing (partial) for when the program will be re-written in C 746560420021d148c58578af77c9f7bb05cc5918 Catalin(ux) M. BOIE 2017-03-02 17:53:05
Do not test doit != 1 because it can be a bigger number (thanks w3af!) 214dfb3cd1c7e5a3b5a0353a4c9f9b63cb6545f2 Catalin(ux) M. BOIE 2017-03-02 17:51:56
TODO add/delete 1c8ffca4d65be53acdfe21d4c3c0888707f5d10b Catalin(ux) M. BOIE 2017-03-02 17:50:28
Disable TRACE command in Apache sample conf 3c59e1ef1c87689940eb2bc0c73895101815471b Catalin(ux) M. BOIE 2017-03-02 17:47:13
Return error if a mr cannot be found 3eea0ed2eb3b7a103dac191b7047268baa95d20f Catalin(ux) M. BOIE 2017-03-02 17:40:46
Do not show big files. 2911893ff2790dabd0276a0fe83bfddcb0dd91c3 Catalin(ux) M. BOIE 2017-02-26 09:44:01
Disable fetch by git protocol of private repos! 34542abdf3711dad4fef26b36e2c9f057aac4fff Catalin(ux) M. BOIE 2017-02-24 22:04:59
Set language to 'en' for htmln tag be020d391beb150bab9fa3eedb0e4fcddf00ce00 Catalin(ux) M. BOIE 2017-02-24 22:03:47
Trademark signs for Git and add a reference to SFC 223d90296b59a44b2887808301443264bde89a13 Catalin(ux) M. BOIE 2017-02-24 22:02:49
Commit 6b82e5a1eaf800a15e42840bc9c889e32a7532f0 - Functional tests improvements
Author: Catalin(ux) M. BOIE
Author date (UTC): 2017-03-19 19:40
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2017-03-19 19:40
Parent(s): 6028674aa0153d4bc1c46999516f87a6019df6d2
Signing key:
Tree: 397a3bf4a49a56e8ebc70acf2ffe8f1cc080a0db
File Lines added Lines deleted
tests/git2.php 33 0
tests/pr_anon.php 1 1
tests/wh_lambda.php 7 4
File tests/git2.php changed (mode: 100644) (index 6d4a7e3..25937f3)
... ... if (strstr($r['body'], 'a signature') === FALSE) {
119 119 rg_log_exit(); rg_log_exit();
120 120
121 121
122 rg_log('');
123 rg_log_enter('Delete a branch must make it disappear also from web...');
124 // Pushing a branch
125 $r = rg_exec("cd git2"
126 . " && export GIT_SSH_COMMAND=\"ssh -v -o IdentityFile=../keys/git2 -o IdentitiesOnly=yes\""
127 . " && git checkout -b branch22"
128 . " && git push origin branch22", '', FALSE, FALSE);
129 if ($r['ok'] != 1) {
130 rg_log_ml('out: ' . $r['errmsg']);
131 rg_log("Seems I cannot push branch22! err=$err");
132 exit(1);
133 }
134 // Deleting the branch
135 $r = rg_exec("cd git2"
136 . " && export GIT_SSH_COMMAND=\"ssh -v -o IdentityFile=../keys/git2 -o IdentitiesOnly=yes\""
137 . " && git push origin :branch22", '', FALSE, FALSE);
138 if ($r['ok'] != 1) {
139 rg_log_ml('out: ' . $r['errmsg']);
140 rg_log("Seems I cannot delete branch22! err=$err");
141 exit(1);
142 }
143 // Now, the branch should not be visible anymore
144 $headers = array("Cookie: sid=" . $good_sid);
145 $r = do_req($test_url . '/user/' . rawurlencode($rg_ui['username'])
146 . '/' . rawurlencode($repo['name']) . '/source', $data, $headers);
147 rg_log_ml($r['body']);
148 if (strstr($r['body'], 'branch22') !== FALSE) {
149 rg_log_ml('Seems the branch is still on the web!');
150 exit(1);
151 }
152 rg_log_exit();
153
154
122 155 rg_log("OK!"); rg_log("OK!");
123 156 ?> ?>
File tests/pr_anon.php changed (mode: 100644) (index 53259e5..e88c08e)
... ... rg_log_exit();
110 110
111 111
112 112 rg_log(''); rg_log('');
113 rg_log_enter('Do an non-anonymous push...');
113 rg_log_enter('Do a non-anonymous push...');
114 114 $r = rg_exec('export GIT_SSH_COMMAND="ssh -o IdentityFile=../keys/pr_anon' $r = rg_exec('export GIT_SSH_COMMAND="ssh -o IdentityFile=../keys/pr_anon'
115 115 . ' -o IdentitiesOnly=yes";' . ' -o IdentitiesOnly=yes";'
116 116 . 'cd _pr_anon.git; echo "change1" > a;' . 'cd _pr_anon.git; echo "change1" > a;'
File tests/wh_lambda.php changed (mode: 100644) (index b29a163..d3f8cdd)
... ... if ($r === FALSE) {
45 45 rg_log_exit(); rg_log_exit();
46 46
47 47
48 $repo = array('name' => 'wh-cloud');
49 rg_test_create_repo($db, $rg_ui, $repo);
50
51
48 52 rg_log(''); rg_log('');
49 53 rg_log_enter('Registering webhook...'); rg_log_enter('Registering webhook...');
50 54 $extra = array( $extra = array(
 
... ... $extra = array(
52 56 'wh::description' => 'description2 <xss> lambda', 'wh::description' => 'description2 <xss> lambda',
53 57 'wh::repo' => '', 'wh::repo' => '',
54 58 'wh::refname' => '', 'wh::refname' => '',
55 'wh::idata::events[P]' => 'on',
59 'wh::idata::events[C]' => 'on', // C = create branch
60 'wh::idata::events[P]' => 'on', // P = push
56 61 'wh::idata::access_key_id' => $a['access_key_id'], 'wh::idata::access_key_id' => $a['access_key_id'],
57 62 'wh::idata::secret_access_key' => $a['secret_access_key'], 'wh::idata::secret_access_key' => $a['secret_access_key'],
58 63 'wh::idata::region' => 'eu-central-1', 'wh::idata::region' => 'eu-central-1',
 
... ... rg_log_exit();
93 98
94 99
95 100 rg_log(''); rg_log('');
96 rg_log_enter('Creating a repo and pushing it');
97 $repo = array('name' => 'wh-cloud');
98 rg_test_create_repo($db, $rg_ui, $repo);
101 rg_log_enter('Pushing repo, so the trigger has a chanse to execute...');
99 102 // TODO: extract url from $repo // TODO: extract url from $repo
100 103 $repo_url = 'ssh://rocketgit@' . $rg_ssh_host . ':' . $rg_ssh_port $repo_url = 'ssh://rocketgit@' . $rg_ssh_host . ':' . $rg_ssh_port
101 104 . '/user/' . $rg_ui['username'] . '/' . $repo['name']; . '/user/' . $rg_ui['username'] . '/' . $repo['name'];
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