Skip to content

Commit

Permalink
changes requested in PR
Browse files Browse the repository at this point in the history
  • Loading branch information
earthmant committed Mar 24, 2019
1 parent 846155f commit a8b6c28
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
7 changes: 6 additions & 1 deletion .cicd/resource_interface_mappings.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@

class InterfaceBase(object):

type_name = None
client_name = None
get_method_name = None
delete_method_name = None

def __init__(self, resource_id, client_config):
self.id = resource_id
self.client_config = client_config
Expand Down Expand Up @@ -103,6 +108,6 @@ class Server(InterfaceBase):
class FloatingIP(InterfaceBase):

type_name = 'cloudify.nodes.openstack.FloatingIP'
client_name = 'compute'
client_name = 'network'
get_method_name = 'get_ip'
delete_method_name = 'delete_ip'
4 changes: 3 additions & 1 deletion .cicd/test_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ def check_main_blueprint(self):
self.inputs = dict(self.client_config)
self.inputs.update(
{
'external_network_id': 'dda079ce-12cf-4309-879a-8e67aec94de4',
'external_network_id': os.getenv(
'external_network_id',
'dda079ce-12cf-4309-879a-8e67aec94de4'),
'example_subnet_cidr': '10.10.0.0/24',
'name_prefix': 'blueprint_',
'image_id': 'e41430f7-9131-495b-927f-e7dc4b8994c8',
Expand Down
2 changes: 1 addition & 1 deletion examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

These blueprints are used primarily for testing use cases.

The local blueprints are using for testing in a special environment. They have several syntactical peculiarities that make them not good examples for basing your work off of.
The local blueprints are using for testing in a special environment. They have several syntactical peculiarities and are not therefore representative of best practices.

The manager blueprints are good for learning best practices.
2 changes: 1 addition & 1 deletion examples/local/port_fixed_ip.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,4 @@ node_templates:
client_config: *client_config
use_external_resource: true
resource_config:
id: { get_input: network_id }
id: { get_input: network_id }
2 changes: 1 addition & 1 deletion examples/local/project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ node_templates:
roles:
- test_role_1
- test_role_2
- test_role_3
- test_role_3

0 comments on commit a8b6c28

Please sign in to comment.