~ubuntu-branches/debian/sid/subversion/sid

« back to all changes in this revision

Viewing changes to subversion/bindings/swig/python/tests/client.py

  • Committer: Package Import Robot
  • Author(s): James McCoy, Peter Samuelson, James McCoy
  • Date: 2014-01-12 19:48:33 UTC
  • mfrom: (0.2.10)
  • Revision ID: package-import@ubuntu.com-20140112194833-w3axfwksn296jn5x
Tags: 1.8.5-1
[ Peter Samuelson ]
* New upstream release.  (Closes: #725787) Rediff patches:
  - Remove apr-abi1 (applied upstream), rename apr-abi2 to apr-abi
  - Remove loosen-sqlite-version-check (shouldn't be needed)
  - Remove java-osgi-metadata (applied upstream)
  - svnmucc prompts for a changelog if none is provided. (Closes: #507430)
  - Remove fix-bdb-version-detection, upstream uses "apu-config --dbm-libs"
  - Remove ruby-test-wc (applied upstream)
  - Fix “svn diff -r N file” when file has svn:mime-type set.
    (Closes: #734163)
  - Support specifying an encoding for mod_dav_svn's environment in which
    hooks are run.  (Closes: #601544)
  - Fix ordering of “svnadmin dump” paths with certain APR versions.
    (Closes: #687291)
  - Provide a better error message when authentication fails with an
    svn+ssh:// URL.  (Closes: #273874)
  - Updated Polish translations.  (Closes: #690815)

[ James McCoy ]
* Remove all traces of libneon, replaced by libserf.
* patches/sqlite_3.8.x_workaround: Upstream fix for wc-queries-test test
  failurse.
* Run configure with --with-apache-libexecdir, which allows removing part of
  patches/rpath.
* Re-enable auth-test as upstream has fixed the problem of picking up
  libraries from the environment rather than the build tree.
  (Closes: #654172)
* Point LD_LIBRARY_PATH at the built auth libraries when running the svn
  command during the build.  (Closes: #678224)
* Add a NEWS entry describing how to configure mod_dav_svn to understand
  UTF-8.  (Closes: #566148)
* Remove ancient transitional package, libsvn-ruby.
* Enable compatibility with Sqlite3 versions back to Wheezy.
* Enable hardening flags.  (Closes: #734918)
* patches/build-fixes: Enable verbose build logs.
* Build against the default ruby version.  (Closes: #722393)

Show diffs side-by-side

added added

removed removed

Lines of Context:
382
382
                             not isinstance(x, core.svn_auth_provider_object_t),
383
383
                            providers))
384
384
 
 
385
  def testGnomeKeyring(self):
 
386
    if not hasattr(core, 'svn_auth_set_gnome_keyring_unlock_prompt_func'):
 
387
      # gnome-keying not compiled in, do nothing
 
388
      return
 
389
 
 
390
    # This tests setting the gnome-keyring unlock prompt function as an
 
391
    # auth baton parameter. It doesn't actually call gnome-keyring
 
392
    # stuff, since that would require having a gnome-keyring running. We
 
393
    # just test if this doesn't error out, there's not even a return
 
394
    # value to test.
 
395
    def prompt_func(realm_string, pool):
 
396
      return "Foo"
 
397
 
 
398
    core.svn_auth_set_gnome_keyring_unlock_prompt_func(self.client_ctx.auth_baton, prompt_func)
 
399
 
 
400
  def proplist_receiver_trunk(self, path, props, iprops, pool):
 
401
    self.assertEquals(props['svn:global-ignores'], '*.q\n')
 
402
    self.proplist_receiver_trunk_calls += 1
 
403
 
 
404
  def proplist_receiver_dir1(self, path, props, iprops, pool):
 
405
    self.assertEquals(iprops[self.proplist_receiver_dir1_key],
 
406
                      {'svn:global-ignores':'*.q\n'})
 
407
    self.proplist_receiver_dir1_calls += 1
 
408
 
 
409
  def test_inherited_props(self):
 
410
    """Test inherited props"""
 
411
 
 
412
    trunk_url = self.repos_uri + '/trunk'
 
413
    client.propset_remote('svn:global-ignores', '*.q', trunk_url,
 
414
                          False, 12, {}, None, self.client_ctx)
 
415
 
 
416
    head = core.svn_opt_revision_t()
 
417
    head.kind = core.svn_opt_revision_head
 
418
    props, iprops, rev = client.propget5('svn:global-ignores', trunk_url,
 
419
                                         head, head, core.svn_depth_infinity,
 
420
                                         None, self.client_ctx)
 
421
    self.assertEquals(props[trunk_url], '*.q\n')
 
422
 
 
423
    dir1_url = trunk_url + '/dir1'
 
424
    props, iprops, rev = client.propget5('svn:global-ignores', dir1_url,
 
425
                                         head, head, core.svn_depth_infinity,
 
426
                                         None, self.client_ctx)
 
427
    self.assertEquals(iprops[trunk_url], {'svn:global-ignores':'*.q\n'})
 
428
 
 
429
    self.proplist_receiver_trunk_calls = 0
 
430
    client.proplist4(trunk_url, head, head, core.svn_depth_empty, None, True,
 
431
                     self.proplist_receiver_trunk, self.client_ctx)
 
432
    self.assertEquals(self.proplist_receiver_trunk_calls, 1)
 
433
 
 
434
    self.proplist_receiver_dir1_calls = 0
 
435
    self.proplist_receiver_dir1_key = trunk_url
 
436
    client.proplist4(dir1_url, head, head, core.svn_depth_empty, None, True,
 
437
                     self.proplist_receiver_dir1, self.client_ctx)
 
438
    self.assertEquals(self.proplist_receiver_dir1_calls, 1)
 
439
 
 
440
 
385
441
def suite():
386
442
    return unittest.defaultTestLoader.loadTestsFromTestCase(
387
443
      SubversionClientTestCase)