##// END OF EJS Templates
Rename various strings for tests
Bradley M. Kuhn -
r4206:703d3208 kallithea-2.2.5-r...
parent child Browse files
Show More
@@ -5,9 +5,9 b' python:'
5 - "2.7"
5 - "2.7"
6
6
7 env:
7 env:
8 - TEST_DB=sqlite:////tmp/rhodecode_test.sqlite
8 - TEST_DB=sqlite:////tmp/kallithea_test.sqlite
9 - TEST_DB=mysql://root@127.0.0.1/rhodecode_test
9 - TEST_DB=mysql://root@127.0.0.1/kallithea_test
10 - TEST_DB=postgresql://postgres@127.0.0.1/rhodecode_test
10 - TEST_DB=postgresql://postgres@127.0.0.1/kallithea_test
11
11
12 services:
12 services:
13 - mysql
13 - mysql
@@ -15,8 +15,8 b' services:'
15
15
16 # command to install dependencies
16 # command to install dependencies
17 before_script:
17 before_script:
18 - mysql -e 'create database rhodecode_test;'
18 - mysql -e 'create database kallithea_test;'
19 - psql -c 'create database rhodecode_test;' -U postgres
19 - psql -c 'create database kallithea_test;' -U postgres
20 - git --version
20 - git --version
21
21
22 before_install:
22 before_install:
@@ -41,7 +41,7 b' to change your testing enviroment.'
41 There's a special set of tests for push/pull operations, you can runn them using::
41 There's a special set of tests for push/pull operations, you can runn them using::
42
42
43 paster serve test.ini --pid-file=test.pid --daemon
43 paster serve test.ini --pid-file=test.pid --daemon
44 RC_WHOOSH_TEST_DISABLE=1 RC_NO_TMP_PATH=1 nosetests -x kallithea/tests/other/test_vcs_operations.py
44 KALLITHEA_WHOOSH_TEST_DISABLE=1 KALLITHEA_NO_TMP_PATH=1 nosetests -x kallithea/tests/other/test_vcs_operations.py
45 kill -9 $(cat test.pid)
45 kill -9 $(cat test.pid)
46
46
47
47
@@ -91,20 +91,20 b' def load_environment(global_conf, app_co'
91 test = os.path.split(config['__file__'])[-1] == 'test.ini'
91 test = os.path.split(config['__file__'])[-1] == 'test.ini'
92 if test:
92 if test:
93 if test_env is None:
93 if test_env is None:
94 test_env = not int(os.environ.get('RC_NO_TMP_PATH', 0))
94 test_env = not int(os.environ.get('KALLITHEA_NO_TMP_PATH', 0))
95 if test_index is None:
95 if test_index is None:
96 test_index = not int(os.environ.get('RC_WHOOSH_TEST_DISABLE', 0))
96 test_index = not int(os.environ.get('KALLITHEA_WHOOSH_TEST_DISABLE', 0))
97 if os.environ.get('TEST_DB'):
97 if os.environ.get('TEST_DB'):
98 # swap config if we pass enviroment variable
98 # swap config if we pass enviroment variable
99 config['sqlalchemy.db1.url'] = os.environ.get('TEST_DB')
99 config['sqlalchemy.db1.url'] = os.environ.get('TEST_DB')
100
100
101 from kallithea.lib.utils import create_test_env, create_test_index
101 from kallithea.lib.utils import create_test_env, create_test_index
102 from kallithea.tests import TESTS_TMP_PATH
102 from kallithea.tests import TESTS_TMP_PATH
103 #set RC_NO_TMP_PATH=1 to disable re-creating the database and
103 #set KALLITHEA_NO_TMP_PATH=1 to disable re-creating the database and
104 #test repos
104 #test repos
105 if test_env:
105 if test_env:
106 create_test_env(TESTS_TMP_PATH, config)
106 create_test_env(TESTS_TMP_PATH, config)
107 #set RC_WHOOSH_TEST_DISABLE=1 to disable whoosh index during tests
107 #set KALLITHEA_WHOOSH_TEST_DISABLE=1 to disable whoosh index during tests
108 if test_index:
108 if test_index:
109 create_test_index(TESTS_TMP_PATH, config, True)
109 create_test_index(TESTS_TMP_PATH, config, True)
110
110
@@ -28,8 +28,8 b' nosetests --pdb --pdb-failures'
28 nosetests --with-coverage --cover-package=kallithea.model.validators kallithea.tests.test_validators
28 nosetests --with-coverage --cover-package=kallithea.model.validators kallithea.tests.test_validators
29
29
30 optional FLAGS:
30 optional FLAGS:
31 RC_WHOOSH_TEST_DISABLE=1 - skip whoosh index building and tests
31 KALLITHEA_WHOOSH_TEST_DISABLE=1 - skip whoosh index building and tests
32 RC_NO_TMP_PATH=1 - disable new temp path for tests, used mostly for test_vcs_operations
32 KALLITHEA_NO_TMP_PATH=1 - disable new temp path for tests, used mostly for test_vcs_operations
33
33
34 """
34 """
35 import os
35 import os
@@ -15,7 +15,7 b''
15 """
15 """
16 tests for api. run with::
16 tests for api. run with::
17
17
18 RC_WHOOSH_TEST_DISABLE=1 nosetests --with-coverage --cover-package=kallithea.controllers.api.api -x kallithea/tests/api
18 KALLITHEA_WHOOSH_TEST_DISABLE=1 nosetests --with-coverage --cover-package=kallithea.controllers.api.api -x kallithea/tests/api
19 """
19 """
20
20
21 from __future__ import with_statement
21 from __future__ import with_statement
@@ -197,11 +197,11 b' 244,43,lpyedge,55,group/brhg,"",user_cre'
197 245,43,lpyedge,56,brgit,"",started_following_repo,2012-07-12 15:18:17.687605
197 245,43,lpyedge,56,brgit,"",started_following_repo,2012-07-12 15:18:17.687605
198 246,43,lpyedge,56,brgit,"",user_created_repo,2012-07-12 15:18:17.702136
198 246,43,lpyedge,56,brgit,"",user_created_repo,2012-07-12 15:18:17.702136
199 247,1,default,34,a,54.247.183.89,pull,2012-07-12 16:53:15.165512
199 247,1,default,34,a,54.247.183.89,pull,2012-07-12 16:53:15.165512
200 248,45,krhodecode,1,test,"",user_commented_revision:ef02269209cd431c0cd0ee929ba37ae895651d69,2012-07-12 23:09:25.38717
200 248,45,kxxx,1,test,"",user_commented_revision:ef02269209cd431c0cd0ee929ba37ae895651d69,2012-07-12 23:09:25.38717
201 249,45,krhodecode,42,foo,"",user_commented_revision:ca953e8c5c1ada44e9a8f945a0a6999d2f44310d,2012-07-12 23:14:07.819338
201 249,45,kxxx,42,foo,"",user_commented_revision:ca953e8c5c1ada44e9a8f945a0a6999d2f44310d,2012-07-12 23:14:07.819338
202 250,45,krhodecode,57,SuperProject,"",started_following_repo,2012-07-12 23:17:38.213634
202 250,45,kxxx,57,SuperProject,"",started_following_repo,2012-07-12 23:17:38.213634
203 251,45,krhodecode,57,SuperProject,"",user_created_repo,2012-07-12 23:17:38.229359
203 251,45,kxxx,57,SuperProject,"",user_created_repo,2012-07-12 23:17:38.229359
204 252,45,krhodecode,57,SuperProject,216.51.137.66,push:a3188ce9ed64822ceae497665910c2e18cddf021,2012-07-12 23:23:23.111788
204 252,45,kxxx,57,SuperProject,216.51.137.66,push:a3188ce9ed64822ceae497665910c2e18cddf021,2012-07-12 23:23:23.111788
205 253,3,demo,38,code-review-test,"",user_commented_revision:fba17a64fa4978bfea19222da5e64a18cfddeecd,2012-07-13 14:22:00.003158
205 253,3,demo,38,code-review-test,"",user_commented_revision:fba17a64fa4978bfea19222da5e64a18cfddeecd,2012-07-13 14:22:00.003158
206 254,46,snazy2000,58,group/Test,"",started_following_repo,2012-07-13 19:14:31.959033
206 254,46,snazy2000,58,group/Test,"",started_following_repo,2012-07-13 19:14:31.959033
207 255,46,snazy2000,58,group/Test,"",user_created_repo,2012-07-13 19:14:31.972509
207 255,46,snazy2000,58,group/Test,"",user_created_repo,2012-07-13 19:14:31.972509
@@ -611,10 +611,10 b' 658,3,demo,132,test-alex,"",push_local:6'
611 659,3,demo,132,test-alex,"",push_local:807dd6bb60f5eef82f7ffdd988dee3e0de4e44dc,2012-08-13 21:26:51.764858
611 659,3,demo,132,test-alex,"",push_local:807dd6bb60f5eef82f7ffdd988dee3e0de4e44dc,2012-08-13 21:26:51.764858
612 660,3,demo,132,test-alex,"",push_local:24224f94a8578508883f58982e10b0ffa83a98d6,2012-08-13 21:28:03.831471
612 660,3,demo,132,test-alex,"",push_local:24224f94a8578508883f58982e10b0ffa83a98d6,2012-08-13 21:28:03.831471
613 661,3,demo,42,foo,"",user_commented_revision:ca953e8c5c1ada44e9a8f945a0a6999d2f44310d,2012-08-14 18:40:46.618059
613 661,3,demo,42,foo,"",user_commented_revision:ca953e8c5c1ada44e9a8f945a0a6999d2f44310d,2012-08-14 18:40:46.618059
614 662,118,peso-rhodecode,99,another-fork-to-check-code-review,"",user_commented_revision:30853f4bde2f2b6f0a7126392b9b1b4c5ea37e0a,2012-08-14 18:58:56.536013
614 662,118,peso-xxx,99,another-fork-to-check-code-review,"",user_commented_revision:30853f4bde2f2b6f0a7126392b9b1b4c5ea37e0a,2012-08-14 18:58:56.536013
615 663,118,peso-rhodecode,99,another-fork-to-check-code-review,"",user_commented_revision:30853f4bde2f2b6f0a7126392b9b1b4c5ea37e0a,2012-08-14 18:59:58.982696
615 663,118,peso-xxx,99,another-fork-to-check-code-review,"",user_commented_revision:30853f4bde2f2b6f0a7126392b9b1b4c5ea37e0a,2012-08-14 18:59:58.982696
616 664,118,peso-rhodecode,133,tortoisehg,"",started_following_repo,2012-08-14 19:05:14.873877
616 664,118,peso-xxx,133,tortoisehg,"",started_following_repo,2012-08-14 19:05:14.873877
617 665,118,peso-rhodecode,133,tortoisehg,"",user_created_repo,2012-08-14 19:05:14.88921
617 665,118,peso-xxx,133,tortoisehg,"",user_created_repo,2012-08-14 19:05:14.88921
618 666,119,ricardona,39,fork-code-review-test,"",user_commented_revision:ac19ef61aab0b008acb5dac5d53457cbd278d927,2012-08-14 21:20:28.585574
618 666,119,ricardona,39,fork-code-review-test,"",user_commented_revision:ac19ef61aab0b008acb5dac5d53457cbd278d927,2012-08-14 21:20:28.585574
619 667,3,demo,134,TestIM,"",started_following_repo,2012-08-14 22:23:05.22279
619 667,3,demo,134,TestIM,"",started_following_repo,2012-08-14 22:23:05.22279
620 668,3,demo,134,TestIM,"",user_created_repo,2012-08-14 22:23:05.235172
620 668,3,demo,134,TestIM,"",user_created_repo,2012-08-14 22:23:05.235172
@@ -756,10 +756,10 b' 806,3,demo,159,group/Test-for-code-revie'
756 807,3,demo,159,group/Test-for-code-review,"",user_commented_revision:2305443e5a06a9d80e328741d2da742145f80eee,2012-08-30 19:15:23.722829
756 807,3,demo,159,group/Test-for-code-review,"",user_commented_revision:2305443e5a06a9d80e328741d2da742145f80eee,2012-08-30 19:15:23.722829
757 808,150,dlamotte,1,test,"",user_commented_pull_request:31,2012-08-30 23:03:25.180892
757 808,150,dlamotte,1,test,"",user_commented_pull_request:31,2012-08-30 23:03:25.180892
758 809,150,dlamotte,1,test,"",user_closed_pull_request:31,2012-08-30 23:03:25.192118
758 809,150,dlamotte,1,test,"",user_closed_pull_request:31,2012-08-30 23:03:25.192118
759 810,150,dlamotte,161,test-rhodecode-pull-request,"",started_following_repo,2012-08-30 23:05:08.817245
759 810,150,dlamotte,161,test-xxx-pull-request,"",started_following_repo,2012-08-30 23:05:08.817245
760 811,150,dlamotte,161,test-rhodecode-pull-request,"",user_created_repo,2012-08-30 23:05:08.832769
760 811,150,dlamotte,161,test-xxx-pull-request,"",user_created_repo,2012-08-30 23:05:08.832769
761 812,150,dlamotte,161,test-rhodecode-pull-request,143.127.128.10,push:e839aac4f06bb1f0dde813d6b7e80cc345f8d70d,2012-08-30 23:06:12.300969
761 812,150,dlamotte,161,test-xxx-pull-request,143.127.128.10,push:e839aac4f06bb1f0dde813d6b7e80cc345f8d70d,2012-08-30 23:06:12.300969
762 813,150,dlamotte,161,test-rhodecode-pull-request,143.127.128.10,"push:1b01a9f3ba4951615f1c9cfbe19ea62f3abeed9f,062ab363eaef7fc73342a93f4624030103fc36f9",2012-08-30 23:08:29.621962
762 813,150,dlamotte,161,test-xxx-pull-request,143.127.128.10,"push:1b01a9f3ba4951615f1c9cfbe19ea62f3abeed9f,062ab363eaef7fc73342a93f4624030103fc36f9",2012-08-30 23:08:29.621962
763 814,1,default,1,test,176.9.28.203,pull,2012-08-30 23:14:51.336754
763 814,1,default,1,test,176.9.28.203,pull,2012-08-30 23:14:51.336754
764 815,151,mill1359,162,test-m,"",started_following_repo,2012-08-30 23:14:51.499881
764 815,151,mill1359,162,test-m,"",started_following_repo,2012-08-30 23:14:51.499881
765 816,151,mill1359,162,test-m,"",user_created_repo,2012-08-30 23:14:51.509169
765 816,151,mill1359,162,test-m,"",user_created_repo,2012-08-30 23:14:51.509169
@@ -772,13 +772,13 b' 822,155,cdugz,163,nagios,"",user_created'
772 895,3,demo,122,amab,"",push_local:f0509a4f718f5a31eafcb8fbe9caf21a642c5753,2012-09-05 01:30:02.737976
772 895,3,demo,122,amab,"",push_local:f0509a4f718f5a31eafcb8fbe9caf21a642c5753,2012-09-05 01:30:02.737976
773 896,3,demo,32,big-project,"",user_commented_revision:06d5302c4830e5af52f06c462f11f75107b2a1ff,2012-09-05 11:05:19.904842
773 896,3,demo,32,big-project,"",user_commented_revision:06d5302c4830e5af52f06c462f11f75107b2a1ff,2012-09-05 11:05:19.904842
774 823,155,cdugz,163,nagios,82.150.248.28,"push:380d5c3fd6c3948d5da3f56859104f4adf629553,30b5773f0f9d57cfb721576169685b36878969d1,47deef50eface398daa8ba09a6d79a9db2585c4f,a38d5508f516f360cd603a72cd4a4f16facf5825,cf7656e6c2cb29241db1f6ae0af2823684d7d0b4,0ebf06f94b584abe59853618ca68b9416f13fe20,413886edff138d8de1e3e23698fabba444de6167,335bb28b7c5428044f17ef9bc57a992b759b2d93,feba8837f9ac8af56b6588e8fcc7710eeeebd327,bf0781be32a59aef35f8bf95a2f614894e773926,fc3792349c770fe014d0774e980e3bba600bb5a6",2012-08-31 16:46:05.896127
774 823,155,cdugz,163,nagios,82.150.248.28,"push:380d5c3fd6c3948d5da3f56859104f4adf629553,30b5773f0f9d57cfb721576169685b36878969d1,47deef50eface398daa8ba09a6d79a9db2585c4f,a38d5508f516f360cd603a72cd4a4f16facf5825,cf7656e6c2cb29241db1f6ae0af2823684d7d0b4,0ebf06f94b584abe59853618ca68b9416f13fe20,413886edff138d8de1e3e23698fabba444de6167,335bb28b7c5428044f17ef9bc57a992b759b2d93,feba8837f9ac8af56b6588e8fcc7710eeeebd327,bf0781be32a59aef35f8bf95a2f614894e773926,fc3792349c770fe014d0774e980e3bba600bb5a6",2012-08-31 16:46:05.896127
775 824,155,cdugz,164,rhodecode-ref,"",started_following_repo,2012-08-31 17:42:24.794235
775 824,155,cdugz,164,xxx-ref,"",started_following_repo,2012-08-31 17:42:24.794235
776 825,155,cdugz,164,rhodecode-ref,"",user_created_repo,2012-08-31 17:42:24.806839
776 825,155,cdugz,164,xxx-ref,"",user_created_repo,2012-08-31 17:42:24.806839
777 826,155,cdugz,164,rhodecode-ref,82.150.248.28,"push:380d5c3fd6c3948d5da3f56859104f4adf629553,30b5773f0f9d57cfb721576169685b36878969d1,47deef50eface398daa8ba09a6d79a9db2585c4f,c91bea8206218cf051c6b0ab6a352c7371b5212d",2012-08-31 17:43:03.365708
777 826,155,cdugz,164,xxx-ref,82.150.248.28,"push:380d5c3fd6c3948d5da3f56859104f4adf629553,30b5773f0f9d57cfb721576169685b36878969d1,47deef50eface398daa8ba09a6d79a9db2585c4f,c91bea8206218cf051c6b0ab6a352c7371b5212d",2012-08-31 17:43:03.365708
778 827,155,cdugz,164,rhodecode-ref,"",user_updated_repo,2012-08-31 17:44:01.673127
778 827,155,cdugz,164,xxx-ref,"",user_updated_repo,2012-08-31 17:44:01.673127
779 828,155,cdugz,165,rhodecode-dev,"",started_following_repo,2012-08-31 17:44:52.870468
779 828,155,cdugz,165,xxx-dev,"",started_following_repo,2012-08-31 17:44:52.870468
780 829,155,cdugz,165,rhodecode-dev,"",user_created_repo,2012-08-31 17:44:52.880649
780 829,155,cdugz,165,xxx-dev,"",user_created_repo,2012-08-31 17:44:52.880649
781 830,155,cdugz,165,rhodecode-dev,82.150.248.28,"push:380d5c3fd6c3948d5da3f56859104f4adf629553,30b5773f0f9d57cfb721576169685b36878969d1,47deef50eface398daa8ba09a6d79a9db2585c4f,107236f51ef01fcb27d1c613c18a93a2135c336c,2ff774f5163960e356530826b4faad804bd79972,e4b37340f046c2910a43017d814841df1caec1cf,c91bea8206218cf051c6b0ab6a352c7371b5212d,3e5071670c8eec699744bd94f9ebacba8ef33b1f,06303e4e0da2b0e909d985844fc573e3a32547a2",2012-08-31 17:45:20.027085
781 830,155,cdugz,165,xxx-dev,82.150.248.28,"push:380d5c3fd6c3948d5da3f56859104f4adf629553,30b5773f0f9d57cfb721576169685b36878969d1,47deef50eface398daa8ba09a6d79a9db2585c4f,107236f51ef01fcb27d1c613c18a93a2135c336c,2ff774f5163960e356530826b4faad804bd79972,e4b37340f046c2910a43017d814841df1caec1cf,c91bea8206218cf051c6b0ab6a352c7371b5212d,3e5071670c8eec699744bd94f9ebacba8ef33b1f,06303e4e0da2b0e909d985844fc573e3a32547a2",2012-08-31 17:45:20.027085
782 831,3,demo,93,fork-a,"",push_local:416552904882d8b8f051cad2071f4aa271d4ea4e,2012-08-31 18:50:50.885869
782 831,3,demo,93,fork-a,"",push_local:416552904882d8b8f051cad2071f4aa271d4ea4e,2012-08-31 18:50:50.885869
783 832,3,demo,166,dfgdfg,"",started_following_repo,2012-08-31 18:56:16.94572
783 832,3,demo,166,dfgdfg,"",started_following_repo,2012-08-31 18:56:16.94572
784 833,3,demo,166,dfgdfg,"",user_created_repo,2012-08-31 18:56:16.959102
784 833,3,demo,166,dfgdfg,"",user_created_repo,2012-08-31 18:56:16.959102
@@ -872,7 +872,7 b' 922,3,demo,34,a,"",user_commented_pull_r'
872 923,3,demo,34,a,"",user_closed_pull_request:38,2012-09-05 13:41:51.082763
872 923,3,demo,34,a,"",user_closed_pull_request:38,2012-09-05 13:41:51.082763
873 924,3,demo,34,a,"",user_updated_repo,2012-09-05 13:42:28.045216
873 924,3,demo,34,a,"",user_updated_repo,2012-09-05 13:42:28.045216
874 925,3,demo,176,hopsa,"",started_following_repo,2012-09-05 14:12:14.479866
874 925,3,demo,176,hopsa,"",started_following_repo,2012-09-05 14:12:14.479866
875 926,3,demo,165,rhodecode-dev,"",user_forked_repo:hopsa,2012-09-05 14:12:14.495649
875 926,3,demo,165,xxx-dev,"",user_forked_repo:hopsa,2012-09-05 14:12:14.495649
876 927,3,demo,176,hopsa,"",user_created_fork:hopsa,2012-09-05 14:12:14.507312
876 927,3,demo,176,hopsa,"",user_created_fork:hopsa,2012-09-05 14:12:14.507312
877 928,3,demo,177,blah,"",started_following_repo,2012-09-05 16:42:29.860682
877 928,3,demo,177,blah,"",started_following_repo,2012-09-05 16:42:29.860682
878 929,3,demo,177,blah,"",user_created_repo,2012-09-05 16:42:29.876509
878 929,3,demo,177,blah,"",user_created_repo,2012-09-05 16:42:29.876509
@@ -933,8 +933,8 b' 983,3,demo,68,aaa-project,"",user_commen'
933 984,3,demo,189,fork-_01_jdj,"",started_following_repo,2012-09-07 22:55:46.169783
933 984,3,demo,189,fork-_01_jdj,"",started_following_repo,2012-09-07 22:55:46.169783
934 985,3,demo,170,_01_jdj,"",user_forked_repo:fork-_01_jdj,2012-09-07 22:55:46.191342
934 985,3,demo,170,_01_jdj,"",user_forked_repo:fork-_01_jdj,2012-09-07 22:55:46.191342
935 986,3,demo,189,fork-_01_jdj,"",user_created_fork:fork-_01_jdj,2012-09-07 22:55:46.209143
935 986,3,demo,189,fork-_01_jdj,"",user_created_fork:fork-_01_jdj,2012-09-07 22:55:46.209143
936 987,2,admin,190,rhodecode,"",started_following_repo,2012-09-08 01:07:09.881091
936 987,2,admin,190,xxx,"",started_following_repo,2012-09-08 01:07:09.881091
937 988,2,admin,190,rhodecode,"",admin_created_repo,2012-09-08 01:07:09.895097
937 988,2,admin,190,xxx,"",admin_created_repo,2012-09-08 01:07:09.895097
938 989,3,demo,34,a,"",user_commented_revision:332932afc11a2c6308d44e75f8b4ac7643093fa7,2012-09-08 08:57:27.586796
938 989,3,demo,34,a,"",user_commented_revision:332932afc11a2c6308d44e75f8b4ac7643093fa7,2012-09-08 08:57:27.586796
939 990,3,demo,191,kekeke,"",started_following_repo,2012-09-08 11:22:58.159504
939 990,3,demo,191,kekeke,"",started_following_repo,2012-09-08 11:22:58.159504
940 991,3,demo,191,kekeke,"",user_created_repo,2012-09-08 11:22:58.175212
940 991,3,demo,191,kekeke,"",user_created_repo,2012-09-08 11:22:58.175212
@@ -1708,7 +1708,7 b' 1768,3,demo,339,releases/test123,"",user'
1708 1769,2,admin,339,releases/test123,146.48.87.66,push:87e9dcd8d3e375c218fdb747da52dc1551a93dc7,2012-10-24 14:12:02.63513
1708 1769,2,admin,339,releases/test123,146.48.87.66,push:87e9dcd8d3e375c218fdb747da52dc1551a93dc7,2012-10-24 14:12:02.63513
1709 1770,292,Airframe,340,Testtestac,"",started_following_repo,2012-10-24 17:09:26.37836
1709 1770,292,Airframe,340,Testtestac,"",started_following_repo,2012-10-24 17:09:26.37836
1710 1771,292,Airframe,340,Testtestac,"",user_created_repo,2012-10-24 17:09:26.387917
1710 1771,292,Airframe,340,Testtestac,"",user_created_repo,2012-10-24 17:09:26.387917
1711 1772,293,imbehind,190,rhodecode,"",user_commented_revision:008d9c6f7c92636aaeda6f182bffecac6a464dd3,2012-10-24 20:38:59.535098
1711 1772,293,imbehind,190,xxx,"",user_commented_revision:008d9c6f7c92636aaeda6f182bffecac6a464dd3,2012-10-24 20:38:59.535098
1712 1773,3,demo,341,MicTest,"",started_following_repo,2012-10-24 20:59:34.176289
1712 1773,3,demo,341,MicTest,"",started_following_repo,2012-10-24 20:59:34.176289
1713 1774,3,demo,341,MicTest,"",user_created_repo,2012-10-24 20:59:34.186308
1713 1774,3,demo,341,MicTest,"",user_created_repo,2012-10-24 20:59:34.186308
1714 1775,3,demo,341,MicTest,"",push_local:327bf84d0d633a66f0c7ff4533de2415c9ff5a88,2012-10-24 21:00:28.379598
1714 1775,3,demo,341,MicTest,"",push_local:327bf84d0d633a66f0c7ff4533de2415c9ff5a88,2012-10-24 21:00:28.379598
@@ -62,13 +62,13 b' class TestAdminController(TestController'
62 def test_filter_journal_filter_exact_match_on_repository(self):
62 def test_filter_journal_filter_exact_match_on_repository(self):
63 self.log_user()
63 self.log_user()
64 response = self.app.get(url(controller='admin/admin', action='index',
64 response = self.app.get(url(controller='admin/admin', action='index',
65 filter='repository:rhodecode'))
65 filter='repository:xxx'))
66 response.mustcontain('3 entries')
66 response.mustcontain('3 entries')
67
67
68 def test_filter_journal_filter_exact_match_on_repository_CamelCase(self):
68 def test_filter_journal_filter_exact_match_on_repository_CamelCase(self):
69 self.log_user()
69 self.log_user()
70 response = self.app.get(url(controller='admin/admin', action='index',
70 response = self.app.get(url(controller='admin/admin', action='index',
71 filter='repository:RhodeCode'))
71 filter='repository:XxX'))
72 response.mustcontain('3 entries')
72 response.mustcontain('3 entries')
73
73
74 def test_filter_journal_filter_wildcard_on_repository(self):
74 def test_filter_journal_filter_wildcard_on_repository(self):
@@ -98,7 +98,7 b' class TestAdminController(TestController'
98 def test_filter_journal_filter_prefix_on_repository_or_other_repo(self):
98 def test_filter_journal_filter_prefix_on_repository_or_other_repo(self):
99 self.log_user()
99 self.log_user()
100 response = self.app.get(url(controller='admin/admin', action='index',
100 response = self.app.get(url(controller='admin/admin', action='index',
101 filter='repository:test* OR repository:rhodecode'))
101 filter='repository:test* OR repository:xxx'))
102 response.mustcontain('260 entries') # 257 + 3
102 response.mustcontain('260 entries') # 257 + 3
103
103
104 def test_filter_journal_filter_exact_match_on_username(self):
104 def test_filter_journal_filter_exact_match_on_username(self):
@@ -17,7 +17,7 b' kallithea.tests.test_scm_operations'
17
17
18 Test suite for making push/pull operations.
18 Test suite for making push/pull operations.
19 Run using after doing paster serve test.ini::
19 Run using after doing paster serve test.ini::
20 RC_WHOOSH_TEST_DISABLE=1 RC_NO_TMP_PATH=1 nosetests kallithea/tests/other/test_vcs_operations.py
20 KALLITHEA_WHOOSH_TEST_DISABLE=1 KALLITHEA_NO_TMP_PATH=1 nosetests kallithea/tests/other/test_vcs_operations.py
21
21
22 You must have git > 1.8.1 for tests to work fine
22 You must have git > 1.8.1 for tests to work fine
23
23
@@ -62,14 +62,14 b" PROJECT_PATH = jn('/', 'home', 'marcink'"
62 PROJECTS = [
62 PROJECTS = [
63 #'linux-magx-pbranch',
63 #'linux-magx-pbranch',
64 'CPython',
64 'CPython',
65 'rhodecode_tip',
65 'kallithea',
66 ]
66 ]
67
67
68
68
69 cj = cookielib.FileCookieJar('/tmp/rc_test_cookie.txt')
69 cj = cookielib.FileCookieJar('/tmp/rc_test_cookie.txt')
70 o = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj))
70 o = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj))
71 o.addheaders = [
71 o.addheaders = [
72 ('User-agent', 'rhodecode-crawler'),
72 ('User-agent', 'kallithea-crawler'),
73 ('Accept-Language', 'en - us, en;q = 0.5')
73 ('Accept-Language', 'en - us, en;q = 0.5')
74 ]
74 ]
75
75
@@ -388,9 +388,9 b' logview.pylons.util = #eee'
388 #########################################################
388 #########################################################
389 ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ###
389 ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ###
390 #########################################################
390 #########################################################
391 sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode_test.sqlite
391 sqlalchemy.db1.url = sqlite:///%(here)s/kallithea_test.sqlite
392 #sqlalchemy.db1.url = postgresql://postgres:qwe@localhost/rhodecode_test
392 #sqlalchemy.db1.url = postgresql://postgres:qwe@localhost/kallithea_test
393 #sqlalchemy.db1.url = mysql://root:qwe@localhost/rhodecode_test
393 #sqlalchemy.db1.url = mysql://root:qwe@localhost/kallithea_test
394 sqlalchemy.db1.echo = false
394 sqlalchemy.db1.echo = false
395 sqlalchemy.db1.pool_recycle = 3600
395 sqlalchemy.db1.pool_recycle = 3600
396 sqlalchemy.db1.convert_unicode = true
396 sqlalchemy.db1.convert_unicode = true
1 NO CONTENT: file was removed
NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now