12 Commits

Author SHA1 Message Date
Stanislaw Bogatkin
611045f213 Add endpoint type parameter
To point glance swift endpoint type, one optional parameter
was added.

Change-Id: I25ce5d9d119804f1aca5b5567be46750050ebacd
Closes-Bug: #1458811
2015-05-26 10:14:42 +00:00
Sebastien Badia
dbe297b056 spec: updates for rspec-puppet 2.x and rspec 3.x
This patch aim to update our specs test in order to work with the rspec-puppet release
2.0.0, in the mean time, we update rspec syntax in order to be prepared
for rspec 3.x move.

In details:

  * Use shared_examples "a Puppet::Error" for puppet::error tests
  * Convert 'should' keyword to 'is_expected.to' (prepare rspec 3.x)
  * Fix spec tests for rspec-puppet 2.0.0
  * Upgrade and pin rspec-puppet from 1.0.1 to 2.0.0
  * Clean Gemfile (remove over-specificication of runtime deps of puppetlabs_spec_helper)

Change-Id: Ibd0333dc3c0959e846edfbad51fb48e8dfb8fbe9
Card: https://trello.com/c/eHXc1Ryd/4-investigate-the-necessary-change-to-be-rspec-puppet-2-0-0-compliant
2015-02-25 05:37:44 +01:00
Emilien Macchi
908a62b2b9 Update [glance_store] section in glance config for Juno
Use new parameters for Juno like it's documented here:
http://docs.openstack.org/trunk/config-reference/content/glance-conf-changes-master.html
* Use [glance_store] section
* Update prefix when needed

Partial-Bug: #1391099

Change-Id: I096b16c33c493270422113e0107a100f967debc6
2014-11-14 19:30:39 +01:00
Aleksandr Didenko
baa47b4bba New parameter for swift backend
New parameter is 'swift_store_large_object_size'.

Sometimes default value (5G) doesn't work when user attempts to
make a snapshots with size > 300 Mb. So it may be usefull to have
a possibity to adjust this parameter to your needs.

Change-Id: I08336b91b0cd294a86326605fb6c28653e8eedb8
2014-09-25 17:31:41 -07:00
Mathieu Gagné
95dd566b9b Configure glance-cache.conf with swift backend
glance::backend::swift was not properly configuring
swift_store_* in /etc/glance/glance-cache.conf
when using swift backend.

Change-Id: I7b46dd2bd1ff050759b11cbc9c3c7068e4c3e01e
2013-07-02 19:29:49 -04:00
Mathieu Gagné
b04232aecb Use boolean instead of string
Change-Id: Ie508c5f6a98277b650307a1782ce3fde9d2bca1e
2013-05-09 23:12:33 -04:00
Dan Prince
5dbcb47c50 Add swift_store_auth_version to swift backend.
Updates the glance swift backend to support configuring the
swift_store_auth_version setting. The default value for this is '2'
(which matches the glance config file defaults).

As part of this change I am also updating the default value
for swift_store_auth_address to use 127.0.0.1:5000/v2.0/ (keystone).
This makes sense because the previous value would have required
us to set swift_store_auth_version by default to 1.

Change-Id: I865712914dd0506b2722ab8da3e1c56d7d9f433a
2013-04-11 11:30:41 -04:00
Dan Bode
7c396acd66 remove password defaults
This commit removes the password defaults.

Users should not rely on password defaults.
2012-10-14 12:36:13 -07:00
Dan Bode
e6216be659 fix unit tests 2012-10-14 00:23:20 -07:00
root
38622827fe This commit fixes spec test failures that were caused by
using RI's version of the concat module.

It introduces a custom fact concat_basedir that can determine
where the vardir is for a particular agent.

This commits adds that fact to unit tests that are validating
the resuling fragment files.
2012-05-08 14:38:55 -07:00
Dan Bode
a7a96af75e Fix broken tests
I had previously checked in some broken tests that
resulted from the updating the concat fragments names
to ensure uniqueness between services (eg, choosing
fragment names like HEADER were causing
duplicate resource errors, these have been prefixed
with the service name glance-api to ensure uniqueness)

This commit updates the tests so that they work for
this previous commit (oops!)
2012-04-03 10:03:08 -07:00
Dan Bode
0a400dcc6a Add rspec tests
This commit resolves failing tests from
glance::api and glance::registry related to recent
refactors.

It also adds tests for all of the new api fragment
classes/defines.
2012-03-31 16:09:29 -07:00