From c921e5b3bce97384e3ff6d923b7779e4f9b43650 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Mon, 9 Jun 2025 15:14:17 +0100 Subject: [PATCH] tests: Use v2.1 API in OSAPIFixture Default to the microversioned API. Change-Id: Iebbddae485e0db7e4fda39d60878a23f02994726 Signed-off-by: Stephen Finucane --- nova/tests/fixtures/nova.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/nova/tests/fixtures/nova.py b/nova/tests/fixtures/nova.py index f48ff887ad..dbf3dc3783 100644 --- a/nova/tests/fixtures/nova.py +++ b/nova/tests/fixtures/nova.py @@ -993,14 +993,13 @@ class OSAPIFixture(fixtures.Fixture): """ def __init__( - self, api_version='v2', project_id=PROJECT_ID, + self, api_version='v2.1', project_id=PROJECT_ID, use_project_id_in_urls=False, stub_keystone=True, ): """Constructor :param api_version: the API version that we're interested in - using. Currently this expects 'v2' or 'v2.1' as possible - options. + using. Currently this expects 'v2' or 'v2.1' as possible options. :param project_id: the project id to use on the API. :param use_project_id_in_urls: If True, act like the "endpoint" in the "service catalog" has the legacy format including the project_id.