Fix & improve units test (#1603)

This commit is contained in:
Christophe Maudoux 2018-12-29 19:10:37 +01:00
parent 1a3e803240
commit b674769a37
2 changed files with 2 additions and 14 deletions

View File

@ -41,7 +41,7 @@ foreach my $i (0 .. 2) {
"Warning with 'unprotect', 'CDA' or 'retries' found"
) or print STDERR Dumper($resBody);
}
count(4);
ok( @{ $resBody->{details}->{__needConfirmation__} } == 1,
'JSON response contains 1 needConfirmation'
) or print STDERR Dumper($resBody);
@ -60,7 +60,7 @@ ok( $res = &client->_post( '/confs/', 'cfgNum=1&force=1', &body, 'application/js
);
ok( -f $confFiles->[1], 'File is created' );
count(3);
count(5);
my @changes = @{&changes};
my @cmsg = @{ $resBody->{details}->{__changes__} };
my $bug;

View File

@ -37,18 +37,6 @@ foreach my $i (0 .. 1) {
) or print STDERR Dumper($resBody);
}
# ok( $resBody->{details}->{__warnings__}->[0]->{message}
# =~ /\b(unprotected|cross-domain-authentication)\b/,
# "Warning with 'unprotect' or 'CDA' found"
# ) or print STDERR Dumper($resBody);
# ok( $resBody->{details}->{__warnings__}->[1]->{message}
# =~ /\b(unprotected|cross-domain-authentication)\b/,
# "Warning with 'unprotect' or 'CDA' found"
# ) or print STDERR Dumper($resBody);
ok( -f $confFiles->[1], 'File is created' );
count(3);
my @changes = @{&changes};