Commit 49f63913 authored by Christophe Maudoux's avatar Christophe Maudoux

tidy (#1561)

parent 61e880f9
Pipeline #3600 passed with stages
in 7 minutes and 28 seconds
......@@ -26,14 +26,15 @@ ok( $resBody = from_json( $res->[2]->[0] ),
"Result body contains JSON text" );
ok( $resBody->{result} == 1, "JSON response contains \"result:1\"" )
or print STDERR Dumper($resBody);
ok( @{ $resBody->{details}->{'__warnings__'} } == 2,
'JSON response contains 2 warnings' )
or print STDERR Dumper($resBody);
ok( $resBody->{details}->{'__warnings__'}->[0]->{message}
ok( $resBody->{details}->{__warnings__}
and @{ $resBody->{details}->{__warnings__} } == 2,
'JSON response contains 2 warnings'
) 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}
ok( $resBody->{details}->{__warnings__}->[1]->{message}
=~ /\b(unprotected|cross-domain-authentication)\b/,
"Warning with 'unprotect' or 'CDA' found"
) or print STDERR Dumper($resBody);
......
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