aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/benchmark/scenarios/availability/test_director.py
AgeCommit message (Expand)AuthorFilesLines
2016-07-08Creating Director and related codes.lihuan1-0/+103
2'>82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147
ADAPTER = 'openstack-icehouse'
FLAVOR = 'HA-multinodes'
CONFIG_MAPPING = {
    "mapped_name": "flavor_config",
    "mapped_children": [{
        "security": {
            "accordion_heading": "OpenStack Database and Queue Credentials",
            "category": "service_credentials",
            "data_structure": "table",
            "action": "true",
            "modifiable_data": ["username", "password"],
            "table_display_header": ["Service", "UserName", "Password", "Action"],
            "config": {
                "rabbitmq": {
                    "username": "guest",
                    "password": "guest"
                },
                "compute": {
                    "username": "nova",
                    "password": "nova"
                },
                "dashboard": {
                    "username": "dashboard",
                    "password": "dashboard"
                },
                "identity": {
                    "username": "keystone",
                    "password": "keystone"
                },
                "image": {
                    "username": "glance",
                    "password": "glance"
                },
                "metering": {
                    "username": "ceilometer",
                    "password": "ceilometer"
                },
                "mysql": {
                    "username": "root",
                    "password": "root"
                },
                "volume": {
                    "username": "cinder",
                    "password": "cinder"
                }
            }
        }
    },{
       "security": {
            "accordion_heading": "OpenStack Keystone User Credentials",
            "category": "console_credentials",
            "data_structure": "table",
            "action": "true",
            "modifiable_data": ["username", "password"],
            "table_display_header": ["Service", "UserName", "Password", "Action"],
            "config":{
                "admin": {
                    "username": "admin",
                    "password": "admin"
                },
                "compute": {
                    "username": "nova",
                    "password": "nova"
                },
                "dashboard": {
                    "username": "dashboard",
                    "password": "dashboard"
                },
                "image": {
                    "username": "glance",
                    "password": "glance"
                },
                "metering": {
                    "username": "ceilometer",
                    "password": "ceilometer"
                },
                "network": {
                    "username": "quantum",
                    "password": "quantum"
                },
                "object-store": {
                    "username": "swift",
                    "password": "swift"
                },
                "volume": {
                    "username": "cinder",
                    "password": "cinder"
                }
            }
        }
    },{
        "neutron_config": {
            "accordion_heading": "Neutron Configurations",
            "data_structure": "form",
            "category": "neutron_config",
            "form_name": "neutronForm",
            "data": {
                "openvswitch": {
                    "tenant_network_type": {
                        "label": "Tenant Network Type",
                        "input_type": "dropdown",
                        "mapped_key": [
                            "name", "is_required", "options", "default_value"
                        ],
                        "content_data": {
                            "gre": [{
                                "label": "Tunnel ID Ranges",
                                "is_required": "true",
                                "display_type": "dropdown_text_multiple",
                                "name": "tunnel_id_ranges",
                                "hint": "1:1000",
                            }],
                            "vlan": [{
                                "label": "Network Vlan Ranges",
                                "is_required": "true",
                                "display_type": "dropdown_text_multiple",
                                "name": "network_vlan_ranges",
                                "hint": "physnet1:2700:2999"
                            }, {
                                "label": "Bridge Mapping",
                                "is_required": "true",
                                "display_type": "dropdown_text_multiple",
                                "name": "bridge_mappings",
                                "hint": "physnet1:br-eth1"
                            }]
                        }
                    }
                }
            }
        }
    },{
        "ha_proxy": {
            "accordion_heading": "High Availability Configurations",
            "data_structure": "form",
            "category": "ha_proxy",
            "form_name": "haForm",
            "data": {
                "vip": {
                    "label": "VIP",
                    "mapped_key": [
                        "name", "is_required", "display_type"
                    ]
                }
            }
        }
    }]
}