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")
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")
def test_empty_parameters(self): builder_parameters = {} self.assertEqual({}, gather_parameters(self.sd, builder_parameters))