1553
1552
self.assertEqual("", err)
1556
class TestSmartServerInfo(tests.TestCaseWithTransport):
1558
def test_simple_branch_info(self):
1559
self.setup_smart_server_with_call_log()
1560
t = self.make_branch_and_tree('branch')
1561
self.build_tree_contents([('branch/foo', b'thecontents')])
1564
self.reset_smart_call_log()
1565
out, err = self.run_bzr(['info', self.get_url('branch')])
1566
# This figure represent the amount of work to perform this use case. It
1567
# is entirely ok to reduce this number if a test fails due to rpc_count
1568
# being too low. If rpc_count increases, more network roundtrips have
1569
# become necessary for this use case. Please do not adjust this number
1570
# upwards without agreement from bzr's network support maintainers.
1571
self.assertLength(10, self.hpss_calls)
1572
self.assertLength(1, self.hpss_connections)
1573
self.assertThat(self.hpss_calls, ContainsNoVfsCalls)
1575
def test_verbose_branch_info(self):
1576
self.setup_smart_server_with_call_log()
1577
t = self.make_branch_and_tree('branch')
1578
self.build_tree_contents([('branch/foo', b'thecontents')])
1581
self.reset_smart_call_log()
1582
out, err = self.run_bzr(['info', '-v', self.get_url('branch')])
1583
# This figure represent the amount of work to perform this use case. It
1584
# is entirely ok to reduce this number if a test fails due to rpc_count
1585
# being too low. If rpc_count increases, more network roundtrips have
1586
# become necessary for this use case. Please do not adjust this number
1587
# upwards without agreement from bzr's network support maintainers.
1588
self.assertLength(14, self.hpss_calls)
1589
self.assertLength(1, self.hpss_connections)
1590
self.assertThat(self.hpss_calls, ContainsNoVfsCalls)