Merge "Switch to use keystone v3"

This commit is contained in:
Zuul 2017-10-30 00:49:46 +00:00 committed by Gerrit Code Review
commit 4eb6e9b75f
3 changed files with 5 additions and 5 deletions

View File

@ -3,7 +3,7 @@
# == Parameters # == Parameters
# [*auth_url*] # [*auth_url*]
# (Optional) The keystone public endpoint # (Optional) The keystone public endpoint
# Defaults to 'http://localhost:5000/v2.0' # Defaults to 'http://localhost:5000/v3'
# #
# [*auth_region*] # [*auth_region*]
# (Optional) The keystone region of this node # (Optional) The keystone region of this node
@ -48,7 +48,7 @@
# #
class vitrage::auth ( class vitrage::auth (
$auth_password, $auth_password,
$auth_url = 'http://localhost:5000/v2.0', $auth_url = 'http://localhost:5000/v3',
$auth_region = 'RegionOne', $auth_region = 'RegionOne',
$auth_user = 'vitrage', $auth_user = 'vitrage',
$auth_tenant_name = 'services', $auth_tenant_name = 'services',

View File

@ -52,7 +52,7 @@ describe 'basic vitrage' do
ssl => false, ssl => false,
} }
class { '::vitrage::auth': class { '::vitrage::auth':
auth_url => 'http://127.0.0.1:5000/v2.0', auth_url => 'http://127.0.0.1:5000/v3',
auth_password => 'a_big_secret', auth_password => 'a_big_secret',
} }
class { '::vitrage::client': } class { '::vitrage::client': }

View File

@ -3,7 +3,7 @@ require 'spec_helper'
describe 'vitrage::auth' do describe 'vitrage::auth' do
let :params do let :params do
{ :auth_url => 'http://localhost:5000/v2.0', { :auth_url => 'http://localhost:5000/v3',
:auth_region => 'RegionOne', :auth_region => 'RegionOne',
:auth_user => 'vitrage', :auth_user => 'vitrage',
:auth_password => 'password', :auth_password => 'password',
@ -14,7 +14,7 @@ describe 'vitrage::auth' do
shared_examples_for 'vitrage-auth' do shared_examples_for 'vitrage-auth' do
it 'configures authentication' do it 'configures authentication' do
is_expected.to contain_vitrage_config('service_credentials/auth_url').with_value('http://localhost:5000/v2.0') is_expected.to contain_vitrage_config('service_credentials/auth_url').with_value('http://localhost:5000/v3')
is_expected.to contain_vitrage_config('service_credentials/region_name').with_value('RegionOne') is_expected.to contain_vitrage_config('service_credentials/region_name').with_value('RegionOne')
is_expected.to contain_vitrage_config('service_credentials/project_domain_id').with_value('default') is_expected.to contain_vitrage_config('service_credentials/project_domain_id').with_value('default')
is_expected.to contain_vitrage_config('service_credentials/user_domain_id').with_value('default') is_expected.to contain_vitrage_config('service_credentials/user_domain_id').with_value('default')