1. 18 May, 2017 1 commit
    • Giulio Fidente's avatar
      Update tox configuration · 0ff9c53a
      Giulio Fidente authored
      Update the tox configuration to pull in the openstack
      upper-constraints.txt when running releasenotes. This will
      fix the releasenotes job that is currently failing due to
      a new version of sphinx. Additionally this change includes
      updates from puppet-modulesync-configs.
      
      Change-Id: I1430a2502ecc877bd38cd741510958a026cba628
      Co-Authored-By: 's avatarAlex Schultz <aschultz@redhat.com>
      0ff9c53a
  2. 07 Jul, 2016 1 commit
    • Emilien Macchi's avatar
      Re-boostrap beaker tests · fb88544a
      Emilien Macchi authored
      Current puppet-ceph CI is broken for all functional jobs.
      I would like to restart from scratch the way we test the module.
      
      1) centos7: deploy Jewel using buildlogs.centos.org repo
      CentOS SIG does not provide packaging to deploy the Jewel repository,
      let's install it by hand.
      
      2) Remove RGW tests for now. We'll re-add them later, in a
      puppet-openstack-integration scenario.
      
      3) Reset spec files to match with other Puppet OpenStack modules.
      
      4) On CentOS, use systemd resource and not sysvinit.
      
      5) Fix keyring idempotency with SElinux.
      
      Change-Id: Ie9ba521cdb4ac6823746d37bb5d1697e274e4119
      fb88544a
  3. 22 Jan, 2016 1 commit
  4. 30 Jun, 2015 1 commit
  5. 28 Feb, 2015 2 commits
    • Sebastien Badia's avatar
      Add Puppet 4.x lint checks · 6fd0f87f
      Sebastien Badia authored
      This changes the puppet-lint requirement to 1.1.x, so that we can use
      puppet-lint plugins. Most of these plugins are for 4.x compat, but some
      just catch common errors.
      
      Change-Id: If9f969703d99f3a45fd1822208a2b1342f13e49a
      6fd0f87f
    • Sebastien Badia's avatar
      Add puppet metadata.json lint · 94c8f1ed
      Sebastien Badia authored
      This commit adds the rake task `metadata_lint` for checks and lint
      of puppet metadata.json file.
      
      Change-Id: I68cb07dc8a7719325634a0c57fcb649f5379aec6
      94c8f1ed
  6. 27 Feb, 2015 1 commit
    • Sebastien Badia's avatar
      spec: updates for rspec-puppet 2.x and rspec 3.x · cf647849
      Sebastien Badia authored
      This patch aim to update our specs test in order to work with the new
      rspec-puppet release 2.0.0, in the mean time, we update rspec syntax
      in order to be prepared for rspec 3.x move.
      
      In details:
      
        * Convert 'should' keyword to 'is_expected.to' (prepare rspec 3.x)
        * Upgrade and pin rspec-puppet from 1.0.1 to 2.0.0
        * Clean Gemfile (remove over-specificication of runtime deps of puppetlabs_spec_helper)
      
      Change-Id: I512ffe4ac12763ec5a4bea935001088bad231cc1
      cf647849
  7. 26 Feb, 2015 1 commit
    • Sebastien Badia's avatar
      Check and lint documentation parameters · 63cbbda8
      Sebastien Badia authored
      This puppet-lint plugin checks if all parameters are documented. This commit
      also fix lint issues (due to puppet-lint upgrade) and puppet strings errors.
      
      Change-Id: If2e2be0e0c28649b0293f2988faf59b2a0e73437
      63cbbda8
  8. 03 Feb, 2015 2 commits
  9. 20 Jun, 2014 1 commit
    • Clayton O'Neill's avatar
      Normalize Gemfile & pin tests to rspec < 2.99 · 73114e00
      Clayton O'Neill authored
      Pin to rspec < 2.99 until rspec-puppet officially supports rspec 3.x.
      This is to avoid warnings due to deprecated matchers in the
      rspec-puppet gem.
      
      This change is also intended to normalize the Gemfile for all stackforge
      puppet modules.  This should facilitate pinning gem versions when
      releasing new stable branches, since the same diff can be used for all
      repos.
      
      Change-Id: Ie36f3537c46a86e6d3d00ebd9abf62b44dbe0540
      Partial-Bug: #1326034
      73114e00
  10. 11 Mar, 2014 1 commit
    • Loic Dachary's avatar
      remove rspec-system dependencies from Gemfile · 17ce6461
      Loic Dachary authored
      rspec-system will fail to install on jenkins slaves. It does not matter
      anyway since it is not going to be used for unit tests. Create a
      Gemfile-rspec-system to be used when running integration tests. Although
      it would be convenient to be able to
      
         BUNDLE_GEMFILE=Gemfile-rspec-system bundle exec rake spec:system
      
      it will fail because the environment variable won't be propagated where
      it should.
      
         .rspec_system/vagrant_projects/x64/Gemfile-rspec-system not found
      
      The README.md file is updated to simply mv to Gemfile which is good
      enough for the environment running the integration tests.
      
      A bug was filed against openstack-ci to resolve this installation
      problem but it is unclear if and how it could be fixed
      https://bugs.launchpad.net/openstack-ci/+bug/1290710
      
      Change-Id: I0bff624892837536419bdbdd6651b009600fe9c6
      Signed-off-by: 's avatarLoic Dachary <loic@dachary.org>
      17ce6461
  11. 26 Feb, 2014 1 commit
    • Loic Dachary's avatar
      attach disks when running integration tests · 13522e16
      Loic Dachary authored
      The vagrant instances run for integration tests are attached a 10GB thin
      provisioned disk. It will show on /dev/sdb an allow for tests when
      creating an OSD on a physical device.
      
      This feature has been added to a fork of rspec-system (
      https://gitorious.org/rspec-system/rspec-system/commit/6b1860fc5ab98337aa6e8aafac2ca2679f11ee47
      ) which is hosted on gitorious instead of github. There is no hope of
      getting the patch accepted because rspec-system is retired.
      
      The test instances are renamed (first.vm => first, second.vm => second)
      without a dot in their name because it makes it easier to derive a disk
      name that does not conflict with the restrictions imposed by vagrant on
      disk file names.
      
      Change-Id: I1964c7f6160bd16b92a7e4fd6dc9444c22cfd60b
      Signed-off-by: 's avatarLoic Dachary <loic@dachary.org>
      13522e16
  12. 18 Dec, 2013 1 commit
    • Loic Dachary's avatar
      ceph::mon create or destroy monitors · 66d91a3d
      Loic Dachary authored
      * ceph::mon resource
      
        create a MON if ensure == present or destroy one if absent
      
        all combinations of keys / keyring as specified in the blueprint are
        supported
      
      * integration tests cover all cases and unit tests are implemented to
        ensure syntax correctness
      
      * minor corrections to other classes are included ( two nodes for
        integration tests, default values for the ceph class etc. )
      
      * A ceph::mons class wrapper is created for compatibility with
        scenario_node_terminus
      
      Closes-Bug: #1251443
      
      Change-Id: Ic56a4124738006f7946ee9c166295f7048cb7854
      Signed-off-by: 's avatarLoic Dachary <loic@dachary.org>
      66d91a3d
  13. 27 Oct, 2013 1 commit
    • Loic Dachary's avatar
      integration tests environment · 7557d5e8
      Loic Dachary authored
      Use https://github.com/puppetlabs/rspec-system-puppet to implement
      vagrant based integration tests. The README.md is updated with
      instructions to run the integration tests locally. These tests could be
      run by a deamon listening to the gerrit stream, when a changeset is
      submitted for review, to prove that they do not introduce a regression.
      
      The dependencies from .fixtures.yml have been manually replicated to
      spec/spec_helper_system.rb . rspec system puppet is still young and
      people do this. It will be a burden only for long term maintenance. And
      when it does, in a few months from now, it is safe to assume that rspec
      system puppet will have support for reading from an existing file. The
      alternative is that rspec system puppet is obsoleted / dead, in which
      case this is even a bigger problem. In any case, if work had to be done
      to fix this, it should be a patch against rspec system puppet and not
      part of puppet-ceph.
      https://github.com/puppetlabs/rspec-system-puppet/issues/5
      
      A test for the ceph::repo class is included to demonstrate the
      environment actually works. It is not meant to fully test the ceph::repo
      integration this would require a separate patch. rspec-system-puppet
      requires at least one file in spec/system otherwise it will fail with
      an unrelated error:
      
         Could not autoload puppet/provider/ceph_config/ini_setting: undefined
         method `provider' for nil:NilClass (Puppet::Error)
      
      This test can be removed as soon as another is added.
      
      Change-Id: Ib65120a58ce203126be5897f602e280c474642dc
      Signed-off-by: 's avatarLoic Dachary <loic@dachary.org>
      7557d5e8
  14. 21 Oct, 2013 1 commit
    • Dan's avatar
      Add project files · 2183e90c
      Dan authored
      This commit adds the initial project files.
      
      Change-Id: If26c9a8d19e26181d568d615dc71bb4721fc4aa1
      2183e90c