def test_stats(self):
     self.a.lb.stats(None, test_base.FakeModel())
     self.print_mocks()
     self.a.last_client.slb.virtual_server.stats.assert_called_with(
         'fake-id-001')
 def test_refresh(self):
     try:
         self.a.lb.refresh(None, test_base.FakeModel())
     except a10_ex.UnsupportedFeature:
         pass
Exemplo n.º 3
0
 def setUp(self):
     super(TestA10Context, self).setUp()
     self.handler = self.a.pool
     self.ctx = self._build_openstack_context()
     self.m = test_base.FakeModel()
 def setUp(self):
     super(TestA10Context, self).setUp()
     self.handler = self.a.pool
     self.ctx = None
     self.m = test_base.FakeModel()
Exemplo n.º 5
0
 def test_stats(self):
     self.a.lb.stats(None, test_base.FakeModel())
     self.print_mocks()