45 Commits

Author SHA1 Message Date
Emilien Macchi
54c4715f1c Add CI scripts
Add CI scripts for:
- lint
- syntax 3 and 4
- unit
- beaker

Change-Id: I38dd2000996d20ebe51bd64fb831c5b352439eec
2016-07-29 11:22:11 -04:00
Iury Gregory Melo Ferreira
4ac65a2f02 Remove default_facts
New modules does not have tests with
the @defaults_facts, so we don't need.

Change-Id: I15fcedf5f4d24059e1692ef7f49bf4050093cab9
2016-06-05 02:05:19 -03:00
Iury Gregory Melo Ferreira
c28c30bc04 Add nodepool-xenial.yml file
To run Beaker jobs in OpenStack Infra, we need
this file so we run tests on the right nodeset.

Change-Id: I3c690c8967e45b860990bd5c435a6505d8683f6a
2016-06-02 23:52:59 -03:00
Emilien Macchi
c04dcd866c Add other-requirements.txt for bindep
Bindep is a binary automation tool used in openstack-infra.  With it,
projects can better control the default packages installed into the
OS. Because we are using puppet, we actually don't want any packages
installed by default as to better test our manifests.

Change-Id: I6dd27d73c32f8930b327df28b85e7ff7a595fc30
Co-Authored-By: Paul Belanger <pabelanger@redhat.com>
2016-05-19 19:10:03 +02:00
Iury Gregory Melo Ferreira
b96c911c15 Update Gemfile for new modules
Gemfile should rely on puppet-openstack_spec_helper for dependencies

Change-Id: I3c4e560b1930ea1ae4d76833a29293cd86f1fd9d
2016-04-18 16:22:04 -03:00
Emilien Macchi
9d32951493 add puppet-octavia to managed modules
Change-Id: Ic45337d3200d225ced474a0ea4afa43b4f750012
2016-03-09 17:34:21 -05:00
Xingchao Yu
fe42bd9149 Add puppet-oslo managed module
This patch aims to add puppet-oslo module to modulesync list.

Change-Id: I404ae67ce54a1121ff2eb367f14e234625d65db1
2016-01-26 01:40:31 +08:00
Emilien Macchi
8a3b54955f 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: Id8a2ab10329c05af5b766e2a441a744ced073671
2016-01-22 09:52:27 -05:00
Emilien Macchi
dc45bc4a23 Use puppet-openstack_spec_helper for Rakefile & spec_helper_acceptance
Clean-up the code for Rakefile & spec_helper_acceptance by using the
puppet-openstack_spec_helper library.

Change-Id: Ic75bfdd4cbb2a92446b608f3fdef712ac1adbaba
2016-01-18 09:03:10 -05:00
Alex Schultz
1eed8eb9d3 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: I561ea844c05481a804975e77ff5f45002449f9a5
2016-01-14 20:40:32 +03:00
Emilien Macchi
eb8cb654ae stop managing puppet-tuskar
Tuskar is dead and the module it not maintained anymore in master.

Change-Id: I24d6123de270cb713ee3896cb7100bc080b40198
2016-01-07 10:25:37 -05:00
Sebastien Badia
466f506647 Add new managed modules
Adding new managed modules to modulesync list (magnum, rally and vitrage)

Change-Id: I9fae4a75187307f20898954e9f4c6e2e10835329
2016-01-02 08:02:06 -05:00
Cody Herriges
4143229d58 Enable spec_helper.rb for os_service_default
This commit will add code to spec_helper.rb to create the
  os_service_default fact before all rspec-puppet tests.

  This is needed so that the $::os_service_default pattern is testable
  and we don't overwrite changes to modules that have been converted by
  hand.

Change-Id: I657e9b550e45dfbcf0bf54d94a1a12ef6f3b03db
2015-11-24 12:13:41 -08:00
Gael Chamoulaud
ee4fc8359a Remove class_parameter_defaults puppet-lint check
- Why? because we disable a check which has been deleted for a
  while from puppet-lint code!

Change-Id: I0a01bc41ef15d0312520cfaf71cb704843cbe824
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2015-11-05 16:08:48 +01:00
Emilien Macchi
7cbc7a0054 Update managed_modules.yml
Update managed_modules with recent added modules

Change-Id: I6e62e7395b8345cb988faa38eda0320813034ae9
2015-10-12 17:09:44 -04:00
Emilien Macchi
cb721e379c Drop fixtures usage
* install r10k gem
* add openstack/ to .gitignore
* Update Rakefile to not use fixtures anymore

See https://review.openstack.org/#/c/226830/ for background.

Change-Id: I4513491b4f53c74acd433c0045c5f3c956bc06ce
2015-10-12 20:59:43 +00:00
Emilien Macchi
c1f5f5c8fd README: fix markdown syntax for code highlighting
Change-Id: I8caeacd3a843e04364d28233e9c425cd536f811c
2015-10-08 14:19:42 -07:00
Jenkins
0f4e21a482 Merge "sample config (update namespace)" 2015-08-21 12:42:42 +00:00
Jenkins
8abd1bdd8d Merge "spec: Fix nodesets errors (x64 for el and amd64 for debian)" 2015-08-21 12:42:36 +00:00
Paul Belanger
bbce883607 Create sync-projects.sh script
This is our hook from the propose_update.sh script. It is also
dependant on the following features upstream:

  https://github.com/puppet-community/modulesync/pull/53
  https://github.com/puppet-community/modulesync/pull/54

Change-Id: I8b9e7edd564e55eaba8ed95294bd185f0fe2a585
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-08-12 14:37:52 -04:00
Sebastien Badia
b3adf21864 sample config (update namespace)
Change-Id: I04a0bf57cafa13a47a9b5d787f9b2089ca380975
2015-08-04 17:27:18 +02:00
Sebastien Badia
02f2f615ef spec: Fix nodesets errors (x64 for el and amd64 for debian)
Change-Id: I1ad6648018d503dd94cbfe71515966a09124fbaa
2015-08-04 17:26:10 +02:00
Yanis Guenane
92f5a8c196 Add missing remote_branch and pre_commit_script
Adding missing remote_branch and pre_commit_script parameters in the
default modulesync.yml. This is necessary for the post-merge hook[1] to
work.

[1] https://review.openstack.org/#/c/189216/

Change-Id: I5203e3c7b84c808bef61542efd2c4d973729b425
2015-07-29 10:46:02 +02:00
Yanis Guenane
8e678a83e5 Enable a default modulesync.yml for infra purpose
A sample is already specified if someone wants to run msync from its
computer, but the goal here is that a commit into this repo will
automatically update all the repo in managed_modules.yml.

For that reason we provide a default modulesync.yml that will be used by
a hook in openstack-infra to sync the change across all the modules

Change-Id: Ia140d0b7bc669e0fc2caf073ab1f2798b6958f55
2015-07-23 14:58:08 +02:00
Jenkins
8b44b7d8d2 Merge "spec: Add spec_helper_acceptance to common files" 2015-07-13 15:58:05 +00:00
Sebastien Badia
14e06567f3 spec: Add spec_helper_acceptance to common files
Since Colleen patchs, we now uses beaker_zuul_cloner across
all modules for acceptances tests, this file doesn't contain
specifics settings.

https://review.openstack.org/#/q/topic:beaker_zuul_cloner,n,z

Change-Id: I90d9c63da9732dde6cffd0292b694455a388d733
2015-07-10 18:25:59 +02:00
Jenkins
bf53898d7a Merge "Synchronize nodeset (split trusty and centos)" 2015-07-08 19:25:49 +00:00
Sebastien Badia
99641538cc Synchronize nodeset (split trusty and centos)
Separate nodepool files to have trusty & centos7 support
in OpenStack infra.

Fix default definition and centos/trusy defs using Colleen
trusty changes on https://review.openstack.org/#/c/182080

Change-Id: Idc677c214b1ea431b96f18ab6f1d3e0de7e76585
2015-07-08 17:44:25 +02:00
Jenkins
deedb1e400 Merge "gemfile: Install beaker-puppet_install_helper" 2015-07-03 12:54:55 +00:00
Jenkins
c0548f571e Merge "Move to rspec-puppet 2.2.0" 2015-07-01 15:31:50 +00:00
Sebastien Badia
e7f81fa264 gemfile: Install beaker-puppet_install_helper
Update Gemfile, according recent changes for BEAKER_provision=no

Change-Id: I1f736fe5f21e61ebd9e2b02814d93df762a9e328
2015-07-01 10:03:38 +02:00
Jenkins
360026bb54 Merge "Add a readme for this repository" 2015-06-30 14:15:31 +00:00
Jenkins
cc40b2c161 Merge "Manage default configs" 2015-06-29 23:21:20 +00:00
Cody Herriges
3f65858a40 Move to rspec-puppet 2.2.0
This commit modifies our default config to include rspec-puppet 2.2.0
  from 2.1.0.  This is to address the issue with helper code not being
  loaded properly, fixed by
  d4278834d5.

Change-Id: I1ef9a7c55aff05fb94da16884d04e922d2c99486
2015-06-17 18:35:21 +00:00
Sebastien Badia
a0841c293e Manage default configs
Add default config for Gemfile, puppet-lint disabled checks,
  nodepool files for centos7 and trusty, and a sample
  modulesync.yaml for configuring msync.

Co-Authored-By: Cody Herries <cody@puppetlabs.com>
Change-Id: Ib00a5b3b9c62f063b0b88b2d883e0ebad6506840
2015-06-17 11:34:41 -07:00
Jeremy Stanley
f321206ad7 Update .gitreview file for project rename
Change-Id: I1adddec04869f03245416035da1eca21d0dce76a
2015-06-12 23:12:30 +00:00
Sebastien Badia
4b198fa897 Add a readme for this repository
Copy/paste and update the puppetlabs/modulesync_configs readme.

Change-Id: I3bf5f41b0005973d3609c8d564ae115281d84425
2015-06-09 19:13:00 +02:00
Jenkins
361463e2ef Merge "Add gitignore file (and ignore common files)" 2015-06-08 21:22:03 +00:00
Jenkins
c798216da9 Merge "Add rspec coverage output" 2015-06-08 21:20:48 +00:00
Sebastien Badia
c0300b24e6 rake: Add a rake task to easily run acceptance tests
Add and document 'rake acceptance' task for rspec spec/acceptance
spec tests.

Change-Id: Iedcda73fa67b90ed2150c4d2356699061b53eff9
2015-05-21 15:41:23 -07:00
Sebastien Badia
a236986b09 Add rspec coverage output
This checks which Puppet resources have been explicitly checked as part
of the current test run and outputs both a coverage percentage and a
list of untouched resources.

Change-Id: Idef8ed412e3fe5e15691cc60b1ef04104967ee0a
2015-05-19 15:15:17 -07:00
Yanis Guenane
73680b0d5c Acceptance test synchronize nodeset around modules
An effort to provide beaker tests for the different puppet modules has
been started. The first module to implement test is puppet-glance[1].
Following this review we set the different nodesets file here so they
can be shared amongst all the modules.

[1] https://review.openstack.org/#/c/174659/

Change-Id: I9a2296bdc6824e8a27e3dd223cab9d40202ea8f5
2015-04-28 15:51:14 +02:00
Sebastien Badia
e911c3d572 Add gitignore file (and ignore common files)
Ignore module/ (cloned modules location), modulesync.yml because this
file is user specific, vi swap files, and Gemfile.lock

Change-Id: I8048a29f3958bfd541b81bbca8456603a10bb373
2015-04-27 22:21:38 +02:00
Yanis Guenane
ca33eb9108 puppet-modulesync-configs: Initial commit
With this inital commit we set two things :

 * The list of project that will be managed by this repository[1]
 * The default template for shared resources, inspired from puppetlabs
   own modulesync_configs[2]

The actual content (ie. data) should be discussed during a meeting.

[1]
https://github.com/openstack-infra/project-config/blob/master/gerritbot/channels.yaml#L1043-L1069
[2] https://github.com/puppetlabs/modulesync_configs

Change-Id: I03b4f07594361ef50ed20589571b2d4c3072cbff
2015-04-20 16:31:57 +02:00
OpenStack Project Creator
b731422a07 Added .gitreview 2015-03-13 08:30:42 +00:00