summaryrefslogtreecommitdiffstats
path: root/config/deploy/os-nosdn-nofeature-ha.yaml
blob: 286b51627b17416da7977373606e78961382c7d9 (plain)
1
2
3
4
5
6
7
8
9
10
global_params:
  ha_enabled: true

deploy_options:
  sdn_controller: false
  sdn_l3: false
  tacker: true
  congress: true
  sfc: false
  vpn: false
span> # which accompanies this distribution, and is available at # http://www.apache.org/licenses/LICENSE-2.0 ############################################################################## import unittest import mock import paramiko from yardstick.benchmark.scenarios.lib.delete_router_gateway import DeleteRouterGateway class DeleteRouterGatewayTestCase(unittest.TestCase): @mock.patch('yardstick.common.openstack_utils.get_neutron_client') @mock.patch('yardstick.common.openstack_utils.remove_gateway_router') def test_delete_router_gateway(self, mock_get_neutron_client, mock_remove_gateway_router): options = { 'router_id': '123-123-123' } args = {"options": options} obj = DeleteRouterGateway(args, {}) obj.run({}) self.assertTrue(mock_get_neutron_client.called) self.assertTrue(mock_remove_gateway_router.called) def main(): unittest.main() if __name__ == '__main__': main()