- Added basic cellv2 recipe, as it is required from Ocata on - Style and lint fixes to support newer chefdk - Rewrote metadata.rb for readability - Removed ancient Gemfile Change-Id: I97b453fc419bfbf01679dadf39a256b1f0f99859
		
			
				
	
	
		
			37 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Ruby
		
	
	
	
	
	
# encoding: UTF-8
 | 
						|
 | 
						|
require_relative 'spec_helper'
 | 
						|
 | 
						|
describe 'openstack-compute::api-os-compute' do
 | 
						|
  describe 'redhat' do
 | 
						|
    let(:runner) { ChefSpec::SoloRunner.new(REDHAT_OPTS) }
 | 
						|
    let(:node) { runner.node }
 | 
						|
    let(:chef_run) { runner.converge(described_recipe) }
 | 
						|
 | 
						|
    include_context 'compute_stubs'
 | 
						|
    include_examples 'expect_runs_nova_common_recipe'
 | 
						|
    include_examples 'expect_creates_nova_state_dir'
 | 
						|
    include_examples 'expect_creates_nova_lock_dir'
 | 
						|
 | 
						|
    it 'executes nova-manage api_db sync' do
 | 
						|
      expect(chef_run).to run_execute('nova-manage api_db sync')
 | 
						|
        .with(timeout: 3600,
 | 
						|
              user: 'nova',
 | 
						|
              group: 'nova',
 | 
						|
              command: 'nova-manage api_db sync')
 | 
						|
    end
 | 
						|
 | 
						|
    it 'upgrades openstack api packages' do
 | 
						|
      expect(chef_run).to upgrade_package 'openstack-nova-api'
 | 
						|
    end
 | 
						|
 | 
						|
    it 'starts openstack api on boot' do
 | 
						|
      expect(chef_run).to enable_service 'openstack-nova-api'
 | 
						|
    end
 | 
						|
 | 
						|
    it 'starts openstack api now' do
 | 
						|
      expect(chef_run).to start_service 'openstack-nova-api'
 | 
						|
    end
 | 
						|
  end
 | 
						|
end
 |