'Test stack loading with disabled parameter value validation.'

def test_encrypt_parameters_false_parameters_stored_plaintext(self):

    tmpl = template_format.parse('\n                                heat_template_version:    2013-05-23\n                                parameters:\n                                                param1:\n                                                                type:    string\n                                                                description:    value1.\n                                                param2:\n                                                                type:    string\n                                                                description:    value2.\n                                                                hidden:    true\n                                resources:\n                                                a_resource:\n                                                                type:    GenericResourceType\n                                ')
    env1 = environment.Environment({'param1': 'foo', 'param2': 'bar'})
    self.stack = stack.Stack(self.ctx, 'test', template.Template(tmpl, env=env1))
    cfg.CONF.set_override('encrypt_parameters_and_properties', False)
    self.stack.store()
    db_stack = stack_object.Stack.get_by_id(self.ctx, self.stack.id)
    params = db_stack.raw_template.environment['parameters']
    self.assertEqual('foo', params['param1'])
    self.assertEqual('bar', params['param2'])
