Merge lp:~jelmer/brz/fix-open-policy into lp:brz/3.0
Proposed by
Jelmer Vernooij
Status: | Superseded |
---|---|
Proposed branch: | lp:~jelmer/brz/fix-open-policy |
Merge into: | lp:brz/3.0 |
Diff against target: |
177 lines (+100/-8) 2 files modified
breezy/tests/test_url_policy_open.py (+55/-2) breezy/url_policy_open.py (+45/-6) |
To merge this branch: | bzr merge lp:~jelmer/brz/fix-open-policy |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jelmer Vernooij | code | Approve | |
Colin Watson | Pending | ||
Breezy developers | blah | Pending | |
Review via email: mp+368592@code.launchpad.net |
This proposal supersedes a proposal from 2019-06-08.
Commit message
Support redirects in URL policy opener.
Description of the change
Support redirects in URL policy opener.
This should fix the tests for lp:~cjwatson/launchpad/use-bzr-policy-open
To post a comment you must log in.
This doesn't seem to fix anything for me:
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= tests.test_ url_policy_ open.TestRedire cts.test_ redirect_ forbidden ------- ------- ------- ------- ------- ------- ------- ------- ------- testresult. real._StringExc eption: log: {{{ cjwatson/ .bazaar) /tmp/testbzr- 0oBp8d. tmp/.bzr/ . cjwatson/ .bazaar) cjwatson/ .bazaar) cjwatson/ .bazaar) bzr.branch. BzrBranchFormat 7 object at 0x7fad7dcf6910> in file:// /tmp/testbzr- 0oBp8d. tmp/ cjwatson/ .bazaar) cjwatson/ .bazaar) cjwatson/ .bazaar) cjwatson/ .bazaar) cjwatson/ .bazaar) cjwatson/ .bazaar) cjwatson/ .bazaar) cjwatson/ .bazaar) testbzr- 0oBp8d. tmp/.bzr/ checkout/ dirstate' testbzr- 0oBp8d. tmp' cjwatson/ .bazaar) cjwatson/ .bazaar) cjwatson/ .bazaar) cjwatson/ .bazaar) /tmp/testbzr- 0oBp8d. tmp/breezy. tests.test_ url_policy_ open.TestRedire cts.test_ redirect_ forbidden/ work/b/ .bzr/. bzr.branch. BzrBranchFormat 7 object at 0x7fad7f519190> in file:// /tmp/testbzr- 0oBp8d. tmp/breezy. tests.test_ url_policy_ open.TestRedire cts.test_ redirect_ forbidden/ work/b/
ERROR: breezy.
-------
Traceback (most recent call last):
testtools.
4.551 Using Bazaar configuration directory (/home/
4.552 creating repository in file://
4.553 Using Bazaar configuration directory (/home/
4.555 Using Bazaar configuration directory (/home/
4.555 Using Bazaar configuration directory (/home/
4.555 creating branch <breezy.
4.556 Using Bazaar configuration directory (/home/
4.557 Using Bazaar configuration directory (/home/
4.558 Using Bazaar configuration directory (/home/
4.559 Using Bazaar configuration directory (/home/
4.561 Using Bazaar configuration directory (/home/
4.562 Using Bazaar configuration directory (/home/
4.563 Using Bazaar configuration directory (/home/
4.564 Using Bazaar configuration directory (/home/
4.564 trying to create missing lock u'/tmp/
4.581 opening working tree u'/tmp/
4.582 Using Bazaar configuration directory (/home/
4.582 Using Bazaar configuration directory (/home/
4.618 Using Bazaar configuration directory (/home/
4.618 Using Bazaar configuration directory (/home/
4.625 creating repository in file://
4.627 creating branch <breezy.
}}}
Traceback (most recent call last): cjwatson/ src/bzr/ brz/breezy/ tests/test_ url_policy_ open.py" , line 355, in test_redirect_ forbidden assertRaises( BadUrl, opener.open, 'redirecting:///') cjwatson/ src/bzr/ brz/breezy/ tests/_ _init__ .py", line 1481, in assertRaises (*args, **kwargs) cjwatson/ src/bzr/ brz/breezy/ url_policy_ open.py" , line 297, in open and_follow_ branch_ reference( url) cjwatson/ src/bzr/ brz/breezy/ url_policy_ open.py" , line 241, in check_and_ follow_ branch_ reference reference( url) cjwatson/ src/bzr/ brz/breezy/ url_policy_ open.py" , line 285, in follow_reference open(url, probers= self.probers) cjwatson/ src/bzr/ brz/breezy/ controldir. py", line 707, in open d=_unsupported) cjwatson/ src/bzr/ brz/breezy/ controldir. py", line 718, in open_from_transport cjwatson/ src/bzr/ brz/breezy/ tests/_ _init__ .py", line 1212, in...
File "/home/
self.
File "/home/
callableObj
File "/home/
url = self.check_
File "/home/
next_url = self.follow_
File "/home/
controldir = ControlDir.
File "/home/
_unsupporte
File "/home/
hook(transport)
File "/home/