diff --git a/resources/keystone_service_endpoint/test.py b/resources/keystone_service_endpoint/test.py index 34f7b66d..edeede03 100644 --- a/resources/keystone_service_endpoint/test.py +++ b/resources/keystone_service_endpoint/test.py @@ -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 diff --git a/resources/mariadb_db/meta.yaml b/resources/mariadb_db/meta.yaml index 285aafdb..f60ddfb6 100644 --- a/resources/mariadb_db/meta.yaml +++ b/resources/mariadb_db/meta.yaml @@ -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: diff --git a/resources/mariadb_keystone_db/actions/run.yml b/resources/mariadb_keystone_db/actions/run.yml index 4b315b9b..3c1d25d6 100644 --- a/resources/mariadb_keystone_db/actions/run.yml +++ b/resources/mariadb_keystone_db/actions/run.yml @@ -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 }} diff --git a/resources/mariadb_service/meta.yaml b/resources/mariadb_service/meta.yaml index e4efaa80..e540d499 100644 --- a/resources/mariadb_service/meta.yaml +++ b/resources/mariadb_service/meta.yaml @@ -5,6 +5,9 @@ input: image: schema: str! value: mariadb + root_user: + schema: str! + value: root root_password: schema: str! value: mariadb diff --git a/resources/mariadb_user/meta.yaml b/resources/mariadb_user/meta.yaml index fe179095..56c70a30 100644 --- a/resources/mariadb_user/meta.yaml +++ b/resources/mariadb_user/meta.yaml @@ -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: