Show More
@@ -6,8 +6,8 b'' | |||||
6 | authentication and permission libraries |
|
6 | authentication and permission libraries | |
7 |
|
7 | |||
8 | :created_on: Apr 4, 2010 |
|
8 | :created_on: Apr 4, 2010 | |
9 | :copyright: (c) 2010 by marcink. |
|
9 | :copyright: (C) 2009-2011 Marcin Kuzminski <marcin@python-works.com> | |
10 |
:license: |
|
10 | :license: GPLv3, see COPYING for more details. | |
11 | """ |
|
11 | """ | |
12 | # This program is free software: you can redistribute it and/or modify |
|
12 | # This program is free software: you can redistribute it and/or modify | |
13 | # it under the terms of the GNU General Public License as published by |
|
13 | # it under the terms of the GNU General Public License as published by |
@@ -7,8 +7,8 b'' | |||||
7 | repositories and send it to backup server using RSA key via ssh. |
|
7 | repositories and send it to backup server using RSA key via ssh. | |
8 |
|
8 | |||
9 | :created_on: Feb 28, 2010 |
|
9 | :created_on: Feb 28, 2010 | |
10 | :copyright: (c) 2010 by marcink. |
|
10 | :copyright: (C) 2009-2011 Marcin Kuzminski <marcin@python-works.com> | |
11 |
:license: |
|
11 | :license: GPLv3, see COPYING for more details. | |
12 | """ |
|
12 | """ | |
13 | # This program is free software: you can redistribute it and/or modify |
|
13 | # This program is free software: you can redistribute it and/or modify | |
14 | # it under the terms of the GNU General Public License as published by |
|
14 | # it under the terms of the GNU General Public License as published by |
@@ -6,8 +6,8 b'' | |||||
6 | Set of custom exceptions used in RhodeCode |
|
6 | Set of custom exceptions used in RhodeCode | |
7 |
|
7 | |||
8 | :created_on: Nov 17, 2010 |
|
8 | :created_on: Nov 17, 2010 | |
9 | :copyright: (c) 2010 by marcink. |
|
9 | :copyright: (C) 2009-2011 Marcin Kuzminski <marcin@python-works.com> | |
10 |
:license: |
|
10 | :license: GPLv3, see COPYING for more details. | |
11 | """ |
|
11 | """ | |
12 | # This program is free software: you can redistribute it and/or modify |
|
12 | # This program is free software: you can redistribute it and/or modify | |
13 | # it under the terms of the GNU General Public License as published by |
|
13 | # it under the terms of the GNU General Public License as published by |
@@ -6,9 +6,21 b'' | |||||
6 | Simple smtp mailer used in RhodeCode |
|
6 | Simple smtp mailer used in RhodeCode | |
7 |
|
7 | |||
8 | :created_on: Sep 13, 2010 |
|
8 | :created_on: Sep 13, 2010 | |
9 |
:copyright: ( |
|
9 | :copyright: (C) 2009-2011 Marcin Kuzminski <marcin@python-works.com> | |
10 |
:license: |
|
10 | :license: GPLv3, see COPYING for more details. | |
11 | """ |
|
11 | """ | |
|
12 | # This program is free software: you can redistribute it and/or modify | |||
|
13 | # it under the terms of the GNU General Public License as published by | |||
|
14 | # the Free Software Foundation, either version 3 of the License, or | |||
|
15 | # (at your option) any later version. | |||
|
16 | # | |||
|
17 | # This program is distributed in the hope that it will be useful, | |||
|
18 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
|
19 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
|
20 | # GNU General Public License for more details. | |||
|
21 | # | |||
|
22 | # You should have received a copy of the GNU General Public License | |||
|
23 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
12 |
|
24 | |||
13 | import logging |
|
25 | import logging | |
14 | import smtplib |
|
26 | import smtplib |
@@ -6,9 +6,21 b'' | |||||
6 | Test suite for making push/pull operations |
|
6 | Test suite for making push/pull operations | |
7 |
|
7 | |||
8 | :created_on: Dec 30, 2010 |
|
8 | :created_on: Dec 30, 2010 | |
9 | :copyright: (c) 2010 by marcink. |
|
9 | :copyright: (C) 2009-2011 Marcin Kuzminski <marcin@python-works.com> | |
10 |
:license: |
|
10 | :license: GPLv3, see COPYING for more details. | |
11 | """ |
|
11 | """ | |
|
12 | # This program is free software: you can redistribute it and/or modify | |||
|
13 | # it under the terms of the GNU General Public License as published by | |||
|
14 | # the Free Software Foundation, either version 3 of the License, or | |||
|
15 | # (at your option) any later version. | |||
|
16 | # | |||
|
17 | # This program is distributed in the hope that it will be useful, | |||
|
18 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
|
19 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
|
20 | # GNU General Public License for more details. | |||
|
21 | # | |||
|
22 | # You should have received a copy of the GNU General Public License | |||
|
23 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
12 |
|
24 | |||
13 | import os |
|
25 | import os | |
14 | import sys |
|
26 | import sys | |
@@ -123,7 +135,7 b' def create_test_repo(force=True):' | |||||
123 | rm = RepoModel(sa) |
|
135 | rm = RepoModel(sa) | |
124 | rm.base_path = '/home/hg' |
|
136 | rm.base_path = '/home/hg' | |
125 | rm.create(form_data, user) |
|
137 | rm.create(form_data, user) | |
126 |
|
138 | |||
127 | print 'done' |
|
139 | print 'done' | |
128 |
|
140 | |||
129 | def set_anonymous_access(enable=True): |
|
141 | def set_anonymous_access(enable=True): | |
@@ -141,10 +153,10 b' def get_anonymous_access():' | |||||
141 | #============================================================================== |
|
153 | #============================================================================== | |
142 | # TESTS |
|
154 | # TESTS | |
143 | #============================================================================== |
|
155 | #============================================================================== | |
144 | def test_clone_with_credentials(no_errors=False,repo=HG_REPO): |
|
156 | def test_clone_with_credentials(no_errors=False, repo=HG_REPO): | |
145 | cwd = path = jn(TESTS_TMP_PATH, repo) |
|
157 | cwd = path = jn(TESTS_TMP_PATH, repo) | |
146 |
|
158 | |||
147 |
|
159 | |||
148 | try: |
|
160 | try: | |
149 | shutil.rmtree(path, ignore_errors=True) |
|
161 | shutil.rmtree(path, ignore_errors=True) | |
150 | os.makedirs(path) |
|
162 | os.makedirs(path) | |
@@ -158,7 +170,7 b' def test_clone_with_credentials(no_error' | |||||
158 | 'pass':PASS, |
|
170 | 'pass':PASS, | |
159 | 'host':HOST, |
|
171 | 'host':HOST, | |
160 | 'cloned_repo':repo, |
|
172 | 'cloned_repo':repo, | |
161 | 'dest':path+_RandomNameSequence().next()} |
|
173 | 'dest':path + _RandomNameSequence().next()} | |
162 |
|
174 | |||
163 | stdout, stderr = Command(cwd).execute('hg clone', clone_url) |
|
175 | stdout, stderr = Command(cwd).execute('hg clone', clone_url) | |
164 |
|
176 | |||
@@ -173,5 +185,5 b" if __name__ == '__main__':" | |||||
173 | for i in range(int(sys.argv[2])): |
|
185 | for i in range(int(sys.argv[2])): | |
174 | test_clone_with_credentials(repo=sys.argv[1]) |
|
186 | test_clone_with_credentials(repo=sys.argv[1]) | |
175 |
|
187 | |||
176 | except Exception,e: |
|
188 | except Exception, e: | |
177 | sys.exit('stop on %s' % e) |
|
189 | sys.exit('stop on %s' % e) |
@@ -6,9 +6,21 b'' | |||||
6 | Test suite for making push/pull operations |
|
6 | Test suite for making push/pull operations | |
7 |
|
7 | |||
8 | :created_on: Dec 30, 2010 |
|
8 | :created_on: Dec 30, 2010 | |
9 | :copyright: (c) 2010 by marcink. |
|
9 | :copyright: (C) 2009-2011 Marcin Kuzminski <marcin@python-works.com> | |
10 |
:license: |
|
10 | :license: GPLv3, see COPYING for more details. | |
11 | """ |
|
11 | """ | |
|
12 | # This program is free software: you can redistribute it and/or modify | |||
|
13 | # it under the terms of the GNU General Public License as published by | |||
|
14 | # the Free Software Foundation, either version 3 of the License, or | |||
|
15 | # (at your option) any later version. | |||
|
16 | # | |||
|
17 | # This program is distributed in the hope that it will be useful, | |||
|
18 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
|
19 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
|
20 | # GNU General Public License for more details. | |||
|
21 | # | |||
|
22 | # You should have received a copy of the GNU General Public License | |||
|
23 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
12 |
|
24 | |||
13 | import os |
|
25 | import os | |
14 | import time |
|
26 | import time |
@@ -7,9 +7,21 b'' | |||||
7 | Package for testing various lib/helper functions in rhodecode |
|
7 | Package for testing various lib/helper functions in rhodecode | |
8 |
|
8 | |||
9 | :created_on: Jun 9, 2011 |
|
9 | :created_on: Jun 9, 2011 | |
10 |
:copyright: ( |
|
10 | :copyright: (C) 2009-2011 Marcin Kuzminski <marcin@python-works.com> | |
11 |
:license: |
|
11 | :license: GPLv3, see COPYING for more details. | |
12 | """ |
|
12 | """ | |
|
13 | # This program is free software: you can redistribute it and/or modify | |||
|
14 | # it under the terms of the GNU General Public License as published by | |||
|
15 | # the Free Software Foundation, either version 3 of the License, or | |||
|
16 | # (at your option) any later version. | |||
|
17 | # | |||
|
18 | # This program is distributed in the hope that it will be useful, | |||
|
19 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
|
20 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
|
21 | # GNU General Public License for more details. | |||
|
22 | # | |||
|
23 | # You should have received a copy of the GNU General Public License | |||
|
24 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
13 |
|
25 | |||
14 |
|
26 | |||
15 |
|
27 |
General Comments 0
You need to be logged in to leave comments.
Login now