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