Fix TOSCA type for Docker container
Use Docker specific type instead of generic application type. Change-Id: I8bab0d50156cccb000b680cf4174ac6245c1ff42
This commit is contained in:
@@ -17,7 +17,7 @@ topology_template:
|
|||||||
node_templates:
|
node_templates:
|
||||||
# The MYSQL container based on official MySQL image in Docker hub
|
# The MYSQL container based on official MySQL image in Docker hub
|
||||||
mysql_container:
|
mysql_container:
|
||||||
type: tosca.nodes.Container.Application
|
type: tosca.nodes.Container.Application.Docker
|
||||||
requirements:
|
requirements:
|
||||||
- host: mysql_runtime
|
- host: mysql_runtime
|
||||||
artifacts:
|
artifacts:
|
||||||
@@ -824,7 +824,7 @@ class ToscaTemplateTest(TestCase):
|
|||||||
def test_containers(self):
|
def test_containers(self):
|
||||||
tosca_tpl = os.path.join(
|
tosca_tpl = os.path.join(
|
||||||
os.path.dirname(os.path.abspath(__file__)),
|
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"})
|
ToscaTemplate(tosca_tpl, parsed_params={"mysql_root_pwd": "12345678"})
|
||||||
|
|
||||||
def test_endpoint_on_compute(self):
|
def test_endpoint_on_compute(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user