summaryrefslogtreecommitdiffstats
path: root/mcp/reclass/classes/cluster/mcp-common-ha/openstack_control_init.yml
blob: 7310833b8092246828c6368f0f0e355b98fd10f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
##############################################################################
# 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:
  - system.keystone.client.single
  - system.keystone.client.service.aodh
  - system.keystone.client.service.ceilometer
  - system.keystone.client.service.nova21
  - system.keystone.client.service.nova-placement
  - system.keystone.client.service.cinder3
  - system.keystone.client.service.designate
  - system.keystone.client.service.gnocchi
  - system.keystone.client.service.panko
  - system.keystone.client.service.barbican
  - system.keystone.client.v3.service.keystone
parameters:
  keystone:
    client:
      enabled: true
      resources:
        v3:
          enabled: true
      server:
        identity:
          admin:
            api_version: 3
        admin_identity:
          admin:
            api_version: ''
            user_domain_name: 'Default'
            project_domain_name: 'Default'
def_keys = tpl.type_definition.relationship.keys() self.assertEqual( expected_relationship, sorted([x.type for x in def_keys])) self.assertEqual( expected_capabilities_names, sorted([x.capability_name for x in def_keys])) def test_relationships(self): expected_relationship = ['tosca.relationships.HostedOn'] expected_relatednodes = ['app_server'] for tpl in self.tosca.nodetemplates: rels = tpl.relationships if rels: if tpl.name == 'nodejs': self.assertEqual( expected_relationship, sorted([x.type for x in tpl.relationships.keys()])) self.assertEqual( expected_relatednodes, sorted([y.name for y in tpl.relationships.values()])) def test_related_nodes(self): expected_nodejs = ['app_server'] actual_nodejs = [] for tpl in self.tosca.nodetemplates: if tpl.name == 'nodejs': for node in tpl.related_nodes: actual_nodejs.append(node.name) self.assertEqual(sorted(actual_nodejs), expected_nodejs)