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
32 lines
735 B
Ruby
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
|