Skip to content

Commit 99ddf47

Browse files
committed
extend Config provider tests using Provider::ExtendedConfig
1 parent dbfdb74 commit 99ddf47

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

t/lib/environments/provider-config.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ plugins:
22
Auth::Extensible:
33
realms:
44
config1:
5-
provider: Config
5+
provider: Provider::ConfigExtended
66
users:
77
- user: dave
88
pass: beer
@@ -15,16 +15,22 @@ plugins:
1515
name: "Bob Smith"
1616
roles:
1717
- CiderDrinker
18+
- user: mark
19+
pass: wantscider
20+
name: "Update here"
1821
config2:
19-
provider: Config
22+
provider: Provider::ConfigExtended
2023
priority: 10
2124
users:
2225
- user: burt
2326
pass: bacharach
2427
- user: hashedpassword
2528
pass: "{SSHA}+2u1HpOU7ak6iBR6JlpICpAUvSpA/zBM"
29+
- user: mark
30+
pass: wantscider
31+
name: "Update here"
2632
config3:
27-
provider: Config
33+
provider: Provider::ConfigExtended
2834
priority: 2
2935
users:
3036
- user: bananarepublic

t/plugin-provider-config.t

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ use warnings;
33

44
use Test::More;
55
use Dancer2::Plugin::Auth::Extensible::Test;
6+
use lib 't/lib';
67

78
BEGIN {
89
$ENV{DANCER_CONFDIR} = 't/lib';
@@ -18,6 +19,6 @@ BEGIN {
1819
my $app = Dancer2->runner->psgi_app;
1920
is( ref $app, 'CODE', 'Got app' );
2021

21-
Dancer2::Plugin::Auth::Extensible::Test::testme($app, 'base');
22+
Dancer2::Plugin::Auth::Extensible::Test::testme($app, 'create_user', 'update_user');
2223

2324
done_testing;

0 commit comments

Comments
 (0)