You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by Jan Lehnardt <ja...@apache.org> on 2014/04/14 15:54:57 UTC
[builds] master is failing in 231-cors.t
make distcheck:
../test/etap/231-cors.t ............................
Failed 3/28 subtests
Re: [builds] master is failing in 231-cors.t
Posted by Jan Lehnardt <ja...@apache.org>.
fixed, thanks Alexander!
On 14 Apr 2014, at 17:15 , Ryan Ramage <ry...@gmail.com> wrote:
> yes, for some reason the actual test is not called in test(). Not a very
> useful test ;)
>
> I believe it should be called after around line 89, after
> test_doc_with_attachment_range_request()
>
> I can put in a PR.
>
>
>
>
> On Mon, Apr 14, 2014 at 8:15 AM, Jan Lehnardt <ja...@apache.org> wrote:
>
>>
>> On 14 Apr 2014, at 16:06 , Jan Lehnardt <ja...@apache.org> wrote:
>>
>>> test/etap/231-cors.t:257: Warning: function test_if_none_match_header/0
>> is unused
>>
>> This one is curious too. Ryan?
>>
>>> git blame test/etap/231-cors.t | grep if_none_match
>> 02357223 (Ryan Ramage 2013-03-13 15:04:34 -0600 257)
>> test_if_none_match_header() ->
>>
>>
>>
Re: [builds] master is failing in 231-cors.t
Posted by Ryan Ramage <ry...@gmail.com>.
yes, for some reason the actual test is not called in test(). Not a very
useful test ;)
I believe it should be called after around line 89, after
test_doc_with_attachment_range_request()
I can put in a PR.
On Mon, Apr 14, 2014 at 8:15 AM, Jan Lehnardt <ja...@apache.org> wrote:
>
> On 14 Apr 2014, at 16:06 , Jan Lehnardt <ja...@apache.org> wrote:
>
> > test/etap/231-cors.t:257: Warning: function test_if_none_match_header/0
> is unused
>
> This one is curious too. Ryan?
>
> > git blame test/etap/231-cors.t | grep if_none_match
> 02357223 (Ryan Ramage 2013-03-13 15:04:34 -0600 257)
> test_if_none_match_header() ->
>
>
>
Re: [builds] master is failing in 231-cors.t
Posted by Jan Lehnardt <ja...@apache.org>.
On 14 Apr 2014, at 16:06 , Jan Lehnardt <ja...@apache.org> wrote:
> test/etap/231-cors.t:257: Warning: function test_if_none_match_header/0 is unused
This one is curious too. Ryan?
> git blame test/etap/231-cors.t | grep if_none_match
02357223 (Ryan Ramage 2013-03-13 15:04:34 -0600 257) test_if_none_match_header() ->
Re: [builds] master is failing in 231-cors.t
Posted by Benoit Chesneau <bc...@gmail.com>.
On Mon, Apr 14, 2014 at 4:06 PM, Jan Lehnardt <ja...@apache.org> wrote:
>
>
> @@ -26,7 +26,7 @@
> fi
>
> if test -f $TGT; then
> - prove $OPTS $TGT
> + prove -v $OPTS $TGT
> else
> prove $OPTS $TGT/*.t
> fi
>
>
> > ./test/etap/run test/etap/231-cors.t
> test/etap/231-cors.t ..
> test/etap/231-cors.t:257: Warning: function test_if_none_match_header/0 is
> unused
> test/etap/231-cors.t:432: Warning: variable 'Else' is unused
> # Current time local 2014-04-14 16:04:37
> # Using etap version "0.3.4"
> 1..28
> Apache CouchDB 0.0.0 (LogLevel=info) is starting.
>
> =INFO REPORT==== 14-Apr-2014::16:04:37 ===
> application: ibrowse
> exited: {shutdown,{ibrowse_app,start,[normal,[]]}}
> type: temporary
> Apache CouchDB has started. Time to relax.
> [info] [<0.2.0>] Apache CouchDB has started on http://127.0.0.1:64397/
> [info] [<0.94.0>] 127.0.0.1 - - GET / 200
> ok 1 - No CORS Headers when disabled
> [info] [<0.95.0>] 127.0.0.1 - - GET /etap-test-db 200
> ok 2 - No CORS Headers when disabled
> [info] [<0.96.0>] 127.0.0.1 - - GET / 200
> ok 3 - Specified invalid origin, no Access
> [info] [<0.97.0>] 127.0.0.1 - - OPTIONS / 405
> ok 4 - invalid origin
> [info] [<0.98.0>] 127.0.0.1 - - OPTIONS / 204
> ok 5 - test_preflight_request Access-Control-Allow-Methods ok
> [info] [<0.99.0>] 127.0.0.1 - - GET /etap-test-db 200
> ok 6 - db Access-Control-Allow-Origin ok
> ok 7 - db Access-Control-Expose-Headers ok
> [info] [<0.100.0>] 127.0.0.1 - - PUT /etap-test-db/doc1/attachment.txt 201
> [info] [<0.101.0>] 127.0.0.1 - - GET /etap-test-db/doc1?attachments=true
> 200
> ok 8 - Response without errors
> [info] [<0.102.0>] 127.0.0.1 - - PUT /etap-test-db/doc2/attachment.bin 201
> [info] [<0.103.0>] 127.0.0.1 - - GET /etap-test-db/doc2/attachment.bin 206
> ok 9 - Response without errors
> [info] [<0.94.0>] 127.0.0.1 - - OPTIONS /etap-test-db 204
> ok 10 - db Access-Control-Allow-Methods ok
> [info] [<0.94.0>] 127.0.0.1 - - GET /etap-test-db1 200
> ok 11 - db origin ok
> [info] [<0.94.0>] 127.0.0.1 - - OPTIONS / 405
> ok 12 - check non defined host:port in origin ok
> [info] [<0.94.0>] 127.0.0.1 - - OPTIONS / 405
> ok 13 - check non defined scheme in origin ok
> [info] [<0.94.0>] 127.0.0.1 - - OPTIONS / 204
> ok 14 - check host:port in origin ok
> [info] [<0.94.0>] 127.0.0.1 - - OPTIONS / 204
> ok 15 - check scheme in origin ok
> [info] [<0.94.0>] 127.0.0.1 - - OPTIONS / 204
> ok 16 - db origin ok
> [info] [<0.94.0>] 127.0.0.1 - - GET /etap-test-db 200
> ok 17 - db access config case mismatch
> [info] [<0.94.0>] 127.0.0.1 - - GET /etap-test-db 200
> ok 18 - db Access-Control-Allow-Credentials off
> [info] [<0.94.0>] 127.0.0.1 - - GET /etap-test-db 200
> ok 19 - db Access-Control-Allow-Credentials ok
> [info] [<0.94.0>] 127.0.0.1 - - OPTIONS / 204
> ok 20 - test_preflight_request Access-Control-Allow-Methods ok
> [info] [<0.94.0>] 127.0.0.1 - - GET /etap-test-db 200
> ok 21 - db Access-Control-Allow-Origin ok
> ok 22 - db Access-Control-Expose-Headers ok
> [info] [<0.94.0>] 127.0.0.1 - - OPTIONS /etap-test-db 204
> ok 23 - db Access-Control-Allow-Methods ok
> [info] [<0.94.0>] 127.0.0.1 - - GET /etap-test-db1 200
> ok 24 - db origin ok
> [info] [<0.94.0>] 127.0.0.1 - - OPTIONS / 405
> ok 25 - check non defined host:port in origin ok
> [info] [<0.94.0>] 127.0.0.1 - - OPTIONS / 405
> ok 26 - check non defined scheme in origin ok
> # Test died abnormally: {'EXIT',
> {function_clause,
>
> [{couch_passwords,hash_admin_password,["test"]},
>
probably caused by the latest commit in the password handling.
Re: [builds] master is failing in 231-cors.t
Posted by Jan Lehnardt <ja...@apache.org>.
@@ -26,7 +26,7 @@
fi
if test -f $TGT; then
- prove $OPTS $TGT
+ prove -v $OPTS $TGT
else
prove $OPTS $TGT/*.t
fi
> ./test/etap/run test/etap/231-cors.t
test/etap/231-cors.t ..
test/etap/231-cors.t:257: Warning: function test_if_none_match_header/0 is unused
test/etap/231-cors.t:432: Warning: variable 'Else' is unused
# Current time local 2014-04-14 16:04:37
# Using etap version "0.3.4"
1..28
Apache CouchDB 0.0.0 (LogLevel=info) is starting.
=INFO REPORT==== 14-Apr-2014::16:04:37 ===
application: ibrowse
exited: {shutdown,{ibrowse_app,start,[normal,[]]}}
type: temporary
Apache CouchDB has started. Time to relax.
[info] [<0.2.0>] Apache CouchDB has started on http://127.0.0.1:64397/
[info] [<0.94.0>] 127.0.0.1 - - GET / 200
ok 1 - No CORS Headers when disabled
[info] [<0.95.0>] 127.0.0.1 - - GET /etap-test-db 200
ok 2 - No CORS Headers when disabled
[info] [<0.96.0>] 127.0.0.1 - - GET / 200
ok 3 - Specified invalid origin, no Access
[info] [<0.97.0>] 127.0.0.1 - - OPTIONS / 405
ok 4 - invalid origin
[info] [<0.98.0>] 127.0.0.1 - - OPTIONS / 204
ok 5 - test_preflight_request Access-Control-Allow-Methods ok
[info] [<0.99.0>] 127.0.0.1 - - GET /etap-test-db 200
ok 6 - db Access-Control-Allow-Origin ok
ok 7 - db Access-Control-Expose-Headers ok
[info] [<0.100.0>] 127.0.0.1 - - PUT /etap-test-db/doc1/attachment.txt 201
[info] [<0.101.0>] 127.0.0.1 - - GET /etap-test-db/doc1?attachments=true 200
ok 8 - Response without errors
[info] [<0.102.0>] 127.0.0.1 - - PUT /etap-test-db/doc2/attachment.bin 201
[info] [<0.103.0>] 127.0.0.1 - - GET /etap-test-db/doc2/attachment.bin 206
ok 9 - Response without errors
[info] [<0.94.0>] 127.0.0.1 - - OPTIONS /etap-test-db 204
ok 10 - db Access-Control-Allow-Methods ok
[info] [<0.94.0>] 127.0.0.1 - - GET /etap-test-db1 200
ok 11 - db origin ok
[info] [<0.94.0>] 127.0.0.1 - - OPTIONS / 405
ok 12 - check non defined host:port in origin ok
[info] [<0.94.0>] 127.0.0.1 - - OPTIONS / 405
ok 13 - check non defined scheme in origin ok
[info] [<0.94.0>] 127.0.0.1 - - OPTIONS / 204
ok 14 - check host:port in origin ok
[info] [<0.94.0>] 127.0.0.1 - - OPTIONS / 204
ok 15 - check scheme in origin ok
[info] [<0.94.0>] 127.0.0.1 - - OPTIONS / 204
ok 16 - db origin ok
[info] [<0.94.0>] 127.0.0.1 - - GET /etap-test-db 200
ok 17 - db access config case mismatch
[info] [<0.94.0>] 127.0.0.1 - - GET /etap-test-db 200
ok 18 - db Access-Control-Allow-Credentials off
[info] [<0.94.0>] 127.0.0.1 - - GET /etap-test-db 200
ok 19 - db Access-Control-Allow-Credentials ok
[info] [<0.94.0>] 127.0.0.1 - - OPTIONS / 204
ok 20 - test_preflight_request Access-Control-Allow-Methods ok
[info] [<0.94.0>] 127.0.0.1 - - GET /etap-test-db 200
ok 21 - db Access-Control-Allow-Origin ok
ok 22 - db Access-Control-Expose-Headers ok
[info] [<0.94.0>] 127.0.0.1 - - OPTIONS /etap-test-db 204
ok 23 - db Access-Control-Allow-Methods ok
[info] [<0.94.0>] 127.0.0.1 - - GET /etap-test-db1 200
ok 24 - db origin ok
[info] [<0.94.0>] 127.0.0.1 - - OPTIONS / 405
ok 25 - check non defined host:port in origin ok
[info] [<0.94.0>] 127.0.0.1 - - OPTIONS / 405
ok 26 - check non defined scheme in origin ok
# Test died abnormally: {'EXIT',
{function_clause,
[{couch_passwords,hash_admin_password,["test"]},
{erl_eval,do_apply,5},
{erl_eval,expr,5},
{escript,eval_exprs,5},
{erl_eval,local_func,5},
{erl_eval,expr,5},
{escript,eval_exprs,5},
{erl_eval,local_func,5}]}}
[error] [<0.30.0>] {error_report,<0.22.0>,
{<0.30.0>,crash_report,
[[{initial_call,{etap,start_etap_server,[]}},
{pid,<0.30.0>},
{registered_name,etap_server},
{error_info,
{exit,
{badarg,
[{io,format,
[<0.22.0>,"~s~n",
[[66,97,105,108,32,111,117,116,33,32|
{'EXIT',
{function_clause,
[{couch_passwords,hash_admin_password,
["test"]},
{erl_eval,do_apply,5},
{erl_eval,expr,5},
{escript,eval_exprs,5},
{erl_eval,local_func,5},
{erl_eval,expr,5},
{escript,eval_exprs,5},
{erl_eval,local_func,5}]}}]]]},
{etap,test_server,1},
{proc_lib,init_p_do_apply,3}]},
[{io,o_request,3},
{etap,test_server,1},
{proc_lib,init_p_do_apply,3}]}},
{ancestors,[<0.2.0>]},
{messages,[done]},
{links,[]},
{dictionary,[]},
{trap_exit,false},
{status,running},
{heap_size,2584},
{stack_size,24},
{reductions,1134}],
[]]}}
Failed 2/28 subtests
Test Summary Report
-------------------
test/etap/231-cors.t (Wstat: 0 Tests: 26 Failed: 0)
Parse errors: Bad plan. You planned 28 tests but ran 26.
Files=1, Tests=26, 1 wallclock secs ( 0.05 usr 0.00 sys + 0.24 cusr 0.05 csys = 0.34 CPU)
Result: FAIL
This is on Mac OS X 10.9.2 Erlang R14B01.
On 14 Apr 2014, at 15:59 , Alexander Shorin <kx...@gmail.com> wrote:
> Could you run these tests with verbose mode? Or patch run.tpl to
> always apply -v argument to prove call?
> --
> ,,,^..^,,,
>
>
> On Mon, Apr 14, 2014 at 5:54 PM, Jan Lehnardt <ja...@apache.org> wrote:
>> make distcheck:
>>
>> ../test/etap/231-cors.t ............................
>> Failed 3/28 subtests
Re: [builds] master is failing in 231-cors.t
Posted by Alexander Shorin <kx...@gmail.com>.
Could you run these tests with verbose mode? Or patch run.tpl to
always apply -v argument to prove call?
--
,,,^..^,,,
On Mon, Apr 14, 2014 at 5:54 PM, Jan Lehnardt <ja...@apache.org> wrote:
> make distcheck:
>
> ../test/etap/231-cors.t ............................
> Failed 3/28 subtests