Commit 6959607c authored by Bryton Lacquement's avatar Bryton Lacquement 🚪

kvm/test: add support for Python 3

parent 8f04f4df
......@@ -25,7 +25,7 @@
#
##############################################################################
import httplib
import six.moves.http_client as httplib
import json
import os
import re
......@@ -33,7 +33,7 @@ import requests
import slapos.util
import subprocess
import sqlite3
import urlparse
from six.moves.urllib.parse import parse_qs, urlparse
import unittest
from slapos.recipe.librecipe import generateHashFromFiles
......@@ -48,7 +48,7 @@ def sanityCheck():
output = e.output
else:
state = True
if state is True and re.search(r'kvm.*kvm_intel', output):
if state is True and re.search(br'kvm.*kvm_intel', output):
return True
......@@ -131,7 +131,7 @@ class MonitorAccessMixin(object):
monitor_setup_url = connection_parameter_dict['monitor-setup-url']
monitor_url_with_auth = 'https' + monitor_setup_url.split('https')[2]
auth = urlparse.parse_qs(urlparse.urlparse(monitor_url_with_auth).path)
auth = parse_qs(urlparse(monitor_url_with_auth).path)
# check that monitor-base-url for all partitions in the tree are accessible
# with published username and password
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment