Merge lp://qastaging/~thisfred/desktopcouch/migrate_or_bust into lp://qastaging/desktopcouch

Proposed by Eric Casteleijn
Status: Merged
Approved by: Eric Casteleijn
Approved revision: 237
Merged at revision: 230
Proposed branch: lp://qastaging/~thisfred/desktopcouch/migrate_or_bust
Merge into: lp://qastaging/desktopcouch
Diff against target: 356 lines (+109/-103)
6 files modified
bin/desktopcouch-get-port (+0/-2)
desktopcouch/application/migration/__init__.py (+40/-35)
desktopcouch/application/migration/tests/test_migration.py (+61/-60)
desktopcouch/application/platform/linux/__init__.py (+1/-0)
desktopcouch/application/start_local_couchdb.py (+6/-3)
desktopcouch/records/database.py (+1/-3)
To merge this branch: bzr merge lp://qastaging/~thisfred/desktopcouch/migrate_or_bust
Reviewer Review Type Date Requested Status
Martin Albisetti (community) Approve
Vincenzo Di Somma (community) Approve
Review via email: mp+41974@code.qastaging.launchpad.net

Commit message

This adds the migration from 'deleted' flags in records, to moving records into the 'dc_trash' database, where deleted records now should live.

Description of the change

This adds the migration from 'deleted' flags in records, to moving records into the 'dc_trash' database, where deleted records now should live.

To post a comment you must log in.
Revision history for this message
Vincenzo Di Somma (vds) :
review: Approve
Revision history for this message
Martin Albisetti (beuno) wrote :

+ """Migrate from deleted falg to the _trash database"""

Typo! You must be so embarrassed....

review: Approve
Revision history for this message
Eric Casteleijn (thisfred) wrote :

Fixed!

Revision history for this message
Ubuntu One Auto Pilot (otto-pilot) wrote :
Download full text (22.9 KiB)

The attempt to merge lp:~thisfred/desktopcouch/migrate_or_bust into lp:desktopcouch failed. Below is the output from the failed tests.

Apache CouchDB has started, time to relax.
Browse your desktop CouchDB at file:///tmp/tmpN8Q8Ep/data/couchdb.html
desktopcouch.application.tests.test_start_local_couchdb
  TestUpdateDesignDocuments
    test_create_databases_and_design_docs ... [OK]
desktopcouch.application.tests.test_service
  TestService
    test_start_desktopcouch_replication ... [OK]
    test_start_new_desktopcouch_extensions ... [OK]
    test_start_new_desktopcouch_no_extensions ... [OK]
desktopcouch.application.tests.test_local_files
  TestKeyringIntegration
    test_with_auth ... [OK]
    test_with_no_auth ... [OK]
  TestLocalFiles
    test_all_files_returned ... [OK]
    test_bind_address ... [OK]
    test_couch_chain_ini_files ... [OK]
    test_xdg_overwrite_works ... [OK]
desktopcouch.application.tests.test_replication
  TestReplication
    test_creation ... Apache CouchDB has started, time to relax.
Browse your desktop CouchDB at file:///tmp/tmp2SNWIR/data/couchdb.html
                                                     [OK]
  TestUbuntuoneReplication
    test_exclusion ... Apache CouchDB has started, time to relax.
Browse your desktop CouchDB at file:///tmp/tmpJHrddm/data/couchdb.html
                                                    [OK]
desktopcouch.application.migration.tests.test_migration
  TestMigration
    test_migration_deleted_flag_to_trash ... Traceback (most recent call last):
Failure: testtools.testresult.real._StringException: Text attachment: traceback
------------
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/testtools/runtest.py", line 144, in _run_user
    return fn(*args)
  File "/usr/lib/python2.6/dist-packages/testtools/testcase.py", line 425, in _run_test_method
    testMethod()
  File "/var/cache/tarmac/desktopcouch/trunk/desktopcouch/application/migration/tests/test_migration.py", line 177, in test_migration_deleted_flag_to_trash
    self.assertEqual(self.dbname, private['original_database_name'])
AssertionError: 'test_migration_deleted_flag_to_trash' != 'dc_trash'
------------

[FAIL]
    test_migration_script_is_run ... [OK]
    test_migration_script_is_run_and_can_access_view ... [OK]
  TestRegistration
    test_register_migration_is_added_to_the_registry ... [OK]
desktopcouch.application.pair.tests.test_couchdb_io
  TestCouchdbIo
    test_get_database_names_replicatable ... [OK]
    test_get_my_host_unique_id ... [OK]
    test_mkuri ... [OK]
    test_obsfuscation ... ...

Revision history for this message
Eric Casteleijn (thisfred) wrote :

Oops, forgot to exclude dc_trash from migration.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches