diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/monitor.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/monitor.py b/tests/monitor.py index 8e8aa7a5..8244dc88 100644 --- a/tests/monitor.py +++ b/tests/monitor.py @@ -17,6 +17,7 @@ import socket import sys import time +from keystoneauth1 import session from congressclient.v1 import client import identity_auth @@ -48,8 +49,8 @@ class DoctorMonitorSample(object): self.inspector_url = 'http://127.0.0.1:12345/events' elif self.inspector_type == 'congress': auth=identity_auth.get_identity_auth() - sess=session.Session(auth=auth) - congress = client.Client(session=sess, service_type='policy') + self.session=session.Session(auth=auth) + congress = client.Client(session=self.session, service_type='policy') ds = congress.list_datasources()['results'] doctor_ds = next((item for item in ds if item['driver'] == 'doctor'), None) |