aboutsummaryrefslogtreecommitdiffstats
path: root/mcp/reclass/classes/cluster/mcp-ovs-dpdk-ha/openstack/init.yml
blob: 23921fa9d472a6205db33e875e3a5baf6742b948 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
##############################################################################
# Copyright (c) 2018 Mirantis Inc., Enea AB and others.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
---
classes:
  - cluster.mcp-common-ha.openstack_init
parameters:
  _param:
    neutron_tenant_network_types: "flat,vlan"
    neutron_tenant_vlan_range: ${_param:opnfv_net_tenant_vlan}
r_client, mock_image_id, mock_create_volume): options = { 'volume_name': 'yardstick_test_volume_01', 'size': '256', 'image': 'cirros-0.3.5' } args = {"options": options} obj = CreateVolume(args, {}) obj.run({}) self.assertTrue(mock_create_volume.called) self.assertTrue(mock_image_id.called) self.assertTrue(mock_get_glance_client.called) self.assertTrue(mock_get_cinder_client.called) def main(): unittest.main() if __name__ == '__main__': main()