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() resp_json = resp.json()
assert 'services' in 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'] service_id = service['id']
assert service['description'] == resource.args['description'].value assert service['description'] == resource.args['description'].value

View File

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

View File

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

View File

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

View File

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