memcached (openstack) is no longer in use
[mirror/dsa-puppet.git] / 3rdparty / modules / cinder / spec / defines / cinder_type_set_spec.rb
1 #Author: Andrew Woodward <awoodward@mirantis.com>
2
3 require 'spec_helper'
4
5 describe 'cinder::type_set' do
6
7   let(:title) {'hippo'}
8
9   let :params do {
10     :type           => 'sith',
11     :key            => 'monchichi',
12     :os_password    => 'asdf',
13     :os_tenant_name => 'admin',
14     :os_username    => 'admin',
15     :os_auth_url    => 'http://127.127.127.1:5000/v2.0/',
16   }
17   end
18
19   it 'should have its execs' do
20     should contain_exec('cinder type-key sith set monchichi=hippo').with(
21       :command => 'cinder type-key sith set monchichi=hippo',
22       :unless  => "cinder extra-specs-list | grep -Eq '\\bsith\\b.*\\bmonchichi\\b.*\\bhippo\\b'",
23       :environment => [
24         'OS_TENANT_NAME=admin',
25         'OS_USERNAME=admin',
26         'OS_PASSWORD=asdf',
27         'OS_AUTH_URL=http://127.127.127.1:5000/v2.0/'],
28       :require => 'Package[python-cinderclient]')
29   end
30 end