bloodhound-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anze Staric <anze.sta...@gmail.com>
Subject Re: The state of trunk
Date Fri, 20 Sep 2013 07:16:15 GMT
The failing tests assume that code
 # Create some dummy objects
self.insert_ticket('ticket 1')
self.insert_wiki('page 1', 'content')
with self.product('p1'):
    self.insert_ticket('ticket 2')
    self.insert_wiki('page 1', 'content')

creates a ticket with id1 in default product and ticket with id 2 in
product p1. That changed when bep-0010 was merged, both ticket now get
id 1, so the expected counts of matching tickets are wrong.

When I check all the test cases to ensure that this is really the
problem behind all the failures, I will commit the correct counts,
unless someone know a better approach to fix the tests.


Anze


On Fri, Sep 20, 2013 at 7:41 AM, Ryan Ollos <ryan.ollos@wandisco.com> wrote:
> On Thu, Sep 19, 2013 at 6:43 PM, Olemis Lang <olemis@gmail.com> wrote:
>
>> I ran both (unit & functional) test suites and this is what I got :
>>
>> http://goo.gl/enEnUz
>> http://goo.gl/sVtESY
>>
>> I'd like to upgrade some instances but it seems that I'd rather lose
>> the RSS feed (... which I frequently use ..) :'(
>>
>> JFTR , test results are quite different due to issues similar to #662
>>
>> http://ci.apache.org/builders/bh-unit-tests/builds/176
>>
>> --
>> Regards,
>>
>> Olemis - @olemislc
>>
>> Apacheā„¢ Bloodhound contributor
>> http://issues.apache.org/bloodhound
>> http://blood-hound.net
>>
>> Blog ES: http://simelo-es.blogspot.com/
>> Blog EN: http://simelo-en.blogspot.com/
>>
>> Featured article:
>> Popularidad de Python, septiembre 2013 -
>> http://goo.gl/fb/tr0XB
>>
>
> After enabling AuthzSecurityTestCase in r1524639, I'm seeing some errors:
>
> ----
> $ PYTHONPATH=. python -m bhsearch.tests.security
> ..FFFFFFF...........
> ======================================================================
> FAIL: test_granular_permissions (__main__.AuthzSecurityTestCase)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File
> "/home/user/Workspace/bh598/bloodhound-trunk.svn/bloodhound_search/bhsearch/tests/security.py",
> line 303, in test_granular_permissions
>     self.assertEqual(1, results.hits)
> AssertionError: 1 != 2
>
> ======================================================================
> FAIL: test_includes_authenticated_rows_for_registered_users
> (__main__.AuthzSecurityTestCase)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File
> "/home/user/Workspace/bh598/bloodhound-trunk.svn/bloodhound_search/bhsearch/tests/security.py",
> line 348, in test_includes_authenticated_rows_for_registered_users
>     self.assertEqual(1, results.hits)
> AssertionError: 1 != 0
>
> ======================================================================
> FAIL: test_includes_named_rows_for_anonymous_users
> (__main__.AuthzSecurityTestCase)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File
> "/home/user/Workspace/bh598/bloodhound-trunk.svn/bloodhound_search/bhsearch/tests/security.py",
> line 371, in test_includes_named_rows_for_anonymous_users
>     self.assertEqual(1, results.hits)
> AssertionError: 1 != 0
>
> ======================================================================
> FAIL: test_includes_named_rows_for_registered_users
> (__main__.AuthzSecurityTestCase)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File
> "/home/user/Workspace/bh598/bloodhound-trunk.svn/bloodhound_search/bhsearch/tests/security.py",
> line 359, in test_includes_named_rows_for_registered_users
>     self.assertEqual(1, results.hits)
> AssertionError: 1 != 0
>
> ======================================================================
> FAIL: test_includes_wildcard_rows_for_anonymous_users
> (__main__.AuthzSecurityTestCase)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File
> "/home/user/Workspace/bh598/bloodhound-trunk.svn/bloodhound_search/bhsearch/tests/security.py",
> line 337, in test_includes_wildcard_rows_for_anonymous_users
>     self.assertEqual(1, results.hits)
> AssertionError: 1 != 0
>
> ======================================================================
> FAIL: test_includes_wildcard_rows_for_registered_users
> (__main__.AuthzSecurityTestCase)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File
> "/home/user/Workspace/bh598/bloodhound-trunk.svn/bloodhound_search/bhsearch/tests/security.py",
> line 325, in test_includes_wildcard_rows_for_registered_users
>     self.assertEqual(1, results.hits)
> AssertionError: 1 != 0
>
> ======================================================================
> FAIL: test_understands_groups (__main__.AuthzSecurityTestCase)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File
> "/home/user/Workspace/bh598/bloodhound-trunk.svn/bloodhound_search/bhsearch/tests/security.py",
> line 384, in test_understands_groups
>     self.assertEqual(1, results.hits)
> AssertionError: 1 != 0
>
> ----------------------------------------------------------------------
> Ran 20 tests in 3.116s
>
> FAILED (failures=7)

Mime
View raw message