/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/tests/blackbox/test_branch.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2020-01-19 15:46:24 UTC
  • mfrom: (7449.2.10 branch-reference-remote)
  • Revision ID: breezy.the.bot@gmail.com-20200119154624-anug4aee72039xw3
Support fetching / pushing reference information to remote branches.

Merged from https://code.launchpad.net/~jelmer/brz/branch-reference-remote/+merge/377806

Show diffs side-by-side

added added

removed removed

Lines of Context:
557
557
        # become necessary for this use case. Please do not adjust this number
558
558
        # upwards without agreement from bzr's network support maintainers.
559
559
        self.assertLength(2, self.hpss_connections)
560
 
        self.assertLength(33, self.hpss_calls)
561
 
        self.expectFailure("branching to the same branch requires VFS access",
562
 
                           self.assertThat, self.hpss_calls, ContainsNoVfsCalls)
 
560
        self.assertLength(34, self.hpss_calls)
 
561
        self.expectFailure(
 
562
            "branching to the same branch requires VFS access",
 
563
            self.assertThat, self.hpss_calls, ContainsNoVfsCalls)
563
564
 
564
565
    def test_branch_from_trivial_branch_streaming_acceptance(self):
565
566
        self.setup_smart_server_with_call_log()
575
576
        # become necessary for this use case. Please do not adjust this number
576
577
        # upwards without agreement from bzr's network support maintainers.
577
578
        self.assertThat(self.hpss_calls, ContainsNoVfsCalls)
578
 
        self.assertLength(10, self.hpss_calls)
 
579
        self.assertLength(11, self.hpss_calls)
579
580
        self.assertLength(1, self.hpss_connections)
580
581
 
581
582
    def test_branch_from_trivial_stacked_branch_streaming_acceptance(self):
597
598
        # being too low. If rpc_count increases, more network roundtrips have
598
599
        # become necessary for this use case. Please do not adjust this number
599
600
        # upwards without agreement from bzr's network support maintainers.
600
 
        self.assertLength(15, self.hpss_calls)
 
601
        self.assertLength(16, self.hpss_calls)
601
602
        self.assertLength(1, self.hpss_connections)
602
603
        self.assertThat(self.hpss_calls, ContainsNoVfsCalls)
603
604
 
617
618
        # being too low. If rpc_count increases, more network roundtrips have
618
619
        # become necessary for this use case. Please do not adjust this number
619
620
        # upwards without agreement from bzr's network support maintainers.
620
 
        self.assertLength(10, self.hpss_calls)
 
621
        self.assertLength(11, self.hpss_calls)
621
622
        self.assertThat(self.hpss_calls, ContainsNoVfsCalls)
622
623
        self.assertLength(1, self.hpss_connections)
623
624
 
659
660
        # become necessary for this use case. Please do not adjust this number
660
661
        # upwards without agreement from bzr's network support maintainers.
661
662
        self.assertThat(self.hpss_calls, ContainsNoVfsCalls)
662
 
        self.assertLength(11, self.hpss_calls)
 
663
        self.assertLength(12, self.hpss_calls)
663
664
        self.assertLength(1, self.hpss_connections)
664
665
 
665
666