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

« back to all changes in this revision

Viewing changes to subversion/tests/cmdline/redirect_tests.py

  • Committer: Package Import Robot
  • Author(s): James McCoy
  • Date: 2014-02-20 20:38:10 UTC
  • mfrom: (0.2.11)
  • Revision ID: package-import@ubuntu.com-20140220203810-w61omsda8fs70pta
Tags: 1.8.8-1
* New upstream release.  Refresh patches.
  - Remove backported patches sqlite_3.8.x_workaround & swig-pl_build_fix
  - Fix integer overflows with 32-bit svnserv, which could cause an infinite
    loop (Closes: #738840) or inaccurate statistics (Closes: #738841)
  - Work around SQLite not honoring umask when creating rep-cache.db.
    (Closes: #735446)
  - Includes security fix:
    + CVE-2014-0032: mod_dav_svn crash when handling certain requests with
      SVNListParentPath on  (Closes: #737815)
* Add a subversion-dbg package.  (Closes: #508147)
* Bump libdb5.1-dev → libdb5.3-dev  (Closes: #738650)

Show diffs side-by-side

added added

removed removed

Lines of Context:
140
140
  verify_url(wc_dir, sbox.repo_url)
141
141
 
142
142
#----------------------------------------------------------------------
 
143
@SkipUnless(svntest.main.is_ra_type_dav)
 
144
def redirected_nonroot_update(sbox):
 
145
  "redirected update of non-repos-root wc"
 
146
 
 
147
  sbox.build(create_wc=False)
 
148
  wc_dir = sbox.wc_dir
 
149
  checkout_url = sbox.repo_url + '/A'
 
150
  relocate_url = sbox.redirected_root_url() + '/A'
 
151
 
 
152
  # Checkout a subdir of the repository root.
 
153
  exit_code, out, err = svntest.main.run_svn(None, 'co',
 
154
                                             checkout_url, wc_dir)
 
155
  if err:
 
156
    raise svntest.Failure
 
157
  
 
158
  # Relocate (by cheating) the working copy to the redirect URL.  When
 
159
  # we then update, we'll expect to find ourselves automagically back
 
160
  # to the original URL.  (This is because we can't easily introduce a
 
161
  # redirect to the Apache configuration from the test suite here.)
 
162
  svntest.actions.no_relocate_validation()
 
163
  exit_code, out, err = svntest.main.run_svn(None, 'sw', '--relocate',
 
164
                                             checkout_url, relocate_url,
 
165
                                             wc_dir)
 
166
  svntest.actions.do_relocate_validation()
 
167
 
 
168
  # Now update the working copy.
 
169
  exit_code, out, err = svntest.main.run_svn(None, 'up', wc_dir)
 
170
  if err:
 
171
    raise svntest.Failure
 
172
  if not re.match("^Updating '.*':", out[0]):
 
173
    raise svntest.Failure
 
174
  if not redirect_regex.match(out[1]):
 
175
    raise svntest.Failure
 
176
 
 
177
  # Verify that we have the expected URL.
 
178
  verify_url(wc_dir, checkout_url)
 
179
 
 
180
#----------------------------------------------------------------------
143
181
 
144
182
########################################################################
145
183
# Run the tests
149
187
              temporary_redirect,
150
188
              redirected_checkout,
151
189
              redirected_update,
 
190
              redirected_nonroot_update,
152
191
             ]
153
192
 
154
193
if __name__ == '__main__':