Fix & improve units test (#1603)

environments/ppa-mbqj77/deployments/621
Christophe Maudoux 6 years ago
parent 1a3e803240
commit b674769a37
  1. 4
      lemonldap-ng-manager/t/11-save-changed-conf-with-confirmation.t
  2. 12
      lemonldap-ng-manager/t/12-save-changed-conf.t

@ -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;

@ -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};

Loading…
Cancel
Save