On 4 November 2014 14:32, tracyde <trac...@gmail.com> wrote:
> I am new to ruby development and want to integrate my report parser with
> TravisCI. I have read articles and blog posts on how to integrate Puppet
> modules with rspec, puppet-lint, and travisci but those are not directly
> applicable to modules that do nothing but provide lib instances (facts,
> report parsers, etc.)
>
> Here is a link to my code on github
> https://github.com/tracyde/puppet-influxdb-reporter and my puppet forge link
> https://forge.puppetlabs.com/tracyde/influxdb_reporter
>
> The module submits metrics from puppet reports to an InfluxDB database.
>

Good idea, I'm also pretty interested in InfluxDB.

Regarding testing things in lib, ultimately it's just ruby code which
is good and bad, in that any rspec tutorial will be useful, but bad in
the sense that most won't be specific to Puppet.

Hopefully the following is useful. This is a small module of mine
(alas not a report processor) that has a test suite:

https://github.com/garethr/garethr-digitalocean/tree/master/spec/unit

If the InfluxDB client is using HTTP then you can likely do something
similar to this with webmock.

Gareth

> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to puppet-dev+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-dev/7856672a-bbde-4a4b-af41-99d49f50d4ab%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



-- 
Gareth Rushgrove
@garethr

devopsweekly.com
morethanseven.net
garethrushgrove.com

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-dev/CAFi_6yLrh9%2BKQShvgDcCO1EPJpsx-CEbbWJR8Y68Y-jagFF2xg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to