Source: flask-basicauth
Version: 0.2.0-3
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20240224 ftbfs-trixie

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> python3.12 -m unittest -v test_basicauth.py;  python3.11 -m unittest -v 
> test_basicauth.py;
> test_asks_for_authentication 
> (test_basicauth.BasicAuthTestCase.test_asks_for_authentication) ... ok
> test_asks_for_authentication_with_custom_realm 
> (test_basicauth.BasicAuthTestCase.test_asks_for_authentication_with_custom_realm)
>  ... ok
> test_check_credentials_with_correct_credentials 
> (test_basicauth.BasicAuthTestCase.test_check_credentials_with_correct_credentials)
>  ... ok
> test_check_credentials_with_incorrect_credentials 
> (test_basicauth.BasicAuthTestCase.test_check_credentials_with_incorrect_credentials)
>  ... ok
> test_requires_authentication_for_all_views_when_forced 
> (test_basicauth.BasicAuthTestCase.test_requires_authentication_for_all_views_when_forced)
>  ... ok
> test_responds_with_200_with_correct_credentials 
> (test_basicauth.BasicAuthTestCase.test_responds_with_200_with_correct_credentials)
>  ... FAIL
> test_responds_with_200_with_correct_credentials_containing_colon 
> (test_basicauth.BasicAuthTestCase.test_responds_with_200_with_correct_credentials_containing_colon)
>  ... FAIL
> test_responds_with_401_with_incorrect_credentials 
> (test_basicauth.BasicAuthTestCase.test_responds_with_401_with_incorrect_credentials)
>  ... ok
> test_responds_with_401_without_authorization 
> (test_basicauth.BasicAuthTestCase.test_responds_with_401_without_authorization)
>  ... ok
> test_runs_decorated_view_after_authentication 
> (test_basicauth.BasicAuthTestCase.test_runs_decorated_view_after_authentication)
>  ... FAIL
> test_sets_default_values_for_configuration 
> (test_basicauth.BasicAuthTestCase.test_sets_default_values_for_configuration) 
> ... ok
> test_views_without_basic_auth_decorator_respond_with_200 
> (test_basicauth.BasicAuthTestCase.test_views_without_basic_auth_decorator_respond_with_200)
>  ... ok
> 
> ======================================================================
> FAIL: test_responds_with_200_with_correct_credentials 
> (test_basicauth.BasicAuthTestCase.test_responds_with_200_with_correct_credentials)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/test_basicauth.py", line 96, in 
> test_responds_with_200_with_correct_credentials
>     self.assertEqual(response.status_code, 200)
> AssertionError: 401 != 200
> 
> ======================================================================
> FAIL: test_responds_with_200_with_correct_credentials_containing_colon 
> (test_basicauth.BasicAuthTestCase.test_responds_with_200_with_correct_credentials_containing_colon)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/test_basicauth.py", line 104, in 
> test_responds_with_200_with_correct_credentials_containing_colon
>     self.assertEqual(response.status_code, 200)
> AssertionError: 401 != 200
> 
> ======================================================================
> FAIL: test_runs_decorated_view_after_authentication 
> (test_basicauth.BasicAuthTestCase.test_runs_decorated_view_after_authentication)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/test_basicauth.py", line 111, in 
> test_runs_decorated_view_after_authentication
>     self.assertEqual(
> AssertionError: b'' != b'This view always requires authentication.'
> 
> ----------------------------------------------------------------------
> Ran 12 tests in 0.026s
> 
> FAILED (failures=3)
> test_asks_for_authentication 
> (test_basicauth.BasicAuthTestCase.test_asks_for_authentication) ... ok
> test_asks_for_authentication_with_custom_realm 
> (test_basicauth.BasicAuthTestCase.test_asks_for_authentication_with_custom_realm)
>  ... ok
> test_check_credentials_with_correct_credentials 
> (test_basicauth.BasicAuthTestCase.test_check_credentials_with_correct_credentials)
>  ... ok
> test_check_credentials_with_incorrect_credentials 
> (test_basicauth.BasicAuthTestCase.test_check_credentials_with_incorrect_credentials)
>  ... ok
> test_requires_authentication_for_all_views_when_forced 
> (test_basicauth.BasicAuthTestCase.test_requires_authentication_for_all_views_when_forced)
>  ... ok
> test_responds_with_200_with_correct_credentials 
> (test_basicauth.BasicAuthTestCase.test_responds_with_200_with_correct_credentials)
>  ... FAIL
> test_responds_with_200_with_correct_credentials_containing_colon 
> (test_basicauth.BasicAuthTestCase.test_responds_with_200_with_correct_credentials_containing_colon)
>  ... FAIL
> test_responds_with_401_with_incorrect_credentials 
> (test_basicauth.BasicAuthTestCase.test_responds_with_401_with_incorrect_credentials)
>  ... ok
> test_responds_with_401_without_authorization 
> (test_basicauth.BasicAuthTestCase.test_responds_with_401_without_authorization)
>  ... ok
> test_runs_decorated_view_after_authentication 
> (test_basicauth.BasicAuthTestCase.test_runs_decorated_view_after_authentication)
>  ... FAIL
> test_sets_default_values_for_configuration 
> (test_basicauth.BasicAuthTestCase.test_sets_default_values_for_configuration) 
> ... ok
> test_views_without_basic_auth_decorator_respond_with_200 
> (test_basicauth.BasicAuthTestCase.test_views_without_basic_auth_decorator_respond_with_200)
>  ... ok
> 
> ======================================================================
> FAIL: test_responds_with_200_with_correct_credentials 
> (test_basicauth.BasicAuthTestCase.test_responds_with_200_with_correct_credentials)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/test_basicauth.py", line 96, in 
> test_responds_with_200_with_correct_credentials
>     self.assertEqual(response.status_code, 200)
> AssertionError: 401 != 200
> 
> ======================================================================
> FAIL: test_responds_with_200_with_correct_credentials_containing_colon 
> (test_basicauth.BasicAuthTestCase.test_responds_with_200_with_correct_credentials_containing_colon)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/test_basicauth.py", line 104, in 
> test_responds_with_200_with_correct_credentials_containing_colon
>     self.assertEqual(response.status_code, 200)
> AssertionError: 401 != 200
> 
> ======================================================================
> FAIL: test_runs_decorated_view_after_authentication 
> (test_basicauth.BasicAuthTestCase.test_runs_decorated_view_after_authentication)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/test_basicauth.py", line 111, in 
> test_runs_decorated_view_after_authentication
>     self.assertEqual(
> AssertionError: b'' != b'This view always requires authentication.'
> 
> ----------------------------------------------------------------------
> Ran 12 tests in 0.025s
> 
> FAILED (failures=3)
> make[1]: *** [debian/rules:22: override_dh_auto_test] Error 1


The full build log is available from:
http://qa-logs.debian.net/2024/02/24/flask-basicauth_0.2.0-3_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240224;users=lu...@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240224&fusertaguser=lu...@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.

Reply via email to