Small resources fixes

This commit is contained in:
Przemyslaw Kaminski 2015-07-17 09:30:59 +02:00
parent 55306b9e3b
commit 7c777eabaa
5 changed files with 11 additions and 1 deletions

View File

@ -18,7 +18,7 @@ def test(resource):
resp_json = resp.json()
assert 'services' in resp_json
service = [s for s in resp_json['services'] if s['name'] == resource.name][0]
service = [s for s in resp_json['services'] if s['name'] == resource.args['endpoint_name'].value][0]
service_id = service['id']
assert service['description'] == resource.args['description'].value

View File

@ -8,6 +8,7 @@ input:
db_name:
schema: str!
value:
login_user:
schema: str!
value:
@ -17,6 +18,7 @@ input:
login_port:
schema: int!
value:
ip:
schema: str!
value:

View File

@ -4,6 +4,8 @@
- name: mariadb db
mysql_db:
name: {{ db_name }}
#collation: utf8_encode_ci
encoding: utf8
state: present
login_user: root
login_password: {{ login_password }}

View File

@ -5,6 +5,9 @@ input:
image:
schema: str!
value: mariadb
root_user:
schema: str!
value: root
root_password:
schema: str!
value: mariadb

View File

@ -11,9 +11,11 @@ input:
user_name:
schema: str!
value:
db_name:
schema: str!
value:
login_password:
schema: str!
value:
@ -23,6 +25,7 @@ input:
login_user:
schema: str!
value:
ip:
schema: str!
value: