diff --git a/CHANGELOG b/CHANGELOG index e4c18d1..8375f05 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,7 @@ v0.3.7 * [BGBUILD-276] Import files into appliance via appliance definition file (Files section) +* [BGBUILD-305] Incorrect version information in 0.9.6 schema causing validation errors v0.3.6 diff --git a/rubygem-boxgrinder-core.spec b/rubygem-boxgrinder-core.spec index 85c0625..0bd801a 100644 --- a/rubygem-boxgrinder-core.spec +++ b/rubygem-boxgrinder-core.spec @@ -79,6 +79,7 @@ popd * Tue Aug 30 2011 Marek Goldmann - 0.3.7-1 - Upstream release: 0.3.7 - [BGBUILD-276] Import files into appliance via appliance definition file (Files section) +- [BGBUILD-305] Incorrect version information in 0.9.6 schema causing validation errors * Tue Aug 23 2011 Marek Goldmann - 0.3.6-1 - Upstream release: 0.3.6 diff --git a/spec/appliance-parser-spec.rb b/spec/appliance-parser-spec.rb index 4016e7b..0eb0774 100644 --- a/spec/appliance-parser-spec.rb +++ b/spec/appliance-parser-spec.rb @@ -46,7 +46,7 @@ module BoxGrinder lambda { @parser.parse_definition(File.read("#{File.dirname(__FILE__)}/rspec/src/appliances/invalid-yaml.appl"), false) - }.should raise_error(ApplianceValidationError, "The appliance definition was invalid according to schema 0.9.0. See log for details.") + }.should raise_error(ApplianceValidationError, "The appliance definition was invalid according to schema 0.9.6. See log for details.") end it "should validate 0.9.0 version definition without error" do diff --git a/spec/helpers/appliance-definition-helper-spec.rb b/spec/helpers/appliance-definition-helper-spec.rb index 73ee6c5..adbde9c 100644 --- a/spec/helpers/appliance-definition-helper-spec.rb +++ b/spec/helpers/appliance-definition-helper-spec.rb @@ -193,15 +193,15 @@ def prepare_helper end it "should read invalid YAML content" do #ApplianceValidationError: : - lambda { @helper.read_definitions("@$FEWYERTH") }.should raise_error(ApplianceValidationError, "The appliance definition was invalid according to schema 0.9.0. See log for details.") + lambda { @helper.read_definitions("@$FEWYERTH") }.should raise_error(ApplianceValidationError, "The appliance definition was invalid according to schema 0.9.6. See log for details.") end it "should catch exception if YAML parsing raises it" do - lambda { @helper.read_definitions("!!") }.should raise_error(ApplianceValidationError, "The appliance definition was invalid according to schema 0.9.0. See log for details.") + lambda { @helper.read_definitions("!!") }.should raise_error(ApplianceValidationError, "The appliance definition was invalid according to schema 0.9.6. See log for details.") end it "should catch exception if YAML file parsing raises it" do - lambda { @helper.read_definitions("#{File.dirname(__FILE__)}/../rspec/src/appliances/invalid-yaml.appl") }.should raise_error(ApplianceValidationError, "The appliance definition was invalid according to schema 0.9.0. See log for details.") + lambda { @helper.read_definitions("#{File.dirname(__FILE__)}/../rspec/src/appliances/invalid-yaml.appl") }.should raise_error(ApplianceValidationError, "The appliance definition was invalid according to schema 0.9.6. See log for details.") end it "should return nil of unsupported file format" do