Commit Graph

9 Commits

Author SHA1 Message Date
Tobias Urdin bbae6c2e38 Use openstack_spec_helper from zuul checkout
Change-Id: Id7f17000614aecf2e1c884ce7af54cb5dcd93226
2020-08-30 23:08:40 +02:00
ZhongShengping 025cea78b6 Move to opendev
Change-Id: I2aa8fc319fdb389f03d7be65f136099239a0ca28
2019-04-21 14:44:50 +08:00
ZhongShengping 7424a6b582 Load puppet-openstack_spec_helper locally during tests
Change-Id: If4c988ecacfd48250f9fca1b4ea16fffa249a8f4
Co-Authored-By: Mohammed Naser <mnaser@vexxhost.com>
2018-02-12 10:53:41 +08:00
Alex Schultz 999f520df6 Update tox configuration
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: I2692646f2f078a8040625375d69b2c3af98d8a9e
2017-05-17 09:52:11 -06:00
Emilien Macchi 61294d45e9 Gemfile: rely on puppet-openstack_spec_helper for dependencies
Rely on puppet-openstack_spec_helper gemspec file for managing Gems
dependencies.

Change-Id: I6d2b033ef69f16c2afbc76a44e326235031652f8
2016-03-29 21:37:45 -04:00
Emilien Macchi 34f11f98b5 drop mock dependency
mock is not used anywhere in the module, let's drop it.
This patch will help to hit this bug:
https://launchpad.net/bugs/1492636

Change-Id: I5e02370b5ab269eea88c6b29a21e4b6eaf7f5ac8
2016-01-22 10:14:22 -05:00
Alex Schultz 5fdd1876a4 Add rspec-puppet-facts to the spec_helper
This change adds the rspec-puppet-facts gem to the spec helper so that
we can centralize the management of the base operating systems that we
support. rspec-puppet-facts allows us to simplify our unit tests and
provides a more complete list of Operating Systems and their associated
facts for the unit tests.  With this change we can now loop over and
test CentOS, Debian, Fedora, RedHat, and Ubuntu by simply providing a
list of supported os to rspec-puppet-facts.

Additionally this change includes a central object for managing our
supported os list for rspec-puppet-facts and providing our default facts
like os_service_default. This central object should replace the usage of
@default_facts within the unit tests for each module.

Change-Id: Ib61c316e965662ee66c0c0a1f14759c3b7c888bb
2016-01-14 18:46:24 +03:00
Emilien Macchi bfe139e965 Try to use zuul-cloner to prepare fixtures
In OpenStack Infra, we would like to run Puppet unit tests that
sometimes depends on other Puppet OpenStack modules.
Example: a patch in puppet-openstacklib that needs to be tested in puppet-nova.

This patch modifies the Rakefile to:
* clean spec_prep and spec_clean Rake tasks
* use openstack/puppet-openstack-integration/install_modules_unit.sh script
  to clone modules.
* do not use .fixtures.yaml file to clone modules and rely on
  zuul-cloner or git.
* Add openstack/ in gitignore so we never commit the
  puppet-openstack-integration repository (can happen when spec_clean
  did not run but you want to submit the patch anyway)
* Allow to run a custom Puppetfile if PUPPETFILE env is exported. It
  will allow people to test the module with the dependencies they like,
  feature we had with .fixtures.yaml.

Also add 'r10k' to Gemfile.

That way, we will be able to use zuul dependencies and run tests accross
modules like we do with functional testing.

Change-Id: Ie3476db0bcc7f4ab08d64dd63e71958e8b3f5ab2
2015-10-08 15:23:04 -07:00
Richard Raseley 33c0956a92 puppet-zaqar: Initial commit
This is the initial commit for puppet-zaqar.
It has been automatically generated using cookiecutter[1] and msync[2]

[1] https://github.com/openstack/puppet-openstack-cookiecutter
[2] https://github.com/openstack/puppet-modulesync-configs

Change-Id: Iaca8f89dd22320ec0e08bfb8ec9b5912ad68c9fb
Co-Authored-By: yguenane@redhat.com
2015-08-25 09:59:38 -07:00