Example #1
0
 def test_convert_unsupported_res_prop_kilo_ver(self):
     unsupported_res_prop_dict = {'OS::Neutron::Port': {
         'port_security_enabled': 'value_specs', }, }
     dummy_heat_dict = yaml.safe_load(_get_template(
         'hot_tosca_openwrt.yaml'))
     expected_heat_dict = yaml.safe_load(_get_template(
         'hot_tosca_openwrt_kilo.yaml'))
     toscautils.convert_unsupported_res_prop(dummy_heat_dict,
                                             unsupported_res_prop_dict)
     self.assertEqual(expected_heat_dict, dummy_heat_dict)
Example #2
0
 def test_convert_unsupported_res_prop_kilo_ver(self):
     unsupported_res_prop_dict = {'OS::Neutron::Port': {
         'port_security_enabled': 'value_specs', }, }
     dummy_heat_dict = yaml.safe_load(_get_template(
         'hot_tosca_openwrt.yaml'))
     expected_heat_dict = yaml.safe_load(_get_template(
         'hot_tosca_openwrt_kilo.yaml'))
     toscautils.convert_unsupported_res_prop(dummy_heat_dict,
                                             unsupported_res_prop_dict)
     self.assertEqual(expected_heat_dict, dummy_heat_dict)