mirror of
https://github.com/OpenKMIP/PyKMIP.git
synced 2025-07-31 01:44:02 +02:00
alternate config unit test fix
This commit is contained in:
parent
ff69f85091
commit
483fc6c57f
1
.github/workflows/.travis.yml
vendored
1
.github/workflows/.travis.yml
vendored
@ -10,7 +10,6 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
env:
|
env:
|
||||||
UNITTEST: ${{ true }}
|
|
||||||
TOXENV: ${{ matrix.test }}
|
TOXENV: ${{ matrix.test }}
|
||||||
RUN_INTEGRATION_TESTS: ${{ matrix.test_number}}
|
RUN_INTEGRATION_TESTS: ${{ matrix.test_number}}
|
||||||
steps:
|
steps:
|
||||||
|
@ -27,9 +27,6 @@ CONFIG_FILE = [
|
|||||||
os.path.normpath(os.path.join(FILE_PATH, '../pykmip.conf')),
|
os.path.normpath(os.path.join(FILE_PATH, '../pykmip.conf')),
|
||||||
os.path.normpath(os.path.join(FILE_PATH, '../kmipconfig.ini'))]
|
os.path.normpath(os.path.join(FILE_PATH, '../kmipconfig.ini'))]
|
||||||
|
|
||||||
if os.environ.get("UNITTEST"):
|
|
||||||
CONFIG_FILE = []
|
|
||||||
|
|
||||||
|
|
||||||
class ConfigHelper(object):
|
class ConfigHelper(object):
|
||||||
NONE_VALUE = 'None'
|
NONE_VALUE = 'None'
|
||||||
|
@ -81,7 +81,7 @@ class TestKMIPClient(TestCase):
|
|||||||
self.cred_factory = CredentialFactory()
|
self.cred_factory = CredentialFactory()
|
||||||
self.secret_factory = SecretFactory()
|
self.secret_factory = SecretFactory()
|
||||||
|
|
||||||
self.client = KMIPProxy()
|
self.client = KMIPProxy(config_file="/dev/null")
|
||||||
|
|
||||||
KMIP_PORT = 9090
|
KMIP_PORT = 9090
|
||||||
CA_CERTS_PATH = os.path.normpath(os.path.join(os.path.dirname(
|
CA_CERTS_PATH = os.path.normpath(os.path.join(os.path.dirname(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user