summaryrefslogtreecommitdiff
path: root/novaclient/tests/unit/fixture_data/client.py
diff options
context:
space:
mode:
Diffstat (limited to 'novaclient/tests/unit/fixture_data/client.py')
-rw-r--r--novaclient/tests/unit/fixture_data/client.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/novaclient/tests/unit/fixture_data/client.py b/novaclient/tests/unit/fixture_data/client.py
index c6ddad3..5f933b7 100644
--- a/novaclient/tests/unit/fixture_data/client.py
+++ b/novaclient/tests/unit/fixture_data/client.py
@@ -15,7 +15,7 @@ from keystoneclient.auth.identity import v2
15from keystoneclient import fixture 15from keystoneclient import fixture
16from keystoneclient import session 16from keystoneclient import session
17 17
18from novaclient.v1_1 import client as v1_1client 18from novaclient.v2 import client as v2client
19 19
20IDENTITY_URL = 'http://identityserver:5000/v2.0' 20IDENTITY_URL = 'http://identityserver:5000/v2.0'
21COMPUTE_URL = 'http://compute.host' 21COMPUTE_URL = 'http://compute.host'
@@ -51,10 +51,10 @@ class V1(fixtures.Fixture):
51 self.client = self.new_client() 51 self.client = self.new_client()
52 52
53 def new_client(self): 53 def new_client(self):
54 return v1_1client.Client(username='xx', 54 return v2client.Client(username='xx',
55 api_key='xx', 55 api_key='xx',
56 project_id='xx', 56 project_id='xx',
57 auth_url=self.identity_url) 57 auth_url=self.identity_url)
58 58
59 59
60class SessionV1(V1): 60class SessionV1(V1):
@@ -62,4 +62,4 @@ class SessionV1(V1):
62 def new_client(self): 62 def new_client(self):
63 self.session = session.Session() 63 self.session = session.Session()
64 self.session.auth = v2.Password(self.identity_url, 'xx', 'xx') 64 self.session.auth = v2.Password(self.identity_url, 'xx', 'xx')
65 return v1_1client.Client(session=self.session) 65 return v2client.Client(session=self.session)