Пример #1
0
 def test_invalid_stack_specific_override(self):
     sdef = self.sd
     sdef["parameters"] = {"Address": "10.0.0.1", "Foo": "BAR"}
     builder_parameters = {"FAKE::Address": "192.168.1.1"}
     result = gather_parameters(sdef, builder_parameters)
     self.assertEqual(result["Address"], "10.0.0.1")
     self.assertEqual(result["Foo"], "BAR")
Пример #2
0
 def test_generic_builder_override(self):
     sdef = self.sd
     sdef["parameters"] = {"Address": "10.0.0.1", "Foo": "BAR"}
     builder_parameters = {"Address": "192.168.1.1"}
     result = gather_parameters(sdef, builder_parameters)
     self.assertEqual(result["Address"], "192.168.1.1")
     self.assertEqual(result["Foo"], "BAR")
Пример #3
0
 def test_invalid_stack_specific_override(self):
     sdef = self.sd
     sdef["parameters"] = {"Address": "10.0.0.1", "Foo": "BAR"}
     builder_parameters = {"FAKE::Address": "192.168.1.1"}
     result = gather_parameters(sdef, builder_parameters)
     self.assertEqual(result["Address"], "10.0.0.1")
     self.assertEqual(result["Foo"], "BAR")
Пример #4
0
 def test_generic_builder_override(self):
     sdef = self.sd
     sdef["parameters"] = {"Address": "10.0.0.1", "Foo": "BAR"}
     builder_parameters = {"Address": "192.168.1.1"}
     result = gather_parameters(sdef, builder_parameters)
     self.assertEqual(result["Address"], "192.168.1.1")
     self.assertEqual(result["Foo"], "BAR")
Пример #5
0
 def test_empty_parameters(self):
     builder_parameters = {}
     self.assertEqual({}, gather_parameters(self.sd, builder_parameters))
Пример #6
0
 def test_empty_parameters(self):
     builder_parameters = {}
     self.assertEqual({}, gather_parameters(self.sd, builder_parameters))