Merge "Change Docker resource mapping name"
This commit is contained in:
commit
ac40fa9e6e
@ -273,7 +273,7 @@ class DockerContainer(resource.Resource):
|
|||||||
|
|
||||||
def resource_mapping():
|
def resource_mapping():
|
||||||
return {
|
return {
|
||||||
'OS::Docker::Container': DockerContainer,
|
'DockerInc::Docker::Container': DockerContainer,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ template = '''
|
|||||||
"Parameters": {},
|
"Parameters": {},
|
||||||
"Resources": {
|
"Resources": {
|
||||||
"Blog": {
|
"Blog": {
|
||||||
"Type": "OS::Docker::Container",
|
"Type": "DockerInc::Docker::Container",
|
||||||
"Properties": {
|
"Properties": {
|
||||||
"image": "samalba/wordpress",
|
"image": "samalba/wordpress",
|
||||||
"env": [
|
"env": [
|
||||||
@ -51,8 +51,8 @@ class DockerContainerTest(HeatTestCase):
|
|||||||
def setUp(self):
|
def setUp(self):
|
||||||
super(DockerContainerTest, self).setUp()
|
super(DockerContainerTest, self).setUp()
|
||||||
utils.setup_dummy_db()
|
utils.setup_dummy_db()
|
||||||
resource._register_class('OS::Docker::Container',
|
for res_name, res_class in docker_container.resource_mapping().items():
|
||||||
docker_container.DockerContainer)
|
resource._register_class(res_name, res_class)
|
||||||
|
|
||||||
def create_container(self, resource_name):
|
def create_container(self, resource_name):
|
||||||
t = template_format.parse(template)
|
t = template_format.parse(template)
|
||||||
|
Loading…
Reference in New Issue
Block a user