Files
cookbook-openstack-common/spec/client_spec.rb
Jens Rosenboom 28ef3e2fe5 Update OSC client version to 3.11.0
The previous version is no longer working after python-novaclient got
upgraded to 8.0.0. There is also no proper stable version, so update to
current latest.

Change-Id: If4a86dfd16c9abbdb0957520d30b7e5c1435d4c1
2017-05-24 11:19:23 +00:00

32 lines
735 B
Ruby

# encoding: UTF-8
require_relative 'spec_helper'
describe 'openstack-common::client' do
describe 'ubuntu' do
let(:runner) { ChefSpec::SoloRunner.new(UBUNTU_OPTS) }
let(:node) { runner.node }
let(:chef_run) do
runner.converge(described_recipe)
end
it do
expect(chef_run).to install_python_runtime('2')
end
it do
expect(chef_run).to create_python_virtualenv('/opt/osc')
.with(system_site_packages: true)
end
it do
expect(chef_run).to install_python_package('python-openstackclient')
.with(version: '3.11.0')
end
it do
expect(chef_run).to create_link('/usr/local/bin/openstack')
.with(to: '/opt/osc/bin/openstack')
end
end
end