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