1 #Author: Andrew Woodward <awoodward@mirantis.com>
5 describe 'cinder::type' do
10 :set_value => ['name1','name2'],
11 :set_key => 'volume_backend_name',
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/',
19 it 'should have its execs' do
20 should contain_exec('cinder type-create hippo').with(
21 :command => 'cinder type-create hippo',
23 'OS_TENANT_NAME=admin',
26 'OS_AUTH_URL=http://127.127.127.1:5000/v2.0/'],
27 :unless => "cinder type-list | grep -qP '\\bhippo\\b'",
28 :require => 'Package[python-cinderclient]')
29 should contain_exec('cinder type-key hippo set volume_backend_name=name1')
30 should contain_exec('cinder type-key hippo set volume_backend_name=name2')