You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The SDK uses `pytest` as its test framework. You can run tests against Python 2.7, Python 3.5 and Python 3.6 using the `tox` command. Note that this requires that you have those versions of Python installed,
24
+
The SDK uses `pytest` as its test framework. You can run tests against Python 2.7, Python 3.5 and Python 3.6 using the `tox` command. Note that this requires that you have those versions of Python installed,
25
25
otherwise you must pass `-e` or run tests directly:
26
26
27
27
.. code-block:: sh
@@ -41,9 +41,11 @@ If you wish to run an individual test then you can run:
41
41
Specifying a config file
42
42
------------------------
43
43
44
-
By default, the tests will look for a config file at 'tests/resources/config'
45
-
and use the ``DEFAULT`` profile. You can change this with the ``--config-file``
46
-
and ``--config-profile`` options.
44
+
By default, the tests will look for a config file, 'config' in 'tests/resources'.
45
+
If 'tests/resources' does not exist, the tests will try attempt to use
46
+
'tests/configuration/config'.
47
+
The default profile is ``DEFAULT``. You can change this with the
48
+
``--config-file`` and ``--config-profile`` options.
47
49
48
50
.. code-block:: sh
49
51
@@ -53,9 +55,11 @@ and ``--config-profile`` options.
53
55
# Using a different profile in the default config file
54
56
tox -- --config-profile IAD_PROFILE
55
57
58
+
A sample config file is provided 'tests/configuration/config.sample'
59
+
56
60
Specifying environment variables
57
61
--------------------------------
58
-
In addition to a valid config file for your tenancy, the tests also require the following environment
62
+
In addition to a valid config file for your tenancy, the tests also require the following environment
59
63
variables to be set:
60
64
61
65
* ``OCI_PYSDK_PUBLIC_SSH_KEY_FILE``: path to a public SSH key (.pub file) that will be given access to the instance launched in ``test_launch_instance_tutorial.py``.
0 commit comments