Merge lp:~jml/canonical-identity-provider/trivial-bad into lp:canonical-identity-provider/release

Proposed by Jonathan Lange
Status: Rejected
Rejected by: Jonathan Lange
Proposed branch: lp:~jml/canonical-identity-provider/trivial-bad
Merge into: lp:canonical-identity-provider/release
Diff against target: 11 lines (+2/-0)
1 file modified
identityprovider/tests/unit/test_admin.py (+2/-0)
To merge this branch: bzr merge lp:~jml/canonical-identity-provider/trivial-bad
Reviewer Review Type Date Requested Status
Jonathan Lange (community) Approve
Review via email: mp+139470@code.launchpad.net

Commit message

Trivial branch with failing tests

Description of the change

Trivial branch that has failing tests.

We expect Jenkins via Tarmac to reject this branch.

To post a comment you must log in.
Revision history for this message
ISD Branch Mangler (isd-branches-mangler) wrote :
Download full text (3.4 KiB)

The attempt to merge lp:~jml/canonical-identity-provider/trivial-bad into lp:canonical-identity-provider failed. Below is the output from the failed tests.

Creating test database for alias 'default'...
[localhost] local: . /tmp/tmpxAm9dk/.env/bin/activate && python django_project/manage.py test --noinput

WARNING:root:File /tmp/tmpxAm9dk/django_project/../../../local_config/local.cfg could not be read. Skipping.
WARNING:root:File /tmp/tmpxAm9dk/django_project/config/config/devel.cfg could not be read. Skipping.
WARNING:root:File /tmp/tmpxAm9dk/django_project/../../../local_config/local.cfg could not be read. Skipping.
WARNING:root:File /tmp/tmpxAm9dk/django_project/config/config/devel.cfg could not be read. Skipping.
Traceback (most recent call last):
  File "django_project/manage.py", line 11, in <module>
    execute_manager(settings)
  File "/tmp/tmpxAm9dk/.env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 438, in execute_manager
    utility.execute()
  File "/tmp/tmpxAm9dk/.env/local/lib/python2.7/site-packages/django_configglue/management/__init__.py", line 71, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/tmp/tmpxAm9dk/.env/local/lib/python2.7/site-packages/django/core/management/base.py", line 191, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/tmp/tmpxAm9dk/.env/local/lib/python2.7/site-packages/django/core/management/base.py", line 220, in execute
    output = self.handle(*args, **options)
  File "/tmp/tmpxAm9dk/.env/local/lib/python2.7/site-packages/django/core/management/commands/test.py", line 37, in handle
    failures = test_runner.run_tests(test_labels)
  File "/tmp/tmpxAm9dk/.env/local/lib/python2.7/site-packages/django/test/simple.py", line 359, in run_tests
    old_config = self.setup_databases()
  File "/tmp/tmpxAm9dk/.env/local/lib/python2.7/site-packages/django/test/simple.py", line 296, in setup_databases
    test_db_name = connection.creation.create_test_db(self.verbosity, autoclobber=not self.interactive)
  File "/tmp/tmpxAm9dk/.env/local/lib/python2.7/site-packages/django/db/backends/creation.py", line 351, in create_test_db
    self._create_test_db(verbosity, autoclobber)
  File "/tmp/tmpxAm9dk/.env/local/lib/python2.7/site-packages/django/db/backends/creation.py", line 415, in _create_test_db
    cursor = self.connection.cursor()
  File "/tmp/tmpxAm9dk/identityprovider/backend/old/base.py", line 25, in cursor
    cursor = super(DatabaseWrapper, self).cursor()
  File "/tmp/tmpxAm9dk/.env/local/lib/python2.7/site-packages/django/db/backends/__init__.py", line 252, in cursor
    cursor = util.CursorWrapper(self._cursor(), self)
  File "/tmp/tmpxAm9dk/identityprovider/backend/base.py", line 179, in _cursor
    cursor = super(DatabaseWrapper, self)._cursor(*args)
  File "/tmp/tmpxAm9dk/identityprovider/backend/old/base.py", line 15, in _cursor
    cursor = super(DatabaseWrapper, self)._cursor(*args)
  File "/tmp/tmpxAm9dk/.env/local/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/base.py", line 140, in _cursor
    self.connection = Database.connect(**conn_params)
psycopg2.OperationalError: could not connect to serve...

Read more...

Revision history for this message
Jonathan Lange (jml) wrote :

Rubberstamping.

review: Approve
Revision history for this message
ISD Branch Mangler (isd-branches-mangler) wrote :
Download full text (3.1 KiB)

The attempt to merge lp:~jml/canonical-identity-provider/trivial-bad into lp:canonical-identity-provider failed. Below is the output from the failed tests.

Creating test database for alias 'default'...
Destroying test database for alias 'default'...
[localhost] local: . /tmp/tmpqVIcZz/.env/bin/activate && python django_project/manage.py test --noinput

WARNING:root:File /tmp/tmpqVIcZz/django_project/../../../local_config/local.cfg could not be read. Skipping.
WARNING:root:File /tmp/tmpqVIcZz/django_project/config/config/devel.cfg could not be read. Skipping.
WARNING:root:File /tmp/tmpqVIcZz/django_project/../../../local_config/local.cfg could not be read. Skipping.
WARNING:root:File /tmp/tmpqVIcZz/django_project/config/config/devel.cfg could not be read. Skipping.
WARNING:root:File /tmp/tmpqVIcZz/django_project/../../../local_config/local.cfg could not be read. Skipping.
WARNING:root:File /tmp/tmpqVIcZz/django_project/config/config/devel.cfg could not be read. Skipping.
WARNING:root:File /tmp/tmpqVIcZz/django_project/../../../local_config/local.cfg could not be read. Skipping.
WARNING:root:File /tmp/tmpqVIcZz/django_project/config/config/devel.cfg could not be read. Skipping.
WARNING:root:File /tmp/tmpqVIcZz/django_project/../../../local_config/local.cfg could not be read. Skipping.
WARNING:root:File /tmp/tmpqVIcZz/django_project/config/config/devel.cfg could not be read. Skipping.
........................................F....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
======================================================================
FAIL: test_registered_models (identityprovider.tests.unit.test_admin.AdminTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/tmpqVIcZz/identityprovider/tests/unit/test_admin.py", line 47, in test_registered_models
    self.assertEqual('apples', 'oranges')
AssertionError: 'apples' != 'oranges'

----------------------------------------------------------------------
Ran 1069 tests in 231.780s

FAILED (failures=1)

Fatal error: local() encountered an error (return code 1) while executing '. /tmp/tmpqVIcZz/.env/bin/activate && python django_project/manage.py test --noinput...

Read more...

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'identityprovider/tests/unit/test_admin.py'
2--- identityprovider/tests/unit/test_admin.py 2012-12-05 18:25:00 +0000
3+++ identityprovider/tests/unit/test_admin.py 2012-12-12 14:00:39 +0000
4@@ -43,6 +43,8 @@
5 self.reset_csrf()
6
7 def test_registered_models(self):
8+ # XXX: Inserted to deliberately fail tests to test pre-merge testing.
9+ self.assertEqual('apples', 'oranges')
10 for model in (Account, OpenIDRPConfig, APIUser, EmailAddress):
11 self.assertRaises(AlreadyRegistered, admin.site.register, model)
12