Hi, I am working on some tools that read and write pp files, and I wonder if there are some pp files available somewhere that can be used to test a parser. I am especially interested in if there are some tests written that capture invalid syntax. - henrik -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
--parseonly option will catch parsing mistakes. On Fri, Dec 10, 2010 at 8:00 AM, Henrik Lindberg < henrik.lindberg.private@gmail.com> wrote:> Hi, > I am working on some tools that read and write pp files, and I wonder if > there are some pp files available somewhere that can be used to test a > parser. > I am especially interested in if there are some tests written that capture > invalid syntax. > > - henrik > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Hi, I understand that - I wonder if there is a set of pp files available for testing the parser. - henrik On Dec 10, 2010, at 5:04 PM, Dan Bode wrote:> --parseonly option will catch parsing mistakes. > > On Fri, Dec 10, 2010 at 8:00 AM, Henrik Lindberg <henrik.lindberg.private@gmail.com > > wrote: > Hi, > I am working on some tools that read and write pp files, and I > wonder if there are some pp files available somewhere that can be > used to test a parser. > I am especially interested in if there are some tests written that > capture invalid syntax. > > - henrik > > -- > You received this message because you are subscribed to the Google > Groups "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com > . > For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en > . > > > -- > You received this message because you are subscribed to the Google > Groups "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com > . > For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en > .-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On 12/10/2010 05:42 PM, Henrik Lindberg wrote:> Hi, > I understand that - I wonder if there is a set of pp files available for > testing the parser.http://projects.puppetlabs.com/projects/puppet/wiki/Puppet_Patterns -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Thanks, that is a good starting point. Are the underlying pp files available in git by any chance? - henrik On Dec 10, 2010, at 5:47 PM, Felix Frank wrote:> On 12/10/2010 05:42 PM, Henrik Lindberg wrote: >> Hi, >> I understand that - I wonder if there is a set of pp files >> available for >> testing the parser. > > http://projects.puppetlabs.com/projects/puppet/wiki/Puppet_Patterns > > -- > You received this message because you are subscribed to the Google > Groups "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com > . > For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en > . >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On 12/10/2010 05:58 PM, Henrik Lindberg wrote:> Thanks, > that is a good starting point. Are the underlying pp files available in > git by any chance?If not, wget and a little awk should go a long way... -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Sat, Dec 11, 2010 at 03:42, Henrik Lindberg <henrik.lindberg.private@gmail.com> wrote:> I understand that - I wonder if there is a set of pp files available for > testing the parser.Puppet labs don''t have a hidden repository of them to use as part of testing or anything like that. What I would probably do is head on over to the puppet forge, and download a whole mess of modules from there. A bit more searching will also turn up a few places that have put their entire puppet configuration - or much of it - online, such as the lab42 collection: http://projects.puppetlabs.com/projects/1/wiki/Lab42_Infrastructure Out of curiosity, what are you trying to do with your parser? Luke recently posted some notes on the puppet dev group about a portable subset of the language for use as an interchange format (though I don''t know what subset that would be. :) Regards, Daniel -- ✣ Daniel Pittman ✉ daniel@rimspace.net ☎ +61 401 155 707 ♽ made with 100 percent post-consumer electrons -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Daniel Pittman wrote:> On Sat, Dec 11, 2010 at 03:42, Henrik Lindberg > <henrik.lindberg.private@gmail.com> wrote: > >> I understand that - I wonder if there is a set of pp files available for >> testing the parser. > > Puppet labs don''t have a hidden repository of them to use as part of > testing or anything like that.I have something that I have been using - but never fleshed out to completion - like this for testing: https://github.com/jamtur01/puppet-testing-module Regards James -- Puppet Labs - http://www.puppetlabs.com C: 503-734-8571 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Don''t forget about example42.com On Fri, Dec 10, 2010 at 3:26 PM, James Turnbull <james@puppetlabs.com>wrote:> Daniel Pittman wrote: > > On Sat, Dec 11, 2010 at 03:42, Henrik Lindberg > > <henrik.lindberg.private@gmail.com> wrote: > > > >> I understand that - I wonder if there is a set of pp files available for > >> testing the parser. > > > > Puppet labs don''t have a hidden repository of them to use as part of > > testing or anything like that. > > I have something that I have been using - but never fleshed out to > completion - like this for testing: > > https://github.com/jamtur01/puppet-testing-module > > Regards > > James > > -- > Puppet Labs - http://www.puppetlabs.com > C: 503-734-8571 > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Thanks everyone for all the tips on where I can get pp files for testing. Very helpful. Some answers to questions below: On Dec 10, 2010, at 11:32 PM, Daniel Pittman wrote:>> I wonder if there is a set of pp files available for testing the >> parser. > > Puppet labs don''t have a hidden repository of them to use as part of > testing or anything like thatok, I was asking in case there were a bunch of test files under some less than obvious name in git :)> Out of curiosity, what are you trying to do with your parser? Luke > recently posted some notes on the puppet dev group about a portable > subset of the language for use as an interchange format (though I > don''t know what subset that would be. :) >I have created an EMF ecore model for puppet manifests. The technology I use (Xtext) helps with generating a .pp parser that constructs instances of this model. In the process I also get a serializer (i.e. model to pp text, to binary, to XML etc. etc.), as well as a syntax aware editor (with template and quickfix support). This enables us to use model to model transformations and lots of other modeling tools. Primarily we want to transform (complete and sections of) other ecore models into puppet. I think I have covered the complete puppet language so I wanted to get a larget set of files to test with than the few I created by hand. Regards - henrik -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Sat, Dec 11, 2010 at 10:17 AM, Henrik Lindberg < henrik.lindberg.private@gmail.com> wrote:> Thanks everyone for all the tips on where I can get pp files for testing. > Very helpful. > > Some answers to questions below: > > On Dec 10, 2010, at 11:32 PM, Daniel Pittman wrote: > > I wonder if there is a set of pp files available for testing the parser. > > > Puppet labs don''t have a hidden repository of them to use as part of > testing or anything like that > > > ok, I was asking in case there were a bunch of test files under some less > than obvious name in git :) > > Out of curiosity, what are you trying to do with your parser? Luke > recently posted some notes on the puppet dev group about a portable > subset of the language for use as an interchange format (though I > don''t know what subset that would be. :) > > > I have created an EMF ecore model for puppet manifests. The technology I > use (Xtext) helps with generating a .pp parser that constructs instances of > this model. > In the process I also get a serializer (i.e. model to pp text, to binary, > to XML etc. etc.), as well as a syntax aware editor (with template and > quickfix support). This enables us to use model to model transformations and > lots of other modeling tools. Primarily we want to transform (complete and > sections of) other ecore models into puppet. > > I think I have covered the complete puppet language so I wanted to get a > larget set of files to test with than the few I created by hand. >Henrik, I''m sure I''m not the only one who is really interested by this description :) Are you planning to open up this code?> > Regards > - henrik > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. >-- Nigel Kersten - Puppet Labs - http://www.puppetlabs.com -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
- henrik 11 dec 2010 kl. 19:28 skrev Nigel Kersten <nigel@puppetlabs.com>:> On Sat, Dec 11, 2010 at 10:17 AM, Henrik Lindberg <henrik.lindberg.private@gmail.com> wrote: > > I have created an EMF ecore model for puppet manifests. The technology I use (Xtext) helps with generating a .pp parser that constructs instances of this model. > In the process I also get a serializer (i.e. model to pp text, to binary, to XML etc. etc.), as well as a syntax aware editor (with template and quickfix support). This enables us to use model to model transformations and lots of other modeling tools. Primarily we want to transform (complete and sections of) other ecore models into puppet. > > I think I have covered the complete puppet language so I wanted to get a larget set of files to test with than the few I created by hand. > > Henrik, I''m sure I''m not the only one who is really interested by this description :) > > Are you planning to open up this code?That is the intent. I have some internal milestones to hit, and expect to share the work once it is a bit more stable. Regards - henrik -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.