Exemple #1
0
 def test_invalid_stack_specific_override(self):
     sdef = self.sd
     sdef["parameters"] = {"Address": "10.0.0.1", "Foo": "BAR"}
     build_action_parameters = {"FAKE::Address": "192.168.1.1"}
     result = _gather_parameters(sdef, build_action_parameters)
     self.assertEqual(result["Address"], "10.0.0.1")
     self.assertEqual(result["Foo"], "BAR")
Exemple #2
0
 def test_generic_build_action_override(self):
     sdef = self.sd
     sdef["parameters"] = {"Address": "10.0.0.1", "Foo": "BAR"}
     build_action_parameters = {"Address": "192.168.1.1"}
     result = _gather_parameters(sdef, build_action_parameters)
     self.assertEqual(result["Address"], "192.168.1.1")
     self.assertEqual(result["Foo"], "BAR")
Exemple #3
0
 def test_invalid_stack_specific_override(self):
     sdef = self.sd
     sdef["parameters"] = {"Address": "10.0.0.1", "Foo": "BAR"}
     build_action_parameters = {"FAKE::Address": "192.168.1.1"}
     result = _gather_parameters(sdef, build_action_parameters)
     self.assertEqual(result["Address"], "10.0.0.1")
     self.assertEqual(result["Foo"], "BAR")
Exemple #4
0
 def test_generic_build_action_override(self):
     sdef = self.sd
     sdef["parameters"] = {"Address": "10.0.0.1", "Foo": "BAR"}
     build_action_parameters = {"Address": "192.168.1.1"}
     result = _gather_parameters(sdef, build_action_parameters)
     self.assertEqual(result["Address"], "192.168.1.1")
     self.assertEqual(result["Foo"], "BAR")
Exemple #5
0
 def test_empty_parameters(self):
     build_action_parameters = {}
     self.assertEqual({}, _gather_parameters(self.sd,
                                             build_action_parameters))
Exemple #6
0
 def test_empty_parameters(self):
     build_action_parameters = {}
     self.assertEqual({}, _gather_parameters(self.sd,
                                             build_action_parameters))