Skip to content

Testsuite requires OCI account to run #187

@glaubitz

Description

@glaubitz

I'm currently packaging oci-cli for openSUSE and SUSE Linux Enterprise distributions.

While creating and building the RPM package is rather simple, it's not possible to enable the testsuite so it's run during package build as the testsuite apparently requires an OCI account:

[   22s] ==================================== ERRORS ====================================
[   22s] __________ ERROR collecting services/audit/tests/integ/test_audit.py ___________
[   22s] services/audit/tests/integ/test_audit.py:10: in <module>
[   22s]     from tests import util
[   22s] tests/util.py:38: in <module>
[   22s]     USER_ID = os.environ['OCI_CLI_USER_ID']
[   22s] /usr/lib64/python3.7/os.py:678: in __getitem__
[   22s]     raise KeyError(key) from None
[   22s] E   KeyError: 'OCI_CLI_USER_ID'
[   22s] ___ ERROR collecting services/budget/tests/unit/test_budget_cli_extended.py ____
[   22s] services/budget/tests/unit/test_budget_cli_extended.py:5: in <module>
[   22s]     from tests import util
[   22s] tests/util.py:38: in <module>
[   22s]     USER_ID = os.environ['OCI_CLI_USER_ID']
[   22s] /usr/lib64/python3.7/os.py:678: in __getitem__
[   22s]     raise KeyError(key) from None
[   22s] E   KeyError: 'OCI_CLI_USER_ID'
[   22s] _ ERROR collecting services/container_engine/tests/integ/test_containerengine.py _
[   22s] services/container_engine/tests/integ/test_containerengine.py:11: in <module>
[   22s]     from tests import util
[   22s] tests/util.py:38: in <module>
[   22s]     USER_ID = os.environ['OCI_CLI_USER_ID']
[   22s] /usr/lib64/python3.7/os.py:678: in __getitem__
[   22s]     raise KeyError(key) from None
[   22s] E   KeyError: 'OCI_CLI_USER_ID'
[   22s] _______ ERROR collecting services/core/tests/integ/test_blockstorage.py ________
[   22s] services/core/tests/integ/test_blockstorage.py:7: in <module>
[   22s]     from tests import util
[   22s] tests/util.py:38: in <module>
[   22s]     USER_ID = os.environ['OCI_CLI_USER_ID']
[   22s] /usr/lib64/python3.7/os.py:678: in __getitem__
[   22s]     raise KeyError(key) from None
[   22s] E   KeyError: 'OCI_CLI_USER_ID'

Would it be possible to provide a (simplified) offline version of the testsuite so that we can enable it for the oci-cli package in openSUSE/SLE?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions