1. 25 Mar, 2014 1 commit
  2. 27 Feb, 2014 1 commit
  3. 06 Feb, 2014 2 commits
  4. 14 Jan, 2014 2 commits
    • Ken Barber's avatar
      PDB-307 Fix ruby-1.8.5 support for using bundler during rspec tests · 61e1fe7e
      Ken Barber authored
      Ruby 1.8.5 has some limitations in what it supports as far as gems go and
      since we have been attempting as part of PDB-307 to use bundler more often
      we have hit some problems.
      
      * nokogiri, the version that beaker expects is not supported
      * rake > 0.8.7 is also not supported
      
      This patch removes beaker as a dependency while we run the rspec tests. This
      will avoid pulling in lots of extra gems and hopefully speed up the whole
      thing anyway. I've also applied this to the travis tests to hopefully speed
      those up as well.
      
      There is also now a conditional to change the dependencies for `rake` when
      applied to a 1.8.5 ruby.
      Signed-off-by: default avatarKen Barber <ken@bob.sh>
      61e1fe7e
    • Ken Barber's avatar
      PDB-307 Fix private method rspec failures due to mocha 1.0.0 upgrade · 7cd3337b
      Ken Barber authored
      This patch fixes an rspec failure we were having on the terminus due to the
      recent bump from mocha from 0.14.1 to 1.0.0.
      
      Previously mocha seems to have been ignoring private method calls for whatever
      reason. With the new version of mocha it is throwing exceptions (as it rightly
      should).
      
      This patch removes the use of the `private` declaration and converts all of
      these methods to be document `@api private` in YARD instead migrating a
      language enforcement to a documentation enforcement instead.
      
      As an aside I noticed that char_encoding.rb had a 3 space indent convention,
      this has been converted to 2 space as per our standard.
      Signed-off-by: default avatarKen Barber <ken@bob.sh>
      7cd3337b
  5. 29 Nov, 2013 1 commit
  6. 24 Sep, 2013 2 commits
    • Ken Barber's avatar
      Migrate acceptance tests to use beaker gem · a15d1779
      Ken Barber authored
      This patch modifies the acceptance test framework to use the beaker gem, which
      has changed quite a lot from the old puppet-acceptance framework which it
      originated from.
      
      Changes:
      
      * Since node configuration no longer lives in the harness, relevant
        configuration for nodes, and ec2 templates have been moved into our own
        repository.
      * Vagrant/Virtualbox definitions were added, so we now have vagrant based
        testing through beaker!
      * A rake task has been added to wrap the execution of beaker,
        providing an environment variable interface for better integration with
        jenkins and other CI tools.
      * The system has included documentation now in acceptance/README.md to explain
        how to run the tests, and the various options in
        acceptance/options/README.md have been merged into this file.
      * The old --install methodology has now been deprecated, so git installation
        handling has been moved into our own setup stages.
      * The old IniFile code has been removed in favour of using the inifile gem, in
        anticipation of a cutover to the puppet master running helpers in beaker.
      * An effort to move the puppet installation helpers out of tests and into
        helpers.rb has been made.
      * Some setup re-ordering and restructing has occurred to fix some of the
        organisation and ordering issues I was seeing. In particular, the repo
        installation now occurs in its own step.
      * We know support the concept of having Puppet installed via a package, even
        though PuppetDB is installed from source.
      * In general more work on source based testing, this will need continued
        development as we'll need it for PR testing, but a good start on this has been
        made.
      * test_config is now a helper, instead of requiring it for every test.
      * Various fixed to redhat_dev_* to support more source based installation work.
      * We know flush iptables before we begin, to avoid firewall issues for ec2 and
        vagrant tests.
      * Obviously tests have been modified to use the new library locations across
        the board.
      * New temporary files have been added to .gitignore.
      Signed-off-by: default avatarKen Barber <ken@bob.sh>
      a15d1779
    • Brian Cain's avatar
      (maint) Change Helper require Path · 55918ad7
      Brian Cain authored
      Prior to this commit, it tried to load the harness using the current
      directory using the fact that ruby 1.8.7 added pwd to the load path.
      This commit changes that because we are testing it for 1.9.3, which does
      not do that.
      55918ad7
  7. 16 Sep, 2013 1 commit
    • Ken Barber's avatar
      tests: add ruby tests to travis-ci · 4313bbba
      Ken Barber authored
      This switches the TravisCI matrix to support different languages so we can do
      tests for Clojure and for our Terminus as well for PR's.
      
      For now this just supports the default version of Ruby that travis-ci provides
      due to hassles trying to use 'rvm use' in a script. Later on we'll extend the
      tooling to support this but for now having at least the default (1.9.3) tested
      is going to get us further then where we are now.
      Signed-off-by: default avatarKen Barber <ken@bob.sh>
      4313bbba
  8. 10 Apr, 2013 2 commits