Maxime Besson
5a47d7e9bc
Correctly report the calling location in test functions
...
With this change, failure in a test lib function (expectForm,
expectJWT...) will be reported at the calling location in the original
*.t test file, instead of being reported in the test lib
t/30-SAML-ReAuth-with-choice.t .. 1/?
# Failed test ' URI match'
>>> # at t/30-SAML-ReAuth-with-choice.t line 72.
2022-07-12 16:14:56 +02:00
Maxime Besson
9da6310037
Add method in test lib to check session attributes
2022-05-02 17:36:22 +02:00
Yadd
b88a72c267
tidy
2022-02-16 17:43:29 +01:00
Maxime Besson
38157dabd5
unit test for hidden history fields ( #2609 )
2022-01-05 17:14:02 +01:00
Christophe Maudoux
b66798d159
Test cookieName & Improve code + unit test ( #2600 )
2021-09-09 14:28:06 +02:00
Maxime Besson
cf59bb915e
refactor expectAuthenticatedAs
2021-06-15 12:40:15 +02:00
Maxime Besson
3b76479bda
Add expectPdata function to test lib
2021-06-02 11:07:53 +02:00
Maxime Besson
d4aed0b332
Tidy test lib
2021-06-02 11:07:28 +02:00
Maxime Besson
16557f3965
Refactor child-src unit tests ( #2513 )
2021-04-23 09:02:24 +02:00
Maxime Besson
6a3479ea3c
unit tests: Try to find templateDir in path
...
This change makes running the testsuite from an external directory
easier. Which is useful if you want to unit test a custom module
2021-03-08 18:45:13 +01:00
Christophe Maudoux
b46259cae9
Enable upgradeSession only if required & Append unit test ( #2480 )
2021-03-02 19:20:15 +01:00
Christophe Maudoux
e477a1cef8
Append unit test & Doc ( #2458 )
2021-02-15 11:40:46 +01:00
Christophe Maudoux
23e52fcec2
Append Demo UserDB unit test & Fix code ( #1976 )
2020-12-26 14:30:38 +01:00
Maxime Besson
4ceb75c970
Add urlencode helper to test lib
2020-11-16 18:38:53 +01:00
Maxime Besson
ad4a79e9de
Add http/https option to test lib
2020-11-16 18:38:53 +01:00
Maxime Besson
c8248e1dd3
Add groups for test suite users
2020-11-11 13:39:04 +01:00
Maxime Besson
9463278b2d
Fix doc in test-lib
2020-11-05 10:38:47 +01:00
Maxime Besson
1a92304bcd
Fallback to sha1 saml signatures on old test env ( #2341 )
2020-10-07 19:14:34 +02:00
Christophe Maudoux
192861d639
Improve unit tests ( #2275 )
2020-08-16 12:11:31 +02:00
Maxime Besson
bfdf56cfff
Extract buildForm method from test lib
2020-04-23 17:49:25 +02:00
Maxime Besson
2d2275d929
Add portal error checker function to test lib
2020-04-23 14:50:53 +02:00
Maxime Besson
42ba7d6111
Improve SingleSession unit test ( #2159 )
2020-04-21 10:19:09 +02:00
Xavier Guimard
4459a47f76
Tidy
2020-02-20 23:37:05 +01:00
Maxime Besson
7d1f35f6df
Refactor switch() in portal tests
2020-02-05 19:20:39 +01:00
Xavier Bachelot
23b8756f2b
Unbundle Time::Fake
2020-02-03 09:36:51 +01:00
Maxime Besson
84c158f02d
Isolate unit test configuration ( #2048 )
2020-01-07 19:08:06 +01:00
Clément OUDOT
ace32efe4a
Change defaut value for cspFormAction ( #2024 )
2019-12-20 16:07:52 +01:00
Maxime Besson
983a4e6485
Use Time::Fake to avoid sleeping during tests
2019-11-04 18:11:32 +01:00
Xavier
93500b85de
Update test lib to override host if needed
2019-10-29 20:59:36 +01:00
Maxime Besson
30a16ada2d
new expectJSON function in test-lib
2019-10-25 18:06:32 +02:00
Maxime Besson
e281ad7cc3
Add support for CORS preflight ( #1765 )
2019-09-16 16:55:15 +02:00
Xavier
a04bbf15b7
Add timeout for configuration load ( #1908 )
2019-09-02 23:01:09 +02:00
Maxime Besson
c961467d41
tests: make expectReject more flexible
2019-08-29 18:51:23 +02:00
Xavier Guimard
aeff014f79
Parallel tests
2019-08-29 10:48:55 +02:00
Christophe Maudoux
05cb1e1c91
Revert test-lib ( #1851 )
2019-07-22 15:39:04 +02:00
Christophe Maudoux
81aa2fb37b
Improve test-lib & unit test ( #1851 )
2019-07-21 23:23:20 +02:00
Christophe Maudoux
34039ef7ef
Improve test-lib & unit test ( #1851 )
2019-07-21 21:56:09 +02:00
Christophe Maudoux
6b7748ca40
Improve unit test ( #1774 )
2019-05-30 23:59:47 +02:00
Christophe Maudoux
dbb2aa093e
Append double cookies unit tests ( #1749 )
2019-05-19 21:52:46 +02:00
Xavier Guimard
ece9b21219
Remove trailing whitespaces
2019-04-03 14:15:16 +02:00
Xavier Guimard
759c93b595
Full test for #1639
2019-02-09 20:53:24 +01:00
Xavier Guimard
c7b4eb5051
tidy with new conf
2019-02-07 09:27:56 +01:00
Xavier Guimard
6aee861c4d
spelling errors
2018-11-26 14:41:48 +01:00
Xavier Guimard
642e98e180
Fix some missing "lazy" ( #1545 )
2018-11-16 17:30:57 +01:00
Clément OUDOT
c5f9a7f95b
make tidy
2018-10-12 10:04:03 +02:00
Christophe Maudoux
5a832b57a7
Remove unuseful Perl version directive
2018-10-05 21:36:13 +02:00
Xavier Guimard
739082083f
Add test framework doc
2018-09-06 11:23:49 +02:00
Xavier Guimard
62d5c7836c
make tidy
2018-09-02 17:31:58 +02:00
Xavier Guimard
f7144908e9
Fix CDC ( #1477 )
2018-08-02 22:00:41 +02:00
Xavier Guimard
d1ee05540e
#1477 in progress
2018-07-19 08:38:51 +02:00