Commit Graph

20 Commits

Author SHA1 Message Date
Samuel Cassiba 012902ad92 Added cellv2 support
- Added basic cellv2 recipe, as it is required from Ocata on
- Style and lint fixes to support newer chefdk
- Rewrote metadata.rb for readability
- Removed ancient Gemfile

Change-Id: I97b453fc419bfbf01679dadf39a256b1f0f99859
2017-08-10 17:35:07 -04:00
Jan Klare d3a29ed8c2 moving from bundler to chefdk
- deprecated Gemfile
- updated Rakefile to use 'chef exec' instead of 'bundle exec'
- updated TESTING.md
- replaced Runner in specs with SoloRunner for new chefspec version
- initialized file_cache_path to make git_sync spec for docker work

Change-Id: I845c712f2d0d216d9d4a9d32c28ac4b03e96109a
2015-04-27 22:58:25 +02:00
Mark Vanderwiel e12c8a9a85 Initial kilo updates
Change-Id: I385fb3e522b1080835c3feadfc1699cc7bf08db8
Partial-Bug: #1426424
2015-02-27 14:40:17 -06:00
Mark Vanderwiel 568b90abdd Bump Chef gem to 11.16
blueprint bump-chef-to-11-16

Change-Id: Ice457bf1a37864a0d427551f8005de2c918acae8
2014-10-06 13:55:07 -05:00
Jan Klare ed61c09041 Updated berkshelf to 3.1.5
Updated berkshelf from 2.0.18 to 3.1.5 in Gemfile and added supermarket
source to Berksfile. Also removed sysctl from berksfile since it was
already removed from metadata in 7.0.2 and is not needed anymore.

Change-Id: I8bc2164f742df808f4f6b0f13b6bc566fafdbde3
Implements: blueprint update-berkshelf
2014-08-20 10:34:40 +02:00
galstrom21 83facf36a6 Setting up repo for master Juno Branch
* Update metadata version
* Removing Strainer file
* Adding Gemfile.lock to .gitignore
* Updating Gems
  * chef (11.12.0)
  * chefspec (4.0.0)
  * rspec (3.0.0)

Change-Id: I5eb3a68694647617a970e7960d56b2f59c2f53e1
Partial-Bug: 1349865
2014-07-29 11:33:14 -05:00
Mark Vanderwiel aaa3d488e1 Update Gemfile and remove lock
berkshelf 2.0.18 needed for Supermarket
Gem lock file not useful in master branch

Change-Id: I13f0e98fcfadc0efbbd55e53a34bec2027db71b9
2014-07-09 09:38:38 -05:00
Stephan Renatus 6822da08f9 Update ChefSpec to 3.4.0
This change gives us new capabilities, such as matching notifies and
subscribes of resources.

Implements: blueprint chefspec-3-4
Change-Id: I4842259e06f7213e9d7d20b719561e18b0c9767e
2014-03-28 17:20:04 +01:00
Andy McCrae 5acd143e9c Cleanup node['cpu']['total'] work-around for fauxhai
The fauxhai fix for the cpu stanza has merged and is available in
fauxhai version 2.1.0 so reverting the workaround patch and ensuring
fauxhai 2.1.0 is used.

- Remove the node.set for ['cpu']['total'] in the spec tests
- Adjust the Gemfile to use fauxhai 2.1.0
- Adjust the Gemfile.lock

Change-Id: I75e1837871b9ad6d02c40ab8a9d5b127a685b66f
Addresses: blueprint fauxhai-cleanup
2014-02-18 11:46:16 +00:00
Christopher H. Laco 3cc89cabf9 Upgrade/Update rubocop
Now that almost all of the rubocop blueprints have been completed, make
one final pass through all of the cookbooks ensuring they're all in
sync with each other.

- Upgrade rubocop to 0.18.1
- Fix violations caused by 0.18.1 upgrade
- Move Excludes for non-existent folders to Includes so they
  automatically cover future additions

Change-Id: I00254b346718c1c70e8ad6f8b97e4dbf3f56396f
Implements: blueprint lint-and-unit-testing-for-havana
2014-02-04 15:37:38 -05:00
Matt Ray 019b631d0e Update the Gemfile to sync with latest Chef and ChefSpec.
Trying to keep all of the Gemfiles in sync so every cookbook has the same Gem
dependencies.

Change-Id: I34244b3098f2a55b9df841950e576ad6d02c89ad
2014-01-09 15:42:27 -06:00
Matt Ray f2e08cf983 Filling out initial rubocop support.
https://blueprints.launchpad.net/openstack-chef/+spec/lint-and-unit-testing-for-havana
Removing tailor, cleaning up metadata and Gemfile and adding TESTING.md

Change-Id: Ia84f3de61ff07b32d0cba15146a971fdf9e7d099
2014-01-08 16:32:48 -06:00
Ionuț Arțăriși ae9dafb73b Upgrade development dependencies
berkshelf ~> 2.0.10
chefspec ~> 3.0.2
foodcritic ~> 3.0.3

Change-Id: Ifafd78188eeb4f62d55389a4b0456a05c442dc6c
2013-12-18 02:13:03 -05:00
John Dewey 34da9ece10 Removed the use of non-standard ohai plugin
We now have a helper method `#address_for` to return the
IP of a given interface. Switched out the ohai use
in favor of `#address_for`. Also, updated berkshelf
to 2.x which handles dep resolution correctly. I run
into problems getting berkshelf to lock to the new 0.3.0
openstack-common w/o updating berkshelf.

Change-Id: Iaf39cee98589d8d1c4b90e610b94e5440ac51fd8
2013-06-28 21:50:18 -07:00
sean f3d6b771b4 Use strainer to isolate and test individual cookbooks
Included:
- Add strainer gem
- Update test-related gems
- Add Strainer file
- Remove run_tests.bash
- Update .gitignore
- Update README file
- Update specs to use require_relative

Partial fix for bug 1188345

Change-Id: I6cb9e535212346cccb45f8c41c647b8daa8a4c7d
2013-06-10 08:37:21 -07:00
sean 7a304e1b02 Update Chef dependency to Chef 11
Also add dependency on json <= 1.7.7, required by Chef 11.

Resolves problem: Bundler could not find compatible versions for gem
"json" (required for chef and berkshelf).

Partial fix for bug #1183540

Change-Id: Ibabe5d0afc7dcfc9871197b889b11f84e18be250
2013-06-09 21:28:15 -07:00
John Dewey 9566be4779 Changed #config_by_role keystone handling
Identity attributes are no longer at the top level of
the node.  Need to properly access the new attributes.
Tests needed to be adjusted so that they would pass.

Change-Id: I0a697c217364a26ae97cf31d37a32e97f11c2e85
2013-06-03 10:07:30 -07:00
Craig Tracey 28f21cf75b Add tailor to the compute cookbook
Add a tailor style guide check to be incorporated with the standard
run_tests. These checks are the defaults with the exception of the 80
character line limit. As this is being added to the standard set of
tests being executed during CI, this will add an extra step - locally
this was costing me ~20sec per run.

Change-Id: Ie78bc7c969e0c8d3563d76829b25c19b66341292
2013-05-29 11:52:13 -04:00
John Dewey 4bcd9d20c8 Added initial chefspec tests
Does not include template rendering tests.
Could use some help with these, as they are fairly
important.
2013-05-03 23:38:22 -07:00
Jay Pipes 46a69a6340 Lint and test-kitchen fixes
* Adds test kitchen infrastructure
* Fixes lint errors produced from foodcritic
2012-11-14 16:19:52 -05:00