@staticmethod
    def _prepare_stack_template(res_num):
        template = {
            "heat_template_version": "2014-10-16",
            "description": "Test template for rally",
            "resources": {}
        }
        rand_string = {"type": "OS::Heat::RandomString"}
        for i in range(res_num):
            template["resources"]["TestResource%d" % i] = rand_string
        return template
dataset/ETHPy150Open openstack/rally/rally/plugins/openstack/context/heat/stacks.py/StackGenerator._prepare_stack_template/original