Commit Graph

15 Commits

Author SHA1 Message Date
Samuel Cassiba 814f027230 Deprecated nova-cert, fixups for Ocata
- nova-cert is deprecated and causes build failures if attempts to
  utilize it are made.
- nova-placement-api package is prefixed with openstack- in RDO.

Change-Id: Iea2070467503f9a434e927e2580ef2b4135e98f7
2017-04-14 06:44:07 -07: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 e8189f2fe9 Allow packages to be updatable
In order for package updates to occur, package resources need to use
the upgrade action.  This is first phase of blueprint, to get some
consistency, next phase is to allow some update control.

Change-Id: I91d6a47c3b5787df65f78e3e86941de1fb28583d
Implements: blueprint allow-package-updates
2014-05-07 09:53:44 -05:00
galstrom21 206ea8c9ad Refactoring ChefSpec tests
Change-Id: I85ea61fa5e3a9ae51b5f2be00bc7e81f87ddcd85
Addresses: blueprint refactor-spec-files
2014-03-16 22:22:29 -05: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
Andy McCrae be23ca0ef7 Add workaround for node['cpu']['total'] until fauxhai fix merges
- Set the node['cpu']['total'] value manually for each RUNNER
- This can be removed once https://github.com/customink/fauxhai/pull/77
  merges

Change-Id: Ie8e7eced230f89586c43f9637adae0c27ff95054
Partial-Bug: #1280309
2014-02-17 12:39:15 +00:00
Andy McCrae f9c4e3198e Update spec files to be rubocop compliant
- Update .rubocop.yml to include spec/**
- Update spec files to be rubocop compliant

Change-Id: I2ba55825cf6a80ffa338f849c6c2f274b915886b
Addresses: blueprint rubocop-for-compute
2014-01-29 12:02:05 +00: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 4ff7b0f72e Added compute_stubs into before filter
This makes our testing consistent with our other cookbooks.
Also, added require_relative two 2 tests which were missing it.

Change-Id: Iabebc6d658d9b5e6c3ccc3f9fd10b56c636fd304
2013-06-13 12:44:37 -07:00
John Dewey d496d4081f Tests should be using require_relative
The #require_relative statement is relative to the file
containing the the statement. Also, updated spec_helper
constants to follow existing spacing format.

Change-Id: I33c5c158ea34c30baf63bd72819b9d44b8516ca4
2013-06-03 19:47:59 -07:00
John Dewey 2f595bbb90 Renamed keystone_registration recipe
Renamed keystone_registration to identity_registration, and added
identity_registration tests.  Added registration tests to simply
test the args being passed to the `openstack_identity_register` LWRP.
The identity LWRP should be tested at a deeper level than the consumers.

Testing args passed to a DSL (&block) is a bit tricky. The tests
are not ideal, but give us the necessary coverage to catch common
errors.

Change-Id: I18db535ca1bab357ba083d57a76d86c5ccfddf15
Fixes: Bug 1182576
2013-05-24 10:42:35 -07:00
Craig Tracey ab49072ea9 More changes to rename this to openstack-compute
In the previous commit, the vast majority of the work to move this
repo to openstack-compute was completed. Functionally it works. This
change is intended to address some cosmetic issues and make it
consistent with work done in other cookbook repos.

All tests pass.

Change-Id: I58216cd87b9ff0a77c599c7b5aab132ab2a9304d
2013-05-18 09:36:02 -04:00
John Dewey a1acd590a0 Changed cookbook name to openstack-compute
Changed the cookbook name to openstack-compute, fixed all tests, and
addressed attributes. Also addressed calls to external services,
primarily keystone -> openstack-identity.

All tests pass.

Change-Id: Ic567a33cefd78cc3b2217986d3ff7475bc93f874
2013-05-16 17:59:06 -07:00
John Dewey dbdf9d8fe6 Passing REDHAT/UBUNTU_OPTS throughout tests 2013-05-04 16:22:13 -07:00
John Dewey f80b505ebf Added nova-cert tests 2013-05-04 15:22:13 -07:00