Trying to run the testsuite fails on multiple occasions because the sample configuration files tests/resources/config
is missing:
(oci-python-sdk-env) glaubitz@suse-laptop:~/upstream/oci-python-sdk> tox
GLOB sdist-make: /home/glaubitz/upstream/oci-python-sdk/setup.py
py27 inst-nodeps: /home/glaubitz/upstream/oci-python-sdk/.tox/dist/oci-2.1.6.zip
py27 installed: DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.,alabaster==0.7.12,asn1crypto==0.24.0,Babel==2.6.0,certifi==2018.11.29,cffi==1.11.5,chardet==3.0.4,configparser==3.5.0,contextlib2==0.5.5,coverage==4.4.1,cryptography==2.1.4,docutils==0.14,enum34==1.1.6,flake8==3.5.0,funcsigs==1.0.2,idna==2.8,imagesize==1.1.0,ipaddress==1.0.22,Jinja2==2.10,MarkupSafe==1.1.0,mccabe==0.6.1,mock==2.0.0,oci==2.1.6,pbr==5.1.2,pluggy==0.8.1,py==1.7.0,pycodestyle==2.3.1,pycparser==2.19,pyflakes==1.6.0,Pygments==2.3.1,pyOpenSSL==17.5.0,pytest==3.2.3,pytest-catchlog==1.2.2,pytest-cov==2.5.1,python-dateutil==2.7.3,pytz==2018.9,PyYAML==3.13,requests==2.21.0,six==1.12.0,snowballstemmer==1.2.1,Sphinx==1.6.4,sphinx-rtd-theme==0.2.5b2,sphinxcontrib-websupport==1.1.0,tox==2.9.1,typing==3.6.6,urllib3==1.24.1,vcrpy==1.11.1,virtualenv==16.3.0,wrapt==1.11.1
py27 runtests: PYTHONHASHSEED='1261293047'
py27 runtests: commands[0] | py.test tests/unit tests/integ -s
==================================================== test session starts ====================================================
platform linux2 -- Python 2.7.15, pytest-3.2.3, py-1.7.0, pluggy-0.4.0
rootdir: /home/glaubitz/upstream/oci-python-sdk, inifile:
plugins: cov-2.5.1, catchlog-1.2.2
collected 34 items
tests/unit/test_basic_api_calls.py EEEEE
tests/unit/test_model.py .................
tests/unit/test_response.py ...
tests/unit/test_waiters.py EEEEEEEE
tests/integ/test_launch_instance_tutorial.py E
========================================================== ERRORS ===========================================================
________________________________________ ERROR at setup of test_identity_list_users _________________________________________
config_file = '/home/glaubitz/upstream/oci-python-sdk/tests/resources/config'
@pytest.fixture
def identity(config_file):
# Identity throws an error if we do things from not our home region (currently PHX). So use the default profile here, regardless
# of any command line switches, under the tacit assumption that the default profile points to our home region
> client = oci.identity.IdentityClient(config(config_file, oci.config.DEFAULT_PROFILE))
tests/conftest.py:67:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/conftest.py:39: in config
config = oci.config.from_file(file_location=config_file, profile_name=config_profile)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
file_location = '/home/glaubitz/upstream/oci-python-sdk/tests/resources/config', profile_name = 'DEFAULT'
def from_file(file_location=DEFAULT_LOCATION, profile_name=DEFAULT_PROFILE):
"""Create a config dict from a file.
:param file_location: Path to the config file. Defaults to ~/.oci/config and with a fallback to ~/.oraclebmc/config.
:param profile_name: The profile to load from the config file. Defaults to "DEFAULT"
:return: A config dict that can be used to create clients.
"""
expanded_file_location = _get_config_path_with_fallback(file_location)
parser = configparser.ConfigParser(interpolation=None)
if not parser.read(expanded_file_location):
> raise ConfigFileNotFound("Could not find config file at {}".format(expanded_file_location))
E ConfigFileNotFound: Could not find config file at /home/glaubitz/upstream/oci-python-sdk/tests/resources/config
.tox/py27/lib/python2.7/site-packages/oci/config.py:77: ConfigFileNotFound
___________________________________________ ERROR at setup of test_vcn_list_vcns ____________________________________________
config_file = '/home/glaubitz/upstream/oci-python-sdk/tests/resources/config', config_profile = 'DEFAULT'
@pytest.fixture(scope="session")
def config(config_file, config_profile):
> config = oci.config.from_file(file_location=config_file, profile_name=config_profile)
tests/conftest.py:39:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
file_location = '/home/glaubitz/upstream/oci-python-sdk/tests/resources/config', profile_name = 'DEFAULT'
def from_file(file_location=DEFAULT_LOCATION, profile_name=DEFAULT_PROFILE):
"""Create a config dict from a file.
:param file_location: Path to the config file. Defaults to ~/.oci/config and with a fallback to ~/.oraclebmc/config.
:param profile_name: The profile to load from the config file. Defaults to "DEFAULT"
:return: A config dict that can be used to create clients.
"""
expanded_file_location = _get_config_path_with_fallback(file_location)
parser = configparser.ConfigParser(interpolation=None)
if not parser.read(expanded_file_location):
> raise ConfigFileNotFound("Could not find config file at {}".format(expanded_file_location))
E ConfigFileNotFound: Could not find config file at /home/glaubitz/upstream/oci-python-sdk/tests/resources/config
.tox/py27/lib/python2.7/site-packages/oci/config.py:77: ConfigFileNotFound
_________________________________________ ERROR at setup of test_vcn_list_instances _________________________________________
config_file = '/home/glaubitz/upstream/oci-python-sdk/tests/resources/config', config_profile = 'DEFAULT'
@pytest.fixture(scope="session")
def config(config_file, config_profile):
> config = oci.config.from_file(file_location=config_file, profile_name=config_profile)
tests/conftest.py:39:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
file_location = '/home/glaubitz/upstream/oci-python-sdk/tests/resources/config', profile_name = 'DEFAULT'
def from_file(file_location=DEFAULT_LOCATION, profile_name=DEFAULT_PROFILE):
"""Create a config dict from a file.
:param file_location: Path to the config file. Defaults to ~/.oci/config and with a fallback to ~/.oraclebmc/config.
:param profile_name: The profile to load from the config file. Defaults to "DEFAULT"
:return: A config dict that can be used to create clients.
"""
expanded_file_location = _get_config_path_with_fallback(file_location)
parser = configparser.ConfigParser(interpolation=None)
if not parser.read(expanded_file_location):
> raise ConfigFileNotFound("Could not find config file at {}".format(expanded_file_location))
E ConfigFileNotFound: Could not find config file at /home/glaubitz/upstream/oci-python-sdk/tests/resources/config
.tox/py27/lib/python2.7/site-packages/oci/config.py:77: ConfigFileNotFound
_______________________________________________ ERROR at setup of test_limit ________________________________________________
config_file = '/home/glaubitz/upstream/oci-python-sdk/tests/resources/config'
@pytest.fixture
def identity(config_file):
# Identity throws an error if we do things from not our home region (currently PHX). So use the default profile here, regardless
# of any command line switches, under the tacit assumption that the default profile points to our home region
> client = oci.identity.IdentityClient(config(config_file, oci.config.DEFAULT_PROFILE))
tests/conftest.py:67:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/conftest.py:39: in config
config = oci.config.from_file(file_location=config_file, profile_name=config_profile)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
file_location = '/home/glaubitz/upstream/oci-python-sdk/tests/resources/config', profile_name = 'DEFAULT'
def from_file(file_location=DEFAULT_LOCATION, profile_name=DEFAULT_PROFILE):
"""Create a config dict from a file.
:param file_location: Path to the config file. Defaults to ~/.oci/config and with a fallback to ~/.oraclebmc/config.
:param profile_name: The profile to load from the config file. Defaults to "DEFAULT"
:return: A config dict that can be used to create clients.
"""
expanded_file_location = _get_config_path_with_fallback(file_location)
parser = configparser.ConfigParser(interpolation=None)
if not parser.read(expanded_file_location):
> raise ConfigFileNotFound("Could not find config file at {}".format(expanded_file_location))
E ConfigFileNotFound: Could not find config file at /home/glaubitz/upstream/oci-python-sdk/tests/resources/config
.tox/py27/lib/python2.7/site-packages/oci/config.py:77: ConfigFileNotFound
___________________________________ ERROR at setup of test_api_call_with_explicit_timeout ___________________________________
config_file = '/home/glaubitz/upstream/oci-python-sdk/tests/resources/config', config_profile = 'DEFAULT'
@pytest.fixture(scope="session")
def config(config_file, config_profile):
> config = oci.config.from_file(file_location=config_file, profile_name=config_profile)
tests/conftest.py:39:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
file_location = '/home/glaubitz/upstream/oci-python-sdk/tests/resources/config', profile_name = 'DEFAULT'
def from_file(file_location=DEFAULT_LOCATION, profile_name=DEFAULT_PROFILE):
"""Create a config dict from a file.
:param file_location: Path to the config file. Defaults to ~/.oci/config and with a fallback to ~/.oraclebmc/config.
:param profile_name: The profile to load from the config file. Defaults to "DEFAULT"
:return: A config dict that can be used to create clients.
"""
expanded_file_location = _get_config_path_with_fallback(file_location)
parser = configparser.ConfigParser(interpolation=None)
if not parser.read(expanded_file_location):
> raise ConfigFileNotFound("Could not find config file at {}".format(expanded_file_location))
E ConfigFileNotFound: Could not find config file at /home/glaubitz/upstream/oci-python-sdk/tests/resources/config
.tox/py27/lib/python2.7/site-packages/oci/config.py:77: ConfigFileNotFound
_____________________________________________ ERROR at setup of test_basic_wait _____________________________________________
config_file = '/home/glaubitz/upstream/oci-python-sdk/tests/resources/config', config_profile = 'DEFAULT'
@pytest.fixture(scope="session")
def config(config_file, config_profile):
> config = oci.config.from_file(file_location=config_file, profile_name=config_profile)
tests/conftest.py:39:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
file_location = '/home/glaubitz/upstream/oci-python-sdk/tests/resources/config', profile_name = 'DEFAULT'
def from_file(file_location=DEFAULT_LOCATION, profile_name=DEFAULT_PROFILE):
"""Create a config dict from a file.
:param file_location: Path to the config file. Defaults to ~/.oci/config and with a fallback to ~/.oraclebmc/config.
:param profile_name: The profile to load from the config file. Defaults to "DEFAULT"
:return: A config dict that can be used to create clients.
"""
expanded_file_location = _get_config_path_with_fallback(file_location)
parser = configparser.ConfigParser(interpolation=None)
if not parser.read(expanded_file_location):
> raise ConfigFileNotFound("Could not find config file at {}".format(expanded_file_location))
E ConfigFileNotFound: Could not find config file at /home/glaubitz/upstream/oci-python-sdk/tests/resources/config
.tox/py27/lib/python2.7/site-packages/oci/config.py:77: ConfigFileNotFound
_________________________________________ ERROR at setup of test_invalid_operation __________________________________________
config_file = '/home/glaubitz/upstream/oci-python-sdk/tests/resources/config'
@pytest.fixture
def identity(config_file):
# Identity throws an error if we do things from not our home region (currently PHX). So use the default profile here, regardless
# of any command line switches, under the tacit assumption that the default profile points to our home region
> client = oci.identity.IdentityClient(config(config_file, oci.config.DEFAULT_PROFILE))
tests/conftest.py:67:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/conftest.py:39: in config
config = oci.config.from_file(file_location=config_file, profile_name=config_profile)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
file_location = '/home/glaubitz/upstream/oci-python-sdk/tests/resources/config', profile_name = 'DEFAULT'
def from_file(file_location=DEFAULT_LOCATION, profile_name=DEFAULT_PROFILE):
"""Create a config dict from a file.
:param file_location: Path to the config file. Defaults to ~/.oci/config and with a fallback to ~/.oraclebmc/config.
:param profile_name: The profile to load from the config file. Defaults to "DEFAULT"
:return: A config dict that can be used to create clients.
"""
expanded_file_location = _get_config_path_with_fallback(file_location)
parser = configparser.ConfigParser(interpolation=None)
if not parser.read(expanded_file_location):
> raise ConfigFileNotFound("Could not find config file at {}".format(expanded_file_location))
E ConfigFileNotFound: Could not find config file at /home/glaubitz/upstream/oci-python-sdk/tests/resources/config
.tox/py27/lib/python2.7/site-packages/oci/config.py:77: ConfigFileNotFound
__________________________________________ ERROR at setup of test_already_in_state __________________________________________
config_file = '/home/glaubitz/upstream/oci-python-sdk/tests/resources/config'
@pytest.fixture
def identity(config_file):
# Identity throws an error if we do things from not our home region (currently PHX). So use the default profile here, regardless
# of any command line switches, under the tacit assumption that the default profile points to our home region
> client = oci.identity.IdentityClient(config(config_file, oci.config.DEFAULT_PROFILE))
tests/conftest.py:67:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/conftest.py:39: in config
config = oci.config.from_file(file_location=config_file, profile_name=config_profile)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
file_location = '/home/glaubitz/upstream/oci-python-sdk/tests/resources/config', profile_name = 'DEFAULT'
def from_file(file_location=DEFAULT_LOCATION, profile_name=DEFAULT_PROFILE):
"""Create a config dict from a file.
:param file_location: Path to the config file. Defaults to ~/.oci/config and with a fallback to ~/.oraclebmc/config.
:param profile_name: The profile to load from the config file. Defaults to "DEFAULT"
:return: A config dict that can be used to create clients.
"""
expanded_file_location = _get_config_path_with_fallback(file_location)
parser = configparser.ConfigParser(interpolation=None)
if not parser.read(expanded_file_location):
> raise ConfigFileNotFound("Could not find config file at {}".format(expanded_file_location))
E ConfigFileNotFound: Could not find config file at /home/glaubitz/upstream/oci-python-sdk/tests/resources/config
.tox/py27/lib/python2.7/site-packages/oci/config.py:77: ConfigFileNotFound
_________________________________________ ERROR at setup of test_wait_time_exceeded _________________________________________
config_file = '/home/glaubitz/upstream/oci-python-sdk/tests/resources/config'
@pytest.fixture
def identity(config_file):
# Identity throws an error if we do things from not our home region (currently PHX). So use the default profile here, regardless
# of any command line switches, under the tacit assumption that the default profile points to our home region
> client = oci.identity.IdentityClient(config(config_file, oci.config.DEFAULT_PROFILE))
tests/conftest.py:67:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/conftest.py:39: in config
config = oci.config.from_file(file_location=config_file, profile_name=config_profile)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
file_location = '/home/glaubitz/upstream/oci-python-sdk/tests/resources/config', profile_name = 'DEFAULT'
def from_file(file_location=DEFAULT_LOCATION, profile_name=DEFAULT_PROFILE):
"""Create a config dict from a file.
:param file_location: Path to the config file. Defaults to ~/.oci/config and with a fallback to ~/.oraclebmc/config.
:param profile_name: The profile to load from the config file. Defaults to "DEFAULT"
:return: A config dict that can be used to create clients.
"""
expanded_file_location = _get_config_path_with_fallback(file_location)
parser = configparser.ConfigParser(interpolation=None)
if not parser.read(expanded_file_location):
> raise ConfigFileNotFound("Could not find config file at {}".format(expanded_file_location))
E ConfigFileNotFound: Could not find config file at /home/glaubitz/upstream/oci-python-sdk/tests/resources/config
.tox/py27/lib/python2.7/site-packages/oci/config.py:77: ConfigFileNotFound
________________________________ ERROR at setup of test_property_and_eval_function_provided _________________________________
config_file = '/home/glaubitz/upstream/oci-python-sdk/tests/resources/config', config_profile = 'DEFAULT'
@pytest.fixture(scope="session")
def config(config_file, config_profile):
> config = oci.config.from_file(file_location=config_file, profile_name=config_profile)
tests/conftest.py:39:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
file_location = '/home/glaubitz/upstream/oci-python-sdk/tests/resources/config', profile_name = 'DEFAULT'
def from_file(file_location=DEFAULT_LOCATION, profile_name=DEFAULT_PROFILE):
"""Create a config dict from a file.
:param file_location: Path to the config file. Defaults to ~/.oci/config and with a fallback to ~/.oraclebmc/config.
:param profile_name: The profile to load from the config file. Defaults to "DEFAULT"
:return: A config dict that can be used to create clients.
"""
expanded_file_location = _get_config_path_with_fallback(file_location)
parser = configparser.ConfigParser(interpolation=None)
if not parser.read(expanded_file_location):
> raise ConfigFileNotFound("Could not find config file at {}".format(expanded_file_location))
E ConfigFileNotFound: Could not find config file at /home/glaubitz/upstream/oci-python-sdk/tests/resources/config
.tox/py27/lib/python2.7/site-packages/oci/config.py:77: ConfigFileNotFound
________________________________________ ERROR at setup of test_eval_function_lambda ________________________________________
config_file = '/home/glaubitz/upstream/oci-python-sdk/tests/resources/config'
@pytest.fixture
def identity(config_file):
# Identity throws an error if we do things from not our home region (currently PHX). So use the default profile here, regardless
# of any command line switches, under the tacit assumption that the default profile points to our home region
> client = oci.identity.IdentityClient(config(config_file, oci.config.DEFAULT_PROFILE))
tests/conftest.py:67:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/conftest.py:39: in config
config = oci.config.from_file(file_location=config_file, profile_name=config_profile)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
file_location = '/home/glaubitz/upstream/oci-python-sdk/tests/resources/config', profile_name = 'DEFAULT'
def from_file(file_location=DEFAULT_LOCATION, profile_name=DEFAULT_PROFILE):
"""Create a config dict from a file.
:param file_location: Path to the config file. Defaults to ~/.oci/config and with a fallback to ~/.oraclebmc/config.
:param profile_name: The profile to load from the config file. Defaults to "DEFAULT"
:return: A config dict that can be used to create clients.
"""
expanded_file_location = _get_config_path_with_fallback(file_location)
parser = configparser.ConfigParser(interpolation=None)
if not parser.read(expanded_file_location):
> raise ConfigFileNotFound("Could not find config file at {}".format(expanded_file_location))
E ConfigFileNotFound: Could not find config file at /home/glaubitz/upstream/oci-python-sdk/tests/resources/config
.tox/py27/lib/python2.7/site-packages/oci/config.py:77: ConfigFileNotFound
_______________________________________ ERROR at setup of test_eval_function_func_ref _______________________________________
config_file = '/home/glaubitz/upstream/oci-python-sdk/tests/resources/config'
@pytest.fixture
def identity(config_file):
# Identity throws an error if we do things from not our home region (currently PHX). So use the default profile here, regardless
# of any command line switches, under the tacit assumption that the default profile points to our home region
> client = oci.identity.IdentityClient(config(config_file, oci.config.DEFAULT_PROFILE))
tests/conftest.py:67:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/conftest.py:39: in config
config = oci.config.from_file(file_location=config_file, profile_name=config_profile)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
file_location = '/home/glaubitz/upstream/oci-python-sdk/tests/resources/config', profile_name = 'DEFAULT'
def from_file(file_location=DEFAULT_LOCATION, profile_name=DEFAULT_PROFILE):
"""Create a config dict from a file.
:param file_location: Path to the config file. Defaults to ~/.oci/config and with a fallback to ~/.oraclebmc/config.
:param profile_name: The profile to load from the config file. Defaults to "DEFAULT"
:return: A config dict that can be used to create clients.
"""
expanded_file_location = _get_config_path_with_fallback(file_location)
parser = configparser.ConfigParser(interpolation=None)
if not parser.read(expanded_file_location):
> raise ConfigFileNotFound("Could not find config file at {}".format(expanded_file_location))
E ConfigFileNotFound: Could not find config file at /home/glaubitz/upstream/oci-python-sdk/tests/resources/config
.tox/py27/lib/python2.7/site-packages/oci/config.py:77: ConfigFileNotFound
___________________________________________ ERROR at setup of test_callback_func ____________________________________________
config_file = '/home/glaubitz/upstream/oci-python-sdk/tests/resources/config', config_profile = 'DEFAULT'
@pytest.fixture(scope="session")
def config(config_file, config_profile):
> config = oci.config.from_file(file_location=config_file, profile_name=config_profile)
tests/conftest.py:39:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
file_location = '/home/glaubitz/upstream/oci-python-sdk/tests/resources/config', profile_name = 'DEFAULT'
def from_file(file_location=DEFAULT_LOCATION, profile_name=DEFAULT_PROFILE):
"""Create a config dict from a file.
:param file_location: Path to the config file. Defaults to ~/.oci/config and with a fallback to ~/.oraclebmc/config.
:param profile_name: The profile to load from the config file. Defaults to "DEFAULT"
:return: A config dict that can be used to create clients.
"""
expanded_file_location = _get_config_path_with_fallback(file_location)
parser = configparser.ConfigParser(interpolation=None)
if not parser.read(expanded_file_location):
> raise ConfigFileNotFound("Could not find config file at {}".format(expanded_file_location))
E ConfigFileNotFound: Could not find config file at /home/glaubitz/upstream/oci-python-sdk/tests/resources/config
.tox/py27/lib/python2.7/site-packages/oci/config.py:77: ConfigFileNotFound
______________________________________________ ERROR at setup of test_tutorial ______________________________________________
config_file = '/home/glaubitz/upstream/oci-python-sdk/tests/resources/config', config_profile = 'DEFAULT'
@pytest.fixture(scope="session")
def config(config_file, config_profile):
> config = oci.config.from_file(file_location=config_file, profile_name=config_profile)
tests/conftest.py:39:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
file_location = '/home/glaubitz/upstream/oci-python-sdk/tests/resources/config', profile_name = 'DEFAULT'
def from_file(file_location=DEFAULT_LOCATION, profile_name=DEFAULT_PROFILE):
"""Create a config dict from a file.
:param file_location: Path to the config file. Defaults to ~/.oci/config and with a fallback to ~/.oraclebmc/config.
:param profile_name: The profile to load from the config file. Defaults to "DEFAULT"
:return: A config dict that can be used to create clients.
"""
expanded_file_location = _get_config_path_with_fallback(file_location)
parser = configparser.ConfigParser(interpolation=None)
if not parser.read(expanded_file_location):
> raise ConfigFileNotFound("Could not find config file at {}".format(expanded_file_location))
E ConfigFileNotFound: Could not find config file at /home/glaubitz/upstream/oci-python-sdk/tests/resources/config
.tox/py27/lib/python2.7/site-packages/oci/config.py:77: ConfigFileNotFound
============================================ 20 passed, 14 error in 0.83 seconds ============================================
ERROR: InvocationError: '/home/glaubitz/upstream/oci-python-sdk/.tox/py27/bin/py.test tests/unit tests/integ -s'
py37 create: /home/glaubitz/upstream/oci-python-sdk/.tox/py37
py37 installdeps: -r/home/glaubitz/upstream/oci-python-sdk/requirements.txt
py37 inst: /home/glaubitz/upstream/oci-python-sdk/.tox/dist/oci-2.1.6.zip
py37 installed: alabaster==0.7.12,asn1crypto==0.24.0,Babel==2.6.0,certifi==2018.11.29,cffi==1.11.5,chardet==3.0.4,configparser==3.5.0,coverage==4.4.1,cryptography==2.1.4,docutils==0.14,flake8==3.5.0,idna==2.8,imagesize==1.1.0,Jinja2==2.10,MarkupSafe==1.1.0,mccabe==0.6.1,mock==2.0.0,oci==2.1.6,pbr==5.1.2,pluggy==0.8.1,py==1.7.0,pycodestyle==2.3.1,pycparser==2.19,pyflakes==1.6.0,Pygments==2.3.1,pyOpenSSL==17.5.0,pytest==3.2.3,pytest-catchlog==1.2.2,pytest-cov==2.5.1,python-dateutil==2.7.3,pytz==2018.9,PyYAML==3.13,requests==2.21.0,six==1.12.0,snowballstemmer==1.2.1,Sphinx==1.6.4,sphinx-rtd-theme==0.2.5b2,sphinxcontrib-websupport==1.1.0,tox==2.9.1,urllib3==1.24.1,vcrpy==1.11.1,virtualenv==16.3.0,wrapt==1.11.1
py37 runtests: PYTHONHASHSEED='1261293047'
py37 runtests: commands[0] | py.test tests/unit tests/integ -s
==================================================== test session starts ====================================================
platform linux -- Python 3.7.2, pytest-3.2.3, py-1.7.0, pluggy-0.4.0
rootdir: /home/glaubitz/upstream/oci-python-sdk, inifile:
plugins: cov-2.5.1, catchlog-1.2.2
collected 34 items
tests/unit/test_basic_api_calls.py EEEEE
tests/unit/test_model.py .................
tests/unit/test_response.py ...
tests/unit/test_waiters.py EEEEEEEE
tests/integ/test_launch_instance_tutorial.py E
========================================================== ERRORS ===========================================================
________________________________________ ERROR at setup of test_identity_list_users _________________________________________
config_file = '/home/glaubitz/upstream/oci-python-sdk/tests/resources/config'
@pytest.fixture
def identity(config_file):
# Identity throws an error if we do things from not our home region (currently PHX). So use the default profile here, regardless
# of any command line switches, under the tacit assumption that the default profile points to our home region
> client = oci.identity.IdentityClient(config(config_file, oci.config.DEFAULT_PROFILE))
tests/conftest.py:67:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/conftest.py:39: in config
config = oci.config.from_file(file_location=config_file, profile_name=config_profile)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
file_location = '/home/glaubitz/upstream/oci-python-sdk/tests/resources/config', profile_name = 'DEFAULT'
def from_file(file_location=DEFAULT_LOCATION, profile_name=DEFAULT_PROFILE):
"""Create a config dict from a file.
:param file_location: Path to the config file. Defaults to ~/.oci/config and with a fallback to ~/.oraclebmc/config.
:param profile_name: The profile to load from the config file. Defaults to "DEFAULT"
:return: A config dict that can be used to create clients.
"""
expanded_file_location = _get_config_path_with_fallback(file_location)
parser = configparser.ConfigParser(interpolation=None)
if not parser.read(expanded_file_location):
> raise ConfigFileNotFound("Could not find config file at {}".format(expanded_file_location))
E oci.exceptions.ConfigFileNotFound: Could not find config file at /home/glaubitz/upstream/oci-python-sdk/tests/resources/config
.tox/py37/lib/python3.7/site-packages/oci/config.py:77: ConfigFileNotFound
___________________________________________ ERROR at setup of test_vcn_list_vcns ____________________________________________
config_file = '/home/glaubitz/upstream/oci-python-sdk/tests/resources/config', config_profile = 'DEFAULT'
@pytest.fixture(scope="session")
def config(config_file, config_profile):
> config = oci.config.from_file(file_location=config_file, profile_name=config_profile)
tests/conftest.py:39:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
file_location = '/home/glaubitz/upstream/oci-python-sdk/tests/resources/config', profile_name = 'DEFAULT'
def from_file(file_location=DEFAULT_LOCATION, profile_name=DEFAULT_PROFILE):
"""Create a config dict from a file.
:param file_location: Path to the config file. Defaults to ~/.oci/config and with a fallback to ~/.oraclebmc/config.
:param profile_name: The profile to load from the config file. Defaults to "DEFAULT"
:return: A config dict that can be used to create clients.
"""
expanded_file_location = _get_config_path_with_fallback(file_location)
parser = configparser.ConfigParser(interpolation=None)
if not parser.read(expanded_file_location):
> raise ConfigFileNotFound("Could not find config file at {}".format(expanded_file_location))
E oci.exceptions.ConfigFileNotFound: Could not find config file at /home/glaubitz/upstream/oci-python-sdk/tests/resources/config
.tox/py37/lib/python3.7/site-packages/oci/config.py:77: ConfigFileNotFound
_________________________________________ ERROR at setup of test_vcn_list_instances _________________________________________
config_file = '/home/glaubitz/upstream/oci-python-sdk/tests/resources/config', config_profile = 'DEFAULT'
@pytest.fixture(scope="session")
def config(config_file, config_profile):
> config = oci.config.from_file(file_location=config_file, profile_name=config_profile)
tests/conftest.py:39:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
file_location = '/home/glaubitz/upstream/oci-python-sdk/tests/resources/config', profile_name = 'DEFAULT'
def from_file(file_location=DEFAULT_LOCATION, profile_name=DEFAULT_PROFILE):
"""Create a config dict from a file.
:param file_location: Path to the config file. Defaults to ~/.oci/config and with a fallback to ~/.oraclebmc/config.
:param profile_name: The profile to load from the config file. Defaults to "DEFAULT"
:return: A config dict that can be used to create clients.
"""
expanded_file_location = _get_config_path_with_fallback(file_location)
parser = configparser.ConfigParser(interpolation=None)
if not parser.read(expanded_file_location):
> raise ConfigFileNotFound("Could not find config file at {}".format(expanded_file_location))
E oci.exceptions.ConfigFileNotFound: Could not find config file at /home/glaubitz/upstream/oci-python-sdk/tests/resources/config
.tox/py37/lib/python3.7/site-packages/oci/config.py:77: ConfigFileNotFound
_______________________________________________ ERROR at setup of test_limit ________________________________________________
config_file = '/home/glaubitz/upstream/oci-python-sdk/tests/resources/config'
@pytest.fixture
def identity(config_file):
# Identity throws an error if we do things from not our home region (currently PHX). So use the default profile here, regardless
# of any command line switches, under the tacit assumption that the default profile points to our home region
> client = oci.identity.IdentityClient(config(config_file, oci.config.DEFAULT_PROFILE))
tests/conftest.py:67:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/conftest.py:39: in config
config = oci.config.from_file(file_location=config_file, profile_name=config_profile)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
file_location = '/home/glaubitz/upstream/oci-python-sdk/tests/resources/config', profile_name = 'DEFAULT'
def from_file(file_location=DEFAULT_LOCATION, profile_name=DEFAULT_PROFILE):
"""Create a config dict from a file.
:param file_location: Path to the config file. Defaults to ~/.oci/config and with a fallback to ~/.oraclebmc/config.
:param profile_name: The profile to load from the config file. Defaults to "DEFAULT"
:return: A config dict that can be used to create clients.
"""
expanded_file_location = _get_config_path_with_fallback(file_location)
parser = configparser.ConfigParser(interpolation=None)
if not parser.read(expanded_file_location):
> raise ConfigFileNotFound("Could not find config file at {}".format(expanded_file_location))
E oci.exceptions.ConfigFileNotFound: Could not find config file at /home/glaubitz/upstream/oci-python-sdk/tests/resources/config
.tox/py37/lib/python3.7/site-packages/oci/config.py:77: ConfigFileNotFound
___________________________________ ERROR at setup of test_api_call_with_explicit_timeout ___________________________________
config_file = '/home/glaubitz/upstream/oci-python-sdk/tests/resources/config', config_profile = 'DEFAULT'
@pytest.fixture(scope="session")
def config(config_file, config_profile):
> config = oci.config.from_file(file_location=config_file, profile_name=config_profile)
tests/conftest.py:39:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
file_location = '/home/glaubitz/upstream/oci-python-sdk/tests/resources/config', profile_name = 'DEFAULT'
def from_file(file_location=DEFAULT_LOCATION, profile_name=DEFAULT_PROFILE):
"""Create a config dict from a file.
:param file_location: Path to the config file. Defaults to ~/.oci/config and with a fallback to ~/.oraclebmc/config.
:param profile_name: The profile to load from the config file. Defaults to "DEFAULT"
:return: A config dict that can be used to create clients.
"""
expanded_file_location = _get_config_path_with_fallback(file_location)
parser = configparser.ConfigParser(interpolation=None)
if not parser.read(expanded_file_location):
> raise ConfigFileNotFound("Could not find config file at {}".format(expanded_file_location))
E oci.exceptions.ConfigFileNotFound: Could not find config file at /home/glaubitz/upstream/oci-python-sdk/tests/resources/config
.tox/py37/lib/python3.7/site-packages/oci/config.py:77: ConfigFileNotFound
_____________________________________________ ERROR at setup of test_basic_wait _____________________________________________
config_file = '/home/glaubitz/upstream/oci-python-sdk/tests/resources/config', config_profile = 'DEFAULT'
@pytest.fixture(scope="session")
def config(config_file, config_profile):
> config = oci.config.from_file(file_location=config_file, profile_name=config_profile)
tests/conftest.py:39:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
file_location = '/home/glaubitz/upstream/oci-python-sdk/tests/resources/config', profile_name = 'DEFAULT'
def from_file(file_location=DEFAULT_LOCATION, profile_name=DEFAULT_PROFILE):
"""Create a config dict from a file.
:param file_location: Path to the config file. Defaults to ~/.oci/config and with a fallback to ~/.oraclebmc/config.
:param profile_name: The profile to load from the config file. Defaults to "DEFAULT"
:return: A config dict that can be used to create clients.
"""
expanded_file_location = _get_config_path_with_fallback(file_location)
parser = configparser.ConfigParser(interpolation=None)
if not parser.read(expanded_file_location):
> raise ConfigFileNotFound("Could not find config file at {}".format(expanded_file_location))
E oci.exceptions.ConfigFileNotFound: Could not find config file at /home/glaubitz/upstream/oci-python-sdk/tests/resources/config
.tox/py37/lib/python3.7/site-packages/oci/config.py:77: ConfigFileNotFound
_________________________________________ ERROR at setup of test_invalid_operation __________________________________________
config_file = '/home/glaubitz/upstream/oci-python-sdk/tests/resources/config'
@pytest.fixture
def identity(config_file):
# Identity throws an error if we do things from not our home region (currently PHX). So use the default profile here, regardless
# of any command line switches, under the tacit assumption that the default profile points to our home region
> client = oci.identity.IdentityClient(config(config_file, oci.config.DEFAULT_PROFILE))
tests/conftest.py:67:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/conftest.py:39: in config
config = oci.config.from_file(file_location=config_file, profile_name=config_profile)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
file_location = '/home/glaubitz/upstream/oci-python-sdk/tests/resources/config', profile_name = 'DEFAULT'
def from_file(file_location=DEFAULT_LOCATION, profile_name=DEFAULT_PROFILE):
"""Create a config dict from a file.
:param file_location: Path to the config file. Defaults to ~/.oci/config and with a fallback to ~/.oraclebmc/config.
:param profile_name: The profile to load from the config file. Defaults to "DEFAULT"
:return: A config dict that can be used to create clients.
"""
expanded_file_location = _get_config_path_with_fallback(file_location)
parser = configparser.ConfigParser(interpolation=None)
if not parser.read(expanded_file_location):
> raise ConfigFileNotFound("Could not find config file at {}".format(expanded_file_location))
E oci.exceptions.ConfigFileNotFound: Could not find config file at /home/glaubitz/upstream/oci-python-sdk/tests/resources/config
.tox/py37/lib/python3.7/site-packages/oci/config.py:77: ConfigFileNotFound
__________________________________________ ERROR at setup of test_already_in_state __________________________________________
config_file = '/home/glaubitz/upstream/oci-python-sdk/tests/resources/config'
@pytest.fixture
def identity(config_file):
# Identity throws an error if we do things from not our home region (currently PHX). So use the default profile here, regardless
# of any command line switches, under the tacit assumption that the default profile points to our home region
> client = oci.identity.IdentityClient(config(config_file, oci.config.DEFAULT_PROFILE))
tests/conftest.py:67:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/conftest.py:39: in config
config = oci.config.from_file(file_location=config_file, profile_name=config_profile)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
file_location = '/home/glaubitz/upstream/oci-python-sdk/tests/resources/config', profile_name = 'DEFAULT'
def from_file(file_location=DEFAULT_LOCATION, profile_name=DEFAULT_PROFILE):
"""Create a config dict from a file.
:param file_location: Path to the config file. Defaults to ~/.oci/config and with a fallback to ~/.oraclebmc/config.
:param profile_name: The profile to load from the config file. Defaults to "DEFAULT"
:return: A config dict that can be used to create clients.
"""
expanded_file_location = _get_config_path_with_fallback(file_location)
parser = configparser.ConfigParser(interpolation=None)
if not parser.read(expanded_file_location):
> raise ConfigFileNotFound("Could not find config file at {}".format(expanded_file_location))
E oci.exceptions.ConfigFileNotFound: Could not find config file at /home/glaubitz/upstream/oci-python-sdk/tests/resources/config
.tox/py37/lib/python3.7/site-packages/oci/config.py:77: ConfigFileNotFound
_________________________________________ ERROR at setup of test_wait_time_exceeded _________________________________________
config_file = '/home/glaubitz/upstream/oci-python-sdk/tests/resources/config'
@pytest.fixture
def identity(config_file):
# Identity throws an error if we do things from not our home region (currently PHX). So use the default profile here, regardless
# of any command line switches, under the tacit assumption that the default profile points to our home region
> client = oci.identity.IdentityClient(config(config_file, oci.config.DEFAULT_PROFILE))
tests/conftest.py:67:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/conftest.py:39: in config
config = oci.config.from_file(file_location=config_file, profile_name=config_profile)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
file_location = '/home/glaubitz/upstream/oci-python-sdk/tests/resources/config', profile_name = 'DEFAULT'
def from_file(file_location=DEFAULT_LOCATION, profile_name=DEFAULT_PROFILE):
"""Create a config dict from a file.
:param file_location: Path to the config file. Defaults to ~/.oci/config and with a fallback to ~/.oraclebmc/config.
:param profile_name: The profile to load from the config file. Defaults to "DEFAULT"
:return: A config dict that can be used to create clients.
"""
expanded_file_location = _get_config_path_with_fallback(file_location)
parser = configparser.ConfigParser(interpolation=None)
if not parser.read(expanded_file_location):
> raise ConfigFileNotFound("Could not find config file at {}".format(expanded_file_location))
E oci.exceptions.ConfigFileNotFound: Could not find config file at /home/glaubitz/upstream/oci-python-sdk/tests/resources/config
.tox/py37/lib/python3.7/site-packages/oci/config.py:77: ConfigFileNotFound
________________________________ ERROR at setup of test_property_and_eval_function_provided _________________________________
config_file = '/home/glaubitz/upstream/oci-python-sdk/tests/resources/config', config_profile = 'DEFAULT'
@pytest.fixture(scope="session")
def config(config_file, config_profile):
> config = oci.config.from_file(file_location=config_file, profile_name=config_profile)
tests/conftest.py:39:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
file_location = '/home/glaubitz/upstream/oci-python-sdk/tests/resources/config', profile_name = 'DEFAULT'
def from_file(file_location=DEFAULT_LOCATION, profile_name=DEFAULT_PROFILE):
"""Create a config dict from a file.
:param file_location: Path to the config file. Defaults to ~/.oci/config and with a fallback to ~/.oraclebmc/config.
:param profile_name: The profile to load from the config file. Defaults to "DEFAULT"
:return: A config dict that can be used to create clients.
"""
expanded_file_location = _get_config_path_with_fallback(file_location)
parser = configparser.ConfigParser(interpolation=None)
if not parser.read(expanded_file_location):
> raise ConfigFileNotFound("Could not find config file at {}".format(expanded_file_location))
E oci.exceptions.ConfigFileNotFound: Could not find config file at /home/glaubitz/upstream/oci-python-sdk/tests/resources/config
.tox/py37/lib/python3.7/site-packages/oci/config.py:77: ConfigFileNotFound
________________________________________ ERROR at setup of test_eval_function_lambda ________________________________________
config_file = '/home/glaubitz/upstream/oci-python-sdk/tests/resources/config'
@pytest.fixture
def identity(config_file):
# Identity throws an error if we do things from not our home region (currently PHX). So use the default profile here, regardless
# of any command line switches, under the tacit assumption that the default profile points to our home region
> client = oci.identity.IdentityClient(config(config_file, oci.config.DEFAULT_PROFILE))
tests/conftest.py:67:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/conftest.py:39: in config
config = oci.config.from_file(file_location=config_file, profile_name=config_profile)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
file_location = '/home/glaubitz/upstream/oci-python-sdk/tests/resources/config', profile_name = 'DEFAULT'
def from_file(file_location=DEFAULT_LOCATION, profile_name=DEFAULT_PROFILE):
"""Create a config dict from a file.
:param file_location: Path to the config file. Defaults to ~/.oci/config and with a fallback to ~/.oraclebmc/config.
:param profile_name: The profile to load from the config file. Defaults to "DEFAULT"
:return: A config dict that can be used to create clients.
"""
expanded_file_location = _get_config_path_with_fallback(file_location)
parser = configparser.ConfigParser(interpolation=None)
if not parser.read(expanded_file_location):
> raise ConfigFileNotFound("Could not find config file at {}".format(expanded_file_location))
E oci.exceptions.ConfigFileNotFound: Could not find config file at /home/glaubitz/upstream/oci-python-sdk/tests/resources/config
.tox/py37/lib/python3.7/site-packages/oci/config.py:77: ConfigFileNotFound
_______________________________________ ERROR at setup of test_eval_function_func_ref _______________________________________
config_file = '/home/glaubitz/upstream/oci-python-sdk/tests/resources/config'
@pytest.fixture
def identity(config_file):
# Identity throws an error if we do things from not our home region (currently PHX). So use the default profile here, regardless
# of any command line switches, under the tacit assumption that the default profile points to our home region
> client = oci.identity.IdentityClient(config(config_file, oci.config.DEFAULT_PROFILE))
tests/conftest.py:67:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/conftest.py:39: in config
config = oci.config.from_file(file_location=config_file, profile_name=config_profile)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
file_location = '/home/glaubitz/upstream/oci-python-sdk/tests/resources/config', profile_name = 'DEFAULT'
def from_file(file_location=DEFAULT_LOCATION, profile_name=DEFAULT_PROFILE):
"""Create a config dict from a file.
:param file_location: Path to the config file. Defaults to ~/.oci/config and with a fallback to ~/.oraclebmc/config.
:param profile_name: The profile to load from the config file. Defaults to "DEFAULT"
:return: A config dict that can be used to create clients.
"""
expanded_file_location = _get_config_path_with_fallback(file_location)
parser = configparser.ConfigParser(interpolation=None)
if not parser.read(expanded_file_location):
> raise ConfigFileNotFound("Could not find config file at {}".format(expanded_file_location))
E oci.exceptions.ConfigFileNotFound: Could not find config file at /home/glaubitz/upstream/oci-python-sdk/tests/resources/config
.tox/py37/lib/python3.7/site-packages/oci/config.py:77: ConfigFileNotFound
___________________________________________ ERROR at setup of test_callback_func ____________________________________________
config_file = '/home/glaubitz/upstream/oci-python-sdk/tests/resources/config', config_profile = 'DEFAULT'
@pytest.fixture(scope="session")
def config(config_file, config_profile):
> config = oci.config.from_file(file_location=config_file, profile_name=config_profile)
tests/conftest.py:39:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
file_location = '/home/glaubitz/upstream/oci-python-sdk/tests/resources/config', profile_name = 'DEFAULT'
def from_file(file_location=DEFAULT_LOCATION, profile_name=DEFAULT_PROFILE):
"""Create a config dict from a file.
:param file_location: Path to the config file. Defaults to ~/.oci/config and with a fallback to ~/.oraclebmc/config.
:param profile_name: The profile to load from the config file. Defaults to "DEFAULT"
:return: A config dict that can be used to create clients.
"""
expanded_file_location = _get_config_path_with_fallback(file_location)
parser = configparser.ConfigParser(interpolation=None)
if not parser.read(expanded_file_location):
> raise ConfigFileNotFound("Could not find config file at {}".format(expanded_file_location))
E oci.exceptions.ConfigFileNotFound: Could not find config file at /home/glaubitz/upstream/oci-python-sdk/tests/resources/config
.tox/py37/lib/python3.7/site-packages/oci/config.py:77: ConfigFileNotFound
______________________________________________ ERROR at setup of test_tutorial ______________________________________________
config_file = '/home/glaubitz/upstream/oci-python-sdk/tests/resources/config', config_profile = 'DEFAULT'
@pytest.fixture(scope="session")
def config(config_file, config_profile):
> config = oci.config.from_file(file_location=config_file, profile_name=config_profile)
tests/conftest.py:39:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
file_location = '/home/glaubitz/upstream/oci-python-sdk/tests/resources/config', profile_name = 'DEFAULT'
def from_file(file_location=DEFAULT_LOCATION, profile_name=DEFAULT_PROFILE):
"""Create a config dict from a file.
:param file_location: Path to the config file. Defaults to ~/.oci/config and with a fallback to ~/.oraclebmc/config.
:param profile_name: The profile to load from the config file. Defaults to "DEFAULT"
:return: A config dict that can be used to create clients.
"""
expanded_file_location = _get_config_path_with_fallback(file_location)
parser = configparser.ConfigParser(interpolation=None)
if not parser.read(expanded_file_location):
> raise ConfigFileNotFound("Could not find config file at {}".format(expanded_file_location))
E oci.exceptions.ConfigFileNotFound: Could not find config file at /home/glaubitz/upstream/oci-python-sdk/tests/resources/config
.tox/py37/lib/python3.7/site-packages/oci/config.py:77: ConfigFileNotFound
============================================ 20 passed, 14 error in 0.81 seconds ============================================
ERROR: InvocationError: '/home/glaubitz/upstream/oci-python-sdk/.tox/py37/bin/py.test tests/unit tests/integ -s'
flake8 inst-nodeps: /home/glaubitz/upstream/oci-python-sdk/.tox/dist/oci-2.1.6.zip
flake8 installed: asn1crypto==0.24.0,certifi==2018.11.29,cffi==1.11.5,configparser==3.7.1,cryptography==2.5,entrypoints==0.3,flake8==3.7.5,mccabe==0.6.1,oci==2.1.6,pycodestyle==2.5.0,pycparser==2.19,pyflakes==2.1.0,pyOpenSSL==19.0.0,python-dateutil==2.7.3,pytz==2018.9,six==1.12.0
flake8 runtests: PYTHONHASHSEED='1261293047'
flake8 runtests: commands[0] | flake8 src docs tests examples
__________________________________________________________ summary __________________________________________________________
ERROR: py27: commands failed
ERROR: py37: commands failed
flake8: commands succeeded
(oci-python-sdk-env) glaubitz@suse-laptop:~/upstream/oci-python-sdk>