Change keystone v2.0 to v3

Change-Id: I54665604c9b9991e171cdae28cac57b0ec31735e
This commit is contained in:
Tobias Urdin 2019-02-24 13:56:44 +01:00
parent 12143624e8
commit 801104f359
5 changed files with 14 additions and 6 deletions

View File

@ -13,7 +13,7 @@
#
# [*auth_url*]
# (optional) The authentication URL
# Defaults to 'http://127.0.0.1:5000/v2.0/'
# Defaults to 'http://127.0.0.1:5000/v3/'
#
# [*admin_password*]
# (required) The password for the swift user
@ -22,7 +22,7 @@ class swift::auth_file (
$admin_tenant,
$admin_password,
$admin_user = 'admin',
$auth_url = 'http://127.0.0.1:5000/v2.0/'
$auth_url = 'http://127.0.0.1:5000/v3/'
) {
include ::swift::deps

View File

@ -67,7 +67,7 @@
# Francois Charlier fcharlier@ploup.net
#
class swift::dispersion (
$auth_url = 'http://127.0.0.1:5000/v2.0/',
$auth_url = 'http://127.0.0.1:5000/v3/',
$auth_user = 'dispersion',
$auth_tenant = 'services',
$auth_pass = 'dispersion_password',

View File

@ -0,0 +1,8 @@
---
upgrade:
- |
The default value for swift::dispersion::auth_url is changed
from http://127.0.0.1:5000/v2.0/ to http://127.0.0.1:5000/v3/
- |
The default value for swift::auth_file::auth_url is changed
from http://127.0.0.1:5000/v2.0/ to http://127.0.0.1:5000/v3/

View File

@ -3,7 +3,7 @@ require 'spec_helper'
describe 'swift::dispersion' do
let :default_params do
{ :auth_url => 'http://127.0.0.1:5000/v2.0/',
{ :auth_url => 'http://127.0.0.1:5000/v3/',
:auth_user => 'dispersion',
:auth_tenant => 'services',
:auth_pass => 'dispersion_password',

View File

@ -83,12 +83,12 @@ describe 'swift::proxy::authtoken' do
describe "when both www_authenticate_uri and identity_uri are set" do
let :params do
{
:www_authenticate_uri => 'https://foo.bar:5000/v2.0/',
:www_authenticate_uri => 'https://foo.bar:5000/v3/',
:identity_uri => 'https://foo.bar:5000/'
}
end
it { is_expected.to contain_swift_proxy_config('filter:authtoken/www_authenticate_uri').with_value('https://foo.bar:5000/v2.0/') }
it { is_expected.to contain_swift_proxy_config('filter:authtoken/www_authenticate_uri').with_value('https://foo.bar:5000/v3/') }
it { is_expected.to contain_swift_proxy_config('filter:authtoken/auth_url').with_value('https://foo.bar:5000/') }
end
end