- Switched the default linter to cookstyle - Deprecated config settings for Pike - Normalized template comment Depends-On: I7a67ba2520b8e44efec6edd8506f96b0e0dc913b Change-Id: I7abd4194bb7f322764309cad514040c1f5feca00
		
			
				
	
	
		
			35 lines
		
	
	
		
			968 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
		
			968 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
# encoding: UTF-8
 | 
						|
 | 
						|
require_relative 'spec_helper'
 | 
						|
 | 
						|
describe 'openstack-compute::placement_api' do
 | 
						|
  describe 'ubuntu' do
 | 
						|
    let(:runner) { ChefSpec::SoloRunner.new(UBUNTU_OPTS) }
 | 
						|
    let(:node) { runner.node }
 | 
						|
    let(:chef_run) { runner.converge(described_recipe) }
 | 
						|
 | 
						|
    include_context 'compute_stubs'
 | 
						|
 | 
						|
    it 'includes nova-common recipe' do
 | 
						|
      expect(chef_run).to include_recipe 'openstack-compute::nova-common'
 | 
						|
    end
 | 
						|
 | 
						|
    it 'upgrades package nova-placement-api' do
 | 
						|
      expect(chef_run).to upgrade_package 'nova-placement-api'
 | 
						|
    end
 | 
						|
 | 
						|
    it 'executes placement-api: nova-manage api_db sync' do
 | 
						|
      expect(chef_run).to run_execute('placement-api: nova-manage api_db sync').with(
 | 
						|
        timeout: 3600,
 | 
						|
        user: 'nova',
 | 
						|
        group: 'nova',
 | 
						|
        command: 'nova-manage api_db sync'
 | 
						|
      )
 | 
						|
    end
 | 
						|
 | 
						|
    it 'disables nova-placement-api service' do
 | 
						|
      expect(chef_run).to disable_service 'disable nova-placement-api service'
 | 
						|
    end
 | 
						|
  end
 | 
						|
end
 |