Fix TOSCA type for Docker container

Use Docker specific type instead of generic application type.

Change-Id: I8bab0d50156cccb000b680cf4174ac6245c1ff42
This commit is contained in:
sahdev zala
2016-11-30 12:14:00 -05:00
parent e691376d1b
commit d59e1503cc
2 changed files with 2 additions and 2 deletions

View File

@@ -17,7 +17,7 @@ topology_template:
node_templates:
# The MYSQL container based on official MySQL image in Docker hub
mysql_container:
type: tosca.nodes.Container.Application
type: tosca.nodes.Container.Application.Docker
requirements:
- host: mysql_runtime
artifacts:

View File

@@ -824,7 +824,7 @@ class ToscaTemplateTest(TestCase):
def test_containers(self):
tosca_tpl = os.path.join(
os.path.dirname(os.path.abspath(__file__)),
"data/containers/test_container_docker_my_sql.yaml")
"data/containers/test_container_docker_mysql.yaml")
ToscaTemplate(tosca_tpl, parsed_params={"mysql_root_pwd": "12345678"})
def test_endpoint_on_compute(self):