puppet-neutron/spec/unit/provider/neutron_router_interface/neutron_spec.rb
Dan Prince c5005c221f Rename quantum to neutron.
Global replacement of all Quantum references with Neutron.

Change-Id: I74ad15e382589ced6f47d0783e3e952627fcd0f7
2013-08-08 10:49:19 -04:00

37 lines
781 B
Ruby

require 'puppet'
require 'spec_helper'
require 'puppet/provider/neutron_router_interface/neutron'
provider_class = Puppet::Type.type(:neutron_router_interface).
provider(:neutron)
describe provider_class do
let :interface_attrs do
{
:name => 'router:subnet',
:ensure => 'present',
}
end
describe 'when accessing attributes of an interface' do
let :resource do
Puppet::Type::Neutron_router_interface.new(interface_attrs)
end
let :provider do
provider_class.new(resource)
end
it 'should return the correct router name' do
provider.router_name.should eql('router')
end
it 'should return the correct subnet name' do
provider.subnet_name.should eql('subnet')
end
end
end