Commit Graph

27 Commits

Author SHA1 Message Date
Samuel Cassiba d2ff4496bb Added systemd unit, style and lint fixes for chefdk
- cinder-group-active is still SysV, but can and will start via systemd if
  coaxed to do so.
- Style and lint fixes for newer chefdk
- Removed ancient Gemfile
- Rewrote metadata.rb for readability

Change-Id: I4c26aea78220eb20fc4e5e964af93414855df5f6
2017-08-02 02:15:54 -04:00
Jan Klare 16a6af5000 move from bundler to chefdk
- deprecated Gemfile
- Updated TESTING.md and README.md
- updated Rakefile to use chef exec insted of bundle exec
- replaced Runner with SoloRunner in specs

Change-Id: If3e3b54c9dbaa8bb51164bc85fd93ff5fc54ec4d
2015-04-28 17:56:15 +02:00
Mark Vanderwiel 3d566f0146 Initial kilo updates
Change-Id: Idf43a4af9c5a2d666fd3938a63fb8e7f5c74a5be
Partial-Bug: #1426424
2015-02-27 14:46:22 -06:00
Chen Zhiwei 7d6e0a866a Remove rake from Gemfile
Change-Id: I6f424b11c4df3424e294f48d0ad367a1a5daf12f
Partial-Bug: #1411473
2015-01-20 09:21:04 +08:00
Jenkins 2dadfdc864 Merge "Bump Chef gem to 11.16" 2014-10-09 16:52:14 +00:00
Ionuț Arțăriși 17eff9523c add a Rakefile to structure test runs
Having a Rakefile will allow us to change the actual test commands on
our side rather than relying on changes to the openstack-infra
repository. This should make it a lot faster to change things, but also
easier to test since the jenkins jobs are actually run in this
repository, not the openstack-infra one.

This commit defines the jobs we previously had defined in Jenkins and
uses 'high-level' naming consistently (i.e. lint, style vs. foodcritic,
rubocop).

There is also a :clean task to help with deleting the files generated by
the other jobs.

Also changed foodcritic to run on the source cookbook rather than the
one installed by berks, see
e.g. https://github.com/berkshelf/berkshelf/issues/931#issuecomment-29668369

Change-Id: If366dff9394f416b0704bea89ae50c1c472606bf
blueprint: rakefile
2014-09-30 14:45:50 +02:00
Mark Vanderwiel 6705377ff5 Bump Chef gem to 11.16
blueprint bump-chef-to-11-16

Change-Id: I56495e05041eeb82a197ce5a354eb487d57bb9f2
2014-09-29 11:48:50 -05:00
Jan Klare 8951fd1b83 Updated berkshelf to 3.1.5
Updated berkshelf from 2.0.18 to 3.1.5 in Gemfile and added supermarket
source to Berksfile

Change-Id: I76a16fb6fb9fd4743027fb22403eacbda09647ce
Implements: blueprint update-berkshelf
2014-08-18 09:58:33 +02:00
Mark Vanderwiel 12d0e9826a 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: I8b6858e811cc42ea53ec81ee4e3e70c65d4d444e
Partial-Bug: 1349865
2014-07-29 15:38:49 -05:00
JJ Asghar 1bc1272ade This is to get closer to 100% chefspec coverage
Ok, I admit it, it's only 94% but it's getting closer.

Change-Id: Ice7c47863a6e545a15366cd909e4d7c37cd397c8
2014-07-14 17:24:39 -05:00
Mark Vanderwiel ff47560ac4 Update Gemfile and remove lock
berkshelf 2.0.18 needed for Supermarket
Gem lock file not useful in master branch

Change-Id: I24ab284ff012b5baa447d28eb2d1e4a41203a486
2014-07-09 09:36:10 -05:00
Stephan Renatus 29aafd424f 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: If9c4e70f4b3e99cf75bb595ca577be01a072eced
2014-03-28 17:21:14 +01:00
Andy McCrae 9ee4c9e65a 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']
- Adjust the Gemfile to use fauxhai 2.1.0
- Adjust the Gemfile.lock

Change-Id: Ib1fc86af1306d5443721400589a8c830263c0767
Addresses: blueprint fauxhai-cleanup
2014-02-19 11:16:18 +00:00
Christopher H. Laco ef8c535cc8 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
- Add Includes for non-existent folders to Includes so they
  automatically cover future additions

Change-Id: I9224b785f50103d348e3b16ea24e5dc8cab84c62
Implements: blueprint lint-and-unit-testing-for-havana
2014-02-04 15:27:56 -05:00
Matt Ray 60e37c5eb0 Unified Rubocop cleanups under single file.
Consolidate all the .rubocop.yml into a single file, finished out cleanups for
all the Ruby files.

Change-Id: I92d5983724d5d0185cd25bea6a0f46657a6c05d4
Addresses: blueprint rubocop-for-block-storage
2014-01-17 15:35:20 -06:00
Matt Ray 018d125a51 Initial rubocop support for recipes.
Per the mailing list thread, introducing Rubocop as a replacement for Tailor.
Assuming Jenkins likes this, more pedantic patches will follow to make Rubocop
happy. So far this is just spacing issues and adding UTF-8 headers, but more
work will need to be done to remove all of the changes for the .rubocop-todo.yml

Change-Id: I590ac5ec03ce6a00dd73027d6798e36105a32af1
2014-01-09 12:38:07 -06:00
Matt Ray 0ef57f0473 Rubocop support for metadata.rb and Gemfile
Replace double-quotes with single-quotes for now, expect this to act as a gate
in the future.

Change-Id: I10ff8b23517cb334905b162ce14059dbf23d7bc8
2013-12-24 09:40:34 -06:00
Matt Ray ba2d3227f3 Initial rubocop support.
Per the mailing list thread, introducing Rubocop as a replacement for Tailor.
Assuming Jenkins likes this, more pedantic patches will follow to make Rubocop
happy.

rubocop              | 24 files inspected, 1617 offences detected

Change-Id: I10077146fbaa015c4b74cac826761de273c5639d
2013-12-20 16:26:45 -06:00
Chen Zhiwei 9cf9a0adfa Upgrade to Havana release
Also upgrade gems:
- berkshelf, ~> 2.0.10
- chefspec, ~> 3.0.2
- foodcritic, ~> 3.0.3
And update the DEPRECATION keywords

Change-Id: I8f8bf961ec065944696d4c85120aefe6c2bf76bb
2013-12-12 21:06:04 -05:00
alop d8a7f219c1 Upgrading 'stevedore' module for bug 1169730
https://bugs.launchpad.net/ubuntu/+source/cinder/+bug/1169730
Running into this on Ubuntu 12.04

Simply upgrading to a newer 'stevedore' resolved the issues with
the cinder scheduler.

Change-Id: I162c6714d56650fb891ec772bf71126856c82d8c
2013-08-26 11:28:27 -07:00
John Dewey 2f7915360a Clearer registraton LWRP tests
This is a much clearer way to test LWRPs are executed with
the proper options.  The previous approach was hacky, and
relied upon too much stubbing and ruby magik.  Also, updated
to berkshelf 2.0 where Berksfile.lock is respected.  This
is necessary for berkshelf to lock to the proper cookbook
deps in openstack's CI system.

Change-Id: I21c1c000581f2d3c94ff2f9628f0cea0f6536013
2013-06-12 22:34:32 -07:00
sean 1b08dc7153 Add tailor ruby style check
Partial fix for bug 1185536

Change-Id: I38071d2078822a2eeaf698529dde38f74c2b33cb
2013-06-10 14:23:39 -07:00
John Dewey e2fc07597b Test cleanups for chefspec 1.3.0
ChefSpec 1.3.0 allows tests to evaluate guards.  Wired in
this cookbook to use that functionality.  Made tests a
bit clearer, and better utilize the block_storage_stubs.

Change-Id: Ib2e3ee8e00bdc5fb5dcda6b48beb0c405e9d8b92
2013-06-07 17:00:07 -07:00
sean 16d36e2acc 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

Partial fix for bug 1188345

Change-Id: I440c69a0d6eba46b9cf69559a652264e719714d6
2013-06-06 16:48:28 -07:00
sean f52a5ec5ce 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: Ia10a0256b782eafe70363e737f4f79ce2bb8be82
2013-06-06 13:20:48 -07:00
John Dewey c1e16f840f Removed `glance_api_chef_role`
This is dead code and should be removed.  Also,
needed to update tests, so that they passed.

Change-Id: Ib7df8f6036ccc1ace58854c713f6ce646e09820f
2013-06-04 10:39:56 -07:00
John Dewey 9ae54fc736 Initial testing via chefspec of all recipes
* Did not implement template testing ATM.  Need to go through
  and add those.  Hoping to get some help with that.
2013-05-05 22:17:48 -07:00