02f15492a0
Currently options 'is-public' and 'exists-action' are hardcoded in murano_appllication provider. It can lead some problems, during uploading and updating action, so it make sense to make them configurable. Related-Bug: #1624723 Change-Id: I061cb64856e14d326dfa30851e427088e60f0a48
34 lines
834 B
Ruby
34 lines
834 B
Ruby
require 'spec_helper'
|
|
|
|
describe 'murano::application' do
|
|
|
|
let(:title) { 'io.murano' }
|
|
|
|
describe 'with default parameters' do
|
|
it { is_expected.to contain_murano_application('io.murano').with(
|
|
:ensure => 'present',
|
|
:package_path => '/var/cache/murano/meta/io.murano.zip',
|
|
:public => true,
|
|
:exists_action => 's'
|
|
)}
|
|
end
|
|
|
|
describe 'with package_category override' do
|
|
let :params do {
|
|
:package_category => 'library',
|
|
:public => false,
|
|
:exists_action => 'u'
|
|
}
|
|
end
|
|
|
|
it { is_expected.to contain_murano_application('io.murano').with(
|
|
:ensure => 'present',
|
|
:package_path => '/var/cache/murano/meta/io.murano.zip',
|
|
:category => 'library',
|
|
:public => false,
|
|
:exists_action => 'u'
|
|
)}
|
|
end
|
|
|
|
end
|