Use --os-project-name instead of --os-tenant-name

'tenant' is the terminology used in identity v2 api, which was replaced
by 'project' in v3 api.

Change-Id: Ie4de399c494ac60ed100622416174f6e84801c03
This commit is contained in:
Takashi Kajinami
2023-11-05 23:29:12 +09:00
parent 1c2f147c2a
commit ed5372dfd5

View File

@@ -68,14 +68,14 @@ describe 'basic nova' do
describe 'nova aggregate' do
it 'should create new aggregate' do
command('openstack --os-identity-api-version 3 --os-username nova --os-password a_big_secret --os-tenant-name services --os-user-domain-name Default --os-project-domain-name Default --os-auth-url http://127.0.0.1:5000/v3 aggregate list') do |r|
command('openstack --os-identity-api-version 3 --os-username nova --os-password a_big_secret --os-project-name services --os-user-domain-name Default --os-project-domain-name Default --os-auth-url http://127.0.0.1:5000/v3 aggregate list') do |r|
expect(r.stdout).to match(/test_aggregate/)
end
end
end
describe 'nova flavor' do
it 'should create new flavor' do
command('openstack --os-identity-api-version 3 --os-username nova --os-password a_big_secret --os-tenant-name services --os-user-domain-name Default --os-project-domain-name Default --os-auth-url http://127.0.0.1:5000/v3 flavor list') do |r|
command('openstack --os-identity-api-version 3 --os-username nova --os-password a_big_secret --os-project-name services --os-user-domain-name Default --os-project-domain-name Default --os-auth-url http://127.0.0.1:5000/v3 flavor list') do |r|
expect(r.stdout).to match(/public_flavor/)
expect(r.stdout).to match(/private_flavor/)
end