ENV creds /home/opnfv/functest/conf/openstack.creds
ENV TERM xterm
ENV COLORTERM gnome-terminal
+ENV PYTHONPATH $PYTHONPATH:/home/opnfv/repos/functest/testcases/
WORKDIR /home/opnfv
# Packaged dependencies
# 0.2: measure test duration and publish results under json format
#
#
-import xmltodict
+
+import getopt
import json
import sys
-import getopt
+import xmltodict
import yaml
-
-sys.path.append("/home/opnfv/repos/functest/testcases")
import functest_utils
#
"""
+import argparse
+import datetime
+import logging
import os
+import re
import time
-import sys
-import logging
import yaml
-import datetime
-import re
-import argparse
+
+import functest_utils
parser = argparse.ArgumentParser()
parser.add_argument("-i", "--installer", help="Installer type")
if not os.path.exists(REPO_PATH):
logger.error("Functest repository directory not found '%s'" % REPO_PATH)
exit(-1)
-sys.path.append(REPO_PATH + "testcases/")
-import functest_utils
ONOSCI_PATH = REPO_PATH + 'testcases/Controllers/ONOS/Teston/CI/'
starttime = datetime.datetime.now()
import argparse
import logging
import os
-import sys
import time
import yaml
from keystoneclient.v2_0 import client as keystoneclient
from cinderclient import client as cinderclient
+import openstack_utils
+
parser = argparse.ArgumentParser()
parser.add_argument("-d", "--debug", help="Debug mode", action="store_true")
args = parser.parse_args()
logger.addHandler(ch)
REPO_PATH = os.environ['repos_dir'] + '/functest/'
-sys.path.append(REPO_PATH + "testcases/")
-import openstack_utils
DEFAULTS_FILE = '/home/opnfv/functest/conf/os_defaults.yaml'
import argparse
import logging
import os
-import sys
import yaml
from novaclient import client as novaclient
from keystoneclient.v2_0 import client as keystoneclient
from cinderclient import client as cinderclient
+import openstack_utils
+
parser = argparse.ArgumentParser()
parser.add_argument("-d", "--debug", help="Debug mode", action="store_true")
args = parser.parse_args()
if not os.path.exists(REPO_PATH):
logger.error("Functest repository directory not found '%s'" % REPO_PATH)
exit(-1)
-sys.path.append(REPO_PATH + "testcases/")
-import openstack_utils
+
DEFAULTS_FILE = '/home/opnfv/functest/conf/os_defaults.yaml'
import re
import requests
import subprocess
-import sys
import time
import yaml
from neutronclient.v2_0 import client as neutronclient
from cinderclient import client as cinderclient
+import functest_utils
+import openstack_utils
+
""" tests configuration """
tests = ['authenticate', 'glance', 'cinder', 'heat', 'keystone',
'neutron', 'nova', 'quotas', 'requests', 'vm', 'all']
if not os.path.exists(REPO_PATH):
logger.error("Functest repository directory not found '%s'" % REPO_PATH)
exit(-1)
-sys.path.append(REPO_PATH + "testcases/")
-import functest_utils
-import openstack_utils
+
with open("/home/opnfv/functest/conf/config_functest.yaml") as f:
functest_yaml = yaml.safe_load(f)
import requests
import shutil
import subprocess
-import sys
import time
import yaml
+
import keystoneclient.v2_0.client as ksclient
from neutronclient.v2_0 import client as neutronclient
+import functest_utils
+import openstack_utils
+
modes = ['full', 'smoke', 'baremetal', 'compute', 'data_processing',
'identity', 'image', 'network', 'object_storage', 'orchestration',
'telemetry', 'volume', 'custom', 'defcore']
logger.addHandler(ch)
REPO_PATH = os.environ['repos_dir'] + '/functest/'
-sys.path.append(REPO_PATH + "testcases/")
-import functest_utils
-import openstack_utils
+
with open("/home/opnfv/functest/conf/config_functest.yaml") as f:
functest_yaml = yaml.safe_load(f)
#
import logging
-import sys
import time
import yaml
+import functest_utils
with open('/home/opnfv/functest/conf/config_functest.yaml') as f:
functest_yaml = yaml.safe_load(f)
DOCTOR_REPO = dirs.get('dir_repo_doctor')
TEST_DB_URL = functest_yaml.get('results').get('test_db_url')
-sys.path.append('%s/testcases' % FUNCTEST_REPO)
-import functest_utils
-
logger = logging.getLogger('doctor')
logger.setLevel(logging.DEBUG)
ch = logging.StreamHandler()
import os
import requests
import subprocess
-import sys
import yaml
import keystoneclient.v2_0.client as ksclient
import novaclient.client as nvclient
from neutronclient.v2_0 import client as ntclient
+import functest_utils
+import openstack_utils
+
parser = argparse.ArgumentParser()
parser.add_argument("-d", "--debug", help="Debug mode", action="store_true")
GLANCE_IMAGE_PATH = functest_yaml.get('general'). \
get('directories').get('dir_functest_data') + "/" + GLANCE_IMAGE_FILENAME
-sys.path.append('%s/testcases' % FUNCTEST_REPO)
-import functest_utils
-import openstack_utils
-
""" logging configuration """
logger = logging.getLogger('Promise')
logger.setLevel(logging.DEBUG)
-import unittest
+#!/usr/bin/python
+
import os
-import sys
+import unittest
import yaml
-
-sys.path.append("../")
from functest_utils import getTestEnv, isTestRunnable, generateTestcaseList
# http://www.apache.org/licenses/LICENSE-2.0
########################################################################
-import os
-import time
-import subprocess
-import logging
import argparse
-import yaml
-import pprint
-import sys
-import json
import datetime
+import json
+import logging
+import os
+import pprint
import requests
+import subprocess
+import time
+import yaml
+
import keystoneclient.v2_0.client as ksclient
import glanceclient.client as glclient
import novaclient.client as nvclient
from neutronclient.v2_0 import client as ntclient
-import orchestrator
import clearwater
+import functest_utils
+import openstack_utils
+import orchestrator
pp = pprint.PrettyPrinter(indent=4)
if not os.path.exists(REPO_PATH):
logger.error("Functest repository directory not found '%s'" % REPO_PATH)
exit(-1)
-sys.path.append(REPO_PATH + "testcases/")
-import functest_utils
-import openstack_utils
with open("/home/opnfv/functest/conf/config_functest.yaml") as f:
functest_yaml = yaml.safe_load(f)
import paramiko
import pprint
import re
-import sys
import time
import yaml
from scp import SCPClient
+
from novaclient import client as novaclient
from neutronclient.v2_0 import client as neutronclient
from keystoneclient.v2_0 import client as keystoneclient
from glanceclient import client as glanceclient
+import functest_utils
+import openstack_utils
+
pp = pprint.PrettyPrinter(indent=4)
parser = argparse.ArgumentParser()
if not os.path.exists(REPO_PATH):
logger.error("Functest repository directory not found '%s'" % REPO_PATH)
exit(-1)
-sys.path.append(REPO_PATH + "testcases/")
-import functest_utils
-import openstack_utils
with open("/home/opnfv/functest/conf/config_functest.yaml") as f:
functest_yaml = yaml.safe_load(f)
#
#
-import os
-import time
import argparse
-import pprint
-import sys
+import datetime
import logging
+import os
+import pprint
+import time
import yaml
-import datetime
+
from novaclient import client as novaclient
from neutronclient.v2_0 import client as neutronclient
from keystoneclient.v2_0 import client as keystoneclient
from glanceclient import client as glanceclient
+import functest_utils
+import openstack_utils
+
pp = pprint.PrettyPrinter(indent=4)
parser = argparse.ArgumentParser()
if not os.path.exists(REPO_PATH):
logger.error("Functest repository directory not found '%s'" % REPO_PATH)
exit(-1)
-sys.path.append(REPO_PATH + "testcases/")
-import functest_utils
-import openstack_utils
with open("/home/opnfv/functest/conf/config_functest.yaml") as f:
functest_yaml = yaml.safe_load(f)