Commit 91e3f413 authored by Christophe Maudoux's avatar Christophe Maudoux 🐛

Improve unit test (#1968)

parent ee6d67e4
Pipeline #6701 passed with stage
in 14 minutes and 19 seconds
......@@ -38,8 +38,8 @@ foreach my $i ( 0 .. 1 ) {
}
ok(
@{ $resBody->{details}->{__changes__} } == 23,
'JSON response contains 22 changes'
@{ $resBody->{details}->{__changes__} } == 24,
'JSON response contains 24 changes'
) or print STDERR Dumper($resBody);
#print STDERR Dumper($resBody);
......@@ -91,8 +91,8 @@ ok( ( @c1 = sort keys %{ $res->[0] } ), 'diff() detects changes in conf 1' );
ok( ( @c2 = sort keys %{ $res->[1] } ), 'diff() detects changes in conf 2' );
ok( @c1 == 11, '11 keys changed in conf 1' )
or print STDERR "Expect: 11 keys, get: " . join( ', ', @c1 ) . "\n";
ok( @c2 == 14, '14 keys changed or created in conf 2' )
or print STDERR "Expect: 14 keys, get: " . join( ',', @c2 ) . "\n";
ok( @c2 == 15, '15 keys changed or created in conf 2' )
or print STDERR "Expect: 15 keys, get: " . join( ',', @c2 ) . "\n";
count(5);
......@@ -232,6 +232,11 @@ sub changes {
{
'confCompacted' => '1',
'removedKeys' => 'some; keys'
}
},
{
'key' => 'cookieExpiration',
'old' => undef,
'new' => '10'
},
];
}
......@@ -1209,7 +1209,9 @@
"data": 1
}, {
"id": "cookieExpiration",
"title": "cookieExpiration"
"title": "cookieExpiration",
"type": "int",
"data": "a"
}]
}, {
"id": "sessionParams",
......
......@@ -22,6 +22,9 @@ useRedirectOnError = 0
[manager]
skippedUnitTests = cookieExpiration
skippedGlobalTests = cookieTTL
protection = manager
staticPrefix = app/
languages = fr, en, vi, ar
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment