File 0001-Use-openstackclient-for-functional-tests.patch of Package python-novaclient

From 583c637033aec8ed0771740599de7ca44ec048e8 Mon Sep 17 00:00:00 2001
From: Dirk Mueller <dirk@dmllr.de>
Date: Thu, 7 Jan 2016 21:18:57 +0100
Subject: [PATCH] Use openstackclient for functional tests

This ensures compatibility with keystone V3 based installations.

Change-Id: I8734d4bc7edf1ee5dd22f1f4990963d4eabbc30d
---
 novaclient/tests/functional/v2/legacy/test_quotas.py | 4 ++--
 novaclient/tests/functional/v2/test_keypairs.py      | 8 ++++----
 novaclient/tests/functional/v2/test_quotas.py        | 4 ++--
 test-requirements.txt                                | 2 +-
 4 files changed, 9 insertions(+), 9 deletions(-)

Index: python-novaclient-2.30.1/novaclient/tests/functional/test_quotas.py
===================================================================
--- python-novaclient-2.30.1.orig/novaclient/tests/functional/test_quotas.py
+++ python-novaclient-2.30.1/novaclient/tests/functional/test_quotas.py
@@ -26,8 +26,8 @@ class TestQuotasNovaClient(base.ClientTe
 
     def test_quotas_update(self):
         # `nova quota-update` requires tenant-id.
-        tenant_info = self.cli_clients.keystone(
-            "tenant-get", params=self.cli_clients.tenant_name)
+        tenant_info = self.cli_clients.openstack(
+            "project show", params=self.cli_clients.tenant_name)
         tenant_id = self._get_value_from_the_table(tenant_info, "id")
 
         self.addCleanup(self.client.quotas.delete, tenant_id)
openSUSE Build Service is sponsored by