
Swift has now merged the swift3 middleware into its own source tree and renamed it to s3api. Use of auth_host, auth_port and auth_protocol configuration options was deprecated in the Newton release in favor of auth_uri Related-Change-Id: I9c61d48e673d513cb4c5cf0c9f8b7d1b894729eb Change-Id: I7f085b0c05f2b8c50e7f94ca1c7f4670660da688 Signed-off-by: Thiago da Silva <thiago@redhat.com>
35 lines
984 B
Ruby
35 lines
984 B
Ruby
require 'spec_helper'
|
|
|
|
describe 'swift::proxy::s3token' do
|
|
|
|
let :facts do
|
|
{}
|
|
end
|
|
|
|
describe "when using default parameters" do
|
|
it { is_expected.to contain_swift_proxy_config('filter:s3token/use').with_value('egg:swift#s3token') }
|
|
it { is_expected.to contain_swift_proxy_config('filter:s3token/auth_uri').with_value('http://127.0.0.1:35357') }
|
|
end
|
|
|
|
describe "when overriding default parameters" do
|
|
let :params do
|
|
{
|
|
:auth_protocol => 'https',
|
|
:auth_host => '192.168.4.2',
|
|
:auth_port => '3452'
|
|
}
|
|
end
|
|
it { is_expected.to contain_swift_proxy_config('filter:s3token/auth_uri').with_value('https://192.168.4.2:3452') }
|
|
end
|
|
|
|
describe "when overriding default parameters" do
|
|
let :params do
|
|
{
|
|
:auth_uri => 'http://192.168.24.11:35357'
|
|
}
|
|
end
|
|
it { is_expected.to contain_swift_proxy_config('filter:s3token/auth_uri').with_value('http://192.168.24.11:35357') }
|
|
end
|
|
|
|
end
|