~notmyname/swift/healthcheck_version

« back to all changes in this revision

Viewing changes to test/functional/tests.py

  • Committer: Tarmac
  • Author(s): gholt
  • Date: 2011-06-16 21:12:04 UTC
  • mfrom: (305.2.6 postcopy)
  • Revision ID: tarmac-20110616211204-s5slh4h8nt9mrd2v
You can specify X-Newest: true on GETs and HEADs to indicate you want Swift to query all backend copies and return the newest version retrieved.
Object COPY requests now always copy the newest object they can find.
Object POSTs are implemented as COPYs now by default (you can revert to previous implementation with conf object_post_as_copy = false)
Account and container GETs and HEADs now shuffle the nodes they use to balance load.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1032
1032
                self.assert_(file.write())
1033
1033
                self.assert_status(201)
1034
1034
                self.assert_(file.sync_metadata())
1035
 
                self.assert_status(202)
 
1035
                self.assert_status((201, 202))
1036
1036
            else:
1037
1037
                self.assertRaises(ResponseError, file.write)
1038
1038
                self.assert_status(400)
1245
1245
 
1246
1246
            file.metadata = metadata
1247
1247
            self.assert_(file.sync_metadata())
1248
 
            self.assert_status(202)
 
1248
            self.assert_status((201, 202))
1249
1249
 
1250
1250
            file = self.env.container.file(file.name)
1251
1251
            self.assert_(file.initialize())