Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
best-practical
rt-authen-externalauth
Commits
9c058f96
Commit
9c058f96
authored
Jun 06, 2012
by
Ruslan Zakirov
Browse files
make test pass
parent
56f4748a
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
7 additions
and
21 deletions
+7
-21
xt/ldap/basics.t
xt/ldap/basics.t
+1
-1
xt/ldap/privileged.t
xt/ldap/privileged.t
+1
-1
xt/ldap/user-create.t
xt/ldap/user-create.t
+1
-1
xt/ldap_escaping.t
xt/ldap_escaping.t
+1
-8
xt/ldap_group.t
xt/ldap_group.t
+1
-8
xt/obfuscate-password.t
xt/obfuscate-password.t
+1
-1
xt/sqlite.t
xt/sqlite.t
+1
-1
No files found.
xt/ldap/basics.t
View file @
9c058f96
use
strict
;
use
strict
;
use
warnings
;
use
warnings
;
use
RT::Authen::ExternalAuth::
Test
ldap
=>
1
,
tests
=>
1
6
;
use
RT::Authen::ExternalAuth::
Test
ldap
=>
1
,
tests
=>
1
8
;
my
$class
=
'
RT::Authen::ExternalAuth::Test
';
my
$class
=
'
RT::Authen::ExternalAuth::Test
';
my
(
$server
,
$client
)
=
$class
->
bootstrap_ldap_basics
;
my
(
$server
,
$client
)
=
$class
->
bootstrap_ldap_basics
;
...
...
xt/ldap/privileged.t
View file @
9c058f96
use
strict
;
use
strict
;
use
warnings
;
use
warnings
;
use
RT::Authen::ExternalAuth::
Test
ldap
=>
1
,
tests
=>
1
3
;
use
RT::Authen::ExternalAuth::
Test
ldap
=>
1
,
tests
=>
1
5
;
my
$class
=
'
RT::Authen::ExternalAuth::Test
';
my
$class
=
'
RT::Authen::ExternalAuth::Test
';
...
...
xt/ldap/user-create.t
View file @
9c058f96
use
strict
;
use
strict
;
use
warnings
;
use
warnings
;
use
RT::Authen::ExternalAuth::
Test
ldap
=>
1
,
tests
=>
18
;
use
RT::Authen::ExternalAuth::
Test
ldap
=>
1
,
tests
=>
20
;
my
$class
=
'
RT::Authen::ExternalAuth::Test
';
my
$class
=
'
RT::Authen::ExternalAuth::Test
';
my
(
$server
,
$client
)
=
$class
->
bootstrap_ldap_basics
;
my
(
$server
,
$client
)
=
$class
->
bootstrap_ldap_basics
;
...
...
xt/ldap_escaping.t
View file @
9c058f96
use
strict
;
use
strict
;
use
warnings
;
use
warnings
;
use
RT::
Test
tests
=>
undef
,
testing
=>
'
RT::Authen::ExternalAuth
';
use
RT::Authen::ExternalAuth::
Test
tests
=>
undef
,
ldap
=>
1
;
use
Net::
LDAP
;
use
RT::Authen::
ExternalAuth
;
eval
{
require
Net::LDAP::Server::
Test
;
1
;
}
or
do
{
plan
skip_all
=>
'
Unable to test without Net::Server::LDAP::Test
';
};
my
$ldap_port
=
1024
+
int
rand
(
10000
)
+
$$
%
1024
;
my
$ldap_port
=
1024
+
int
rand
(
10000
)
+
$$
%
1024
;
ok
(
my
$server
=
Net::LDAP::Server::
Test
->
new
(
$ldap_port
,
auto_schema
=>
1
),
ok
(
my
$server
=
Net::LDAP::Server::
Test
->
new
(
$ldap_port
,
auto_schema
=>
1
),
...
...
xt/ldap_group.t
View file @
9c058f96
...
@@ -6,14 +6,7 @@ BEGIN {
...
@@ -6,14 +6,7 @@ BEGIN {
$ENV
{
RT_TEST_WEB_HANDLER
}
=
'
inline
';
$ENV
{
RT_TEST_WEB_HANDLER
}
=
'
inline
';
}
}
use
RT::
Test
tests
=>
undef
,
testing
=>
'
RT::Authen::ExternalAuth
';
use
RT::Authen::ExternalAuth::
Test
tests
=>
undef
,
ldap
=>
1
;
use
Net::
LDAP
;
use
RT::Authen::
ExternalAuth
;
eval
{
require
Net::LDAP::Server::
Test
;
1
;
}
or
do
{
plan
skip_all
=>
'
Unable to test without Net::Server::LDAP::Test
';
};
my
$ldap_port
=
1024
+
int
rand
(
10000
)
+
$$
%
1024
;
my
$ldap_port
=
1024
+
int
rand
(
10000
)
+
$$
%
1024
;
ok
(
my
$server
=
Net::LDAP::Server::
Test
->
new
(
$ldap_port
,
auto_schema
=>
1
),
ok
(
my
$server
=
Net::LDAP::Server::
Test
->
new
(
$ldap_port
,
auto_schema
=>
1
),
...
...
xt/obfuscate-password.t
View file @
9c058f96
use
strict
;
use
strict
;
use
warnings
;
use
warnings
;
use
RT::
Test
testing
=>
'
RT::Authen::ExternalAuth
'
;
use
RT::Authen::ExternalAuth
::
Test
;
RT
->
Config
->
Set
(
RT
->
Config
->
Set
(
ExternalSettings
=>
{
ExternalSettings
=>
{
...
...
xt/sqlite.t
View file @
9c058f96
use
strict
;
use
strict
;
use
warnings
;
use
warnings
;
use
RT::
Test
testing
=>
'
RT::Authen::ExternalAuth
'
;
use
RT::Authen::ExternalAuth
::
Test
;
use
DBI
;
use
DBI
;
use
File::
Temp
;
use
File::
Temp
;
use
Digest::
MD5
;
use
Digest::
MD5
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment