@Test
public void testPuppetValidation_invalidUpdatePp() throws Exception {

	File appDir = this.folder.newFolder();
	Component comp = new Component( "toto" ).installerName( "puppet" );
	File directory = ResourceUtils.findInstanceResourcesDirectory( appDir, comp );
	Assert.assertTrue( new File( directory, "roboconf_toto/manifests" ).mkdirs());
	File targetFile = new File( directory, "roboconf_toto/manifests/update.pp" );
	File inputFile = TestUtils.findTestFile( "/recipes/invalid-update.pp" );
	Utils.copyStream( inputFile, targetFile );
	List<ModelError> errors = RecipesValidator.validateComponentRecipes( appDir, comp );
	Assert.assertEquals( 1, errors.size());
	Assert.assertEquals( ErrorCode.REC_PUPPET_MISSING_PARAM_IMPORT_DIFF, errors.get( 0 ).getErrorCode());
}