forked from TestLinkOpenSourceTRMS/testlink-code
-
Notifications
You must be signed in to change notification settings - Fork 0
/
custom_config.inc.php.example
282 lines (257 loc) · 11.9 KB
/
custom_config.inc.php.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
<?php
/**
* TestLink Open Source Project - http://testlink.sourceforge.net/
* This script is distributed under the GNU General Public License 2 or later.
*
* @filesource custom_config.inc.php.example
* @author franciscom
*
* SCOPE:
* Constants and configuration parameters used throughout TestLink DEFINED BY USERS.
*
* Use this file to overwrite configuration parameters (variables and defines)
* present in:
* config.inc.php
* cfg/const.inc.php
*-----------------------------------------------------------------------------
*/
// *******************************************************************************
// *******************************************************************************
// Hint: After doing configuration changes, clean you Browser's cookies and cache
//
// use contents of this file as an example of custom configuration
//
// *******************************************************************************
//
// @20160924
// http://www.forumsys.com/en/tutorials/integration-how-to/ldap/online-ldap-test-server/
//
// This configuration has been created to solve:
// http://itsecuritysolutions.org/2012-08-13-TestLink-1.9.3-multiple-vulnerabilities/
// Give a look to:
// http://mantis.testlink.org/view.php?id=5147
// http://mantis.testlink.org/view.php?id=5148
// http://mantis.testlink.org/view.php?id=4977
// http://mantis.testlink.org/view.php?id=4906
//
// You need to be certain that these folders have correct permissions in order
// to allow the user/daemon used to run the webserver service/daemon read/write access.
//
// $tlCfg->log_path = '/var/testlink-ga-testlink-code/logs/'; /* unix example */
// $g_repositoryPath = '/var/testlink-ga-testlink-code/upload_area/'; /* unix example */
//
//
// ********************************************************************************************
// Uncomment this if you want:
// 1. dBug() display info
// 2. debug_print_backtrace() on database.class.php
// instead of debug_print_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS)
// define('DBUG_ON',1);
//
// ********************************************************************************************
//
// Example of Logger config
// After this config:
// $tlCfg->loggerFilter = array('DEBUG','AUDIT','WARNING','ERROR');
//
// This will be written to TL event viewer
// tLog("SOAP Fault: (code: {$f->faultcode}, string: {$f->faultstring})","DEBUG");
//
//
// To use a different version of ADODB that provided with TL, use a similar bunch of lines
// on custom_config.inc.php
// if( !defined('TL_ADODB_RELATIVE_PATH') )
// {
// define('TL_ADODB_RELATIVE_PATH','/../../third_party/[WHERE YOU HAVE INSTALLED adodb YOU WANT TO TEST]/adodb.inc.php' );
// }
//
// /** in this way you can switch ext js version in easy way,
// To use a different version of Sencha (Old EXT-JS) that provided with TL */
// if( !defined('TL_EXTJS_RELATIVE_PATH') )
// {
// define('TL_EXTJS_RELATIVE_PATH','third_party/ext-js' );
// }
// *******************************************************************************
// If you want you have a different login template
// key: original TL template name WITHOUT extension
// value: whatever name you want, only constrain you have to copy your template
// ON SAME FOLDER where original template is.
//
// $g_tpl = array('login' => 'customLogin.tpl');
//
// *******************************************************************************
//
/**
* OAUTH auth
* Configure this on custom_config.inc.php
*/
// Google
// $tlCfg->authentication['oauth'] = array();
// $tlCfg->authentication['oauth'][1]['oauth_enabled'] = true;
// $tlCfg->authentication['oauth'][1]['oauth_name'] = 'google';
// Get from /gui/themes/default/images
// $tlCfg->authentication['oauth'][1]['oauth_icon'] = 'google.png';
// $tlCfg->authentication['oauth'][1]['oauth_client_id'] = 'CLIENT_ID';
// $tlCfg->authentication['oauth'][1]['oauth_client_secret'] = 'CLIENT_SECRET';
// Can be authorization_code (by default), client_credentials or password
// $tlCfg->authentication['oauth'][1]['oauth_grant_type'] = 'authorization_code';
// $tlCfg->authentication['oauth'][1]['oauth_url'] = 'https://accounts.google.com/o/oauth2/auth';
// $tlCfg->authentication['oauth'][1]['token_url'] = 'https://accounts.google.com/o/oauth2/token';
// false => then the only user will be selected automatically (applied for google)
// $tlCfg->authentication['oauth'][1]['oauth_force_single'] = false;
// the domain you want to whitelist
// $tlCfg->authentication['oauth'][1]['oauth_domain'] = 'google.com';
// $tlCfg->authentication['oauth'][1]['oauth_profile'] = 'https://www.googleapis.com/oauth2/v1/userinfo';
// $tlCfg->authentication['oauth'][1]['oauth_scope'] = 'https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile';
// Github
// $tlCfg->authentication['oauth'][2]['oauth_enabled'] = true;
// $tlCfg->authentication['oauth'][2]['oauth_name'] = 'github';
// $tlCfg->authentication['oauth'][2]['oauth_icon'] = 'github.png'; //Get from /gui/themes/default/images
// $tlCfg->authentication['oauth'][2]['oauth_client_id'] = 'CLIENT_ID';
// $tlCfg->authentication['oauth'][2]['oauth_client_secret'] = 'CLIENT_SECRET';
// Can be authorization_code (by default), client_credentials or password
// $tlCfg->authentication['oauth'][2]['oauth_grant_type'] = 'authorization_code';
// $tlCfg->authentication['oauth'][2]['oauth_url'] = 'https://github.com/login/oauth/authorize';
// $tlCfg->authentication['oauth'][2]['token_url'] = 'https://github.com/login/oauth/access_token';
// false => then the only user will be selected automatically (applied for google)
// $tlCfg->authentication['oauth'][2]['oauth_force_single'] = false;
// $tlCfg->authentication['oauth'][2]['oauth_profile'] = 'https://api.github.com/user';
// $tlCfg->authentication['oauth'][2]['oauth_scope'] = 'user:email';
// If you create your OWN reports and add something like this:
//
// ------------------------------------------------------------
// $tlCfg->reports_list['tcases_with_rca'] = array(
// 'title' => 'link_report_tcases_with_cf',
// 'url' => 'lib/results/testCasesWithCF.php',
// 'enabled' => 'all',
// 'format' => 'format_html'
// );
// -----------------------------------------------------------
// Your reports WILL BE ON TOP OF standard TL Reports on left frame
//
//
// $tlCfg->gui->text_editor['all'] = array( 'type' => 'ckeditor',
// 'toolbar' => 'tl_default',
// 'configFile' => 'cfg/tl_ckeditor_config.js');
//
// Copy this to custom_config.inc.php if you want use 'tinymce' as default.
//$tlCfg->gui->text_editor['all'] = array( 'type' => 'tinymce');
//
// Copy this to custom_config.inc.php if you want use 'nome' as default.
// $tlCfg->gui->text_editor['all'] = array( 'type' => 'none');
//
// Suggested for BETTER Performance with lot of testcases
//$tlCfg->gui->text_editor['execution'] = array( 'type' => 'none');
//
// Enable and configure this if you want to have different
// webeditor type in different TL areas
// You can not define new areas without making changes to php code
//
// $tlCfg->gui->text_editor['execution'] = array( 'type' => 'none'); // BETTER Performance with lot of testcases
//
// This configuration is useful only if default type is set to 'fckeditor'
// $tlCfg->gui->text_editor['design'] = array('toolbar' => 'tl_mini');
//
// $tlCfg->gui->text_editor['testplan'] = array( 'type' => 'none');
// $tlCfg->gui->text_editor['build'] = array( 'type' => 'fckeditor','toolbar' => 'tl_mini');
// $tlCfg->gui->text_editor['testproject'] = array( 'type' => 'tinymce');
// $tlCfg->gui->text_editor['role'] = array( 'type' => 'tinymce');
// $tlCfg->gui->text_editor['requirement'] = array( 'type' => 'none');
// $tlCfg->gui->text_editor['requirement_spec'] = array( 'type' => 'none');
//
//
// SMTP server Configuration ("localhost" is enough in the most cases)
//$g_smtp_host = 'localhost'; # SMTP server MUST BE configured
# Configure using custom_config.inc.php
//$g_tl_admin_email = '[email protected]'; # for problem/error notification
//$g_from_email = '[email protected]'; # email sender
//$g_return_path_email = '[email protected]';
# Urgent = 1, Not Urgent = 5, Disable = 0
// $g_mail_priority = 5;
# Taken from mantis for phpmailer config
#define ("SMTP_SEND",2);
#$g_phpMailer_method = SMTP_SEND;
// Configure only if SMTP server requires authentication
//$g_smtp_username = ''; # user
//$g_smtp_password = ''; # password
//
// TRUE -> the whole execution history for the choosen build will be showed
// FALSE -> just last execution for the choosen build will be showed [STANDARD BEHAVIOUR]
//$tlCfg->exec_cfg->history_on = TRUE;
//$tlCfg->exec_cfg->show_testsuite_contents = ENABLED;
// TRUE -> test case VERY LAST (i.e. in any build) execution status will be displayed
// FALSE -> only last result on current build. [STANDARD BEHAVIOUR]
//$tlCfg->exec_cfg->show_last_exec_any_build = TRUE;
// TRUE -> History for all builds will be shown
// FALSE -> Only history of the current build will be shown [STANDARD BEHAVIOUR]
//$tlCfg->exec_cfg->show_history_all_builds = TRUE;
// $tlCfg->gui->custom_fields->types = array(100 => 'radio head');
// $tlCfg->gui->custom_fields->possible_values_cfg = array('radio head' => 1);
//$g_log_level='DEBUG';
/** Define your own test status(es) by modifying
* - $tlCfg->results['status_code'] (in this file)
* - $tlCfg->results['status_label'] (in this file)
* - $tlCfg->results['status_label_for_exec_ui'] (in this file)
* - $tlCfg->results['charts']['status_colour'] (in this file)
* - /locale/<your_language>/custom_strings.txt (see custom_strings.txt.example)
* - /gui/themes/default/css/custom.css (see custom.css.example)
*/
// This Example shows how to add the status 'my_status'
//$tlCfg->results['status_code'] = array (
// 'failed' => 'f',
// 'blocked' => 'b',
// 'passed' => 'p',
// 'not_run' => 'n',
// 'not_available' => 'x',
// 'unknown' => 'u',
// 'all' => 'a',
// 'my_status' => 'm'
//);
//
//// For localization example see /locale/<your_language>/custom_strings.txt.example
//$tlCfg->results['status_label'] = array(
// 'not_run' => 'test_status_not_run',
// 'passed' => 'test_status_passed',
// 'failed' => 'test_status_failed',
// 'blocked' => 'test_status_blocked',
// 'my_status' => 'test_status_my_status'
//// 'all' => 'test_status_all_status',
//// 'not_available' => 'test_status_not_available',
//// 'unknown' => 'test_status_unknown'
//);
//
//$tlCfg->results['status_label_for_exec_ui'] = array(
// 'not_run' => 'test_status_not_run',
// 'passed' => 'test_status_passed',
// 'failed' => 'test_status_failed',
// 'blocked' => 'test_status_blocked',
// 'my_status' => 'test_status_my_status'
//);
//
//$tlCfg->results['default_status'] = 'not_run';
//
//$tlCfg->results['charts']['status_colour'] = array(
// 'not_run' => '000000',
// 'passed' => '006400',
// 'failed' => 'B22222',
// 'blocked' => '00008B',
// 'my_status' => 'FF8C11'
//);
//
// -------------------------------------------------------------------------------------------------
// Item templates
//
// $tlCfg->testplan_template->notes->type = 'string';
// $tlCfg->testplan_template->notes->value = 'this is a test plan';
//
// $tlCfg->build_template->notes->type = 'string';
// $tlCfg->build_template->notes->value = 'what a build';
// $tlCfg->requirement_template->scope->type = 'string';
// $tlCfg->requirement_template->scope->value = 'what a Requirement';
// $tlCfg->requirement_template->scope->type = 'file';
// $tlCfg->requirement_template->scope->value = 'c:\usr\local\xampp-1.7.2\xampp\htdocs\head-20090909\item_templates\requirement.txt';
// $tlCfg->req_spec_template->scope->type = 'string';
// $tlCfg->req_spec_template->scope->value = 'what a req_spec';
// $tlCfg->req_spec_template->scope->type = 'file';
// $tlCfg->req_spec_template->scope->value = 'c:\usr\local\xampp-1.7.2\xampp\htdocs\head-20090909\item_templates\req_spec.txt';
?>