Skip to content

Commit 960c56c

Browse files
committedNov 18, 2021
test: boolean disable_ssl flag
1 parent d14c825 commit 960c56c

File tree

7 files changed

+12
-11
lines changed

7 files changed

+12
-11
lines changed
 

‎Makefile

+6-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,14 @@
44

55
setup: deps dev_deps install_project
66

7-
all: setup test-unit lint
7+
all: upgrade_pip setup test-unit lint
88

9-
deps:
9+
ci: setup test-unit lint
10+
11+
upgrade_pip:
1012
python -m pip install --upgrade pip
13+
14+
deps:
1115
python -m pip install -r requirements.txt
1216

1317
dev_deps:

‎ibm_whcs_sdk/annotator_for_clinical_data/tests/integration/test_acd_analyze_apis.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
IAMURL = CONFIG.get('settings', 'iam_url')
2727
VERSION = CONFIG.get('settings', 'version')
2828
LEVEL = CONFIG.get('settings', 'logging_level')
29-
DISABLE_SSL = CONFIG.get('settings', 'disable_ssl')
29+
DISABLE_SSL = (CONFIG.get('settings', 'disable_ssl')=='True)
3030
FLOW = CONFIG.get('settings', 'flow')
3131

3232
ACD = wh.AnnotatorForClinicalDataV1(

‎ibm_whcs_sdk/annotator_for_clinical_data/tests/integration/test_acd_annotator_apis.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
IAMURL = CONFIG.get('settings', 'iam_url')
2626
VERSION = CONFIG.get('settings', 'version')
2727
LEVEL = CONFIG.get('settings', 'logging_level')
28-
DISABLE_SSL = CONFIG.get('settings', 'disable_ssl')
28+
DISABLE_SSL = (CONFIG.get('settings', 'disable_ssl')=='True)
2929

3030
ACD = wh.AnnotatorForClinicalDataV1(
3131
authenticator=IAMAuthenticator(apikey=APIKEY, url=IAMURL, disable_ssl_verification=DISABLE_SSL),

‎ibm_whcs_sdk/annotator_for_clinical_data/tests/integration/test_acd_flows_apis.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
IAMURL = CONFIG.get('settings', 'iam_url')
2626
VERSION = CONFIG.get('settings', 'version')
2727
LEVEL = CONFIG.get('settings', 'logging_level')
28-
DISABLE_SSL = CONFIG.get('settings', 'disable_ssl')
28+
DISABLE_SSL = (CONFIG.get('settings', 'disable_ssl')=='True)
2929
FLOW = CONFIG.get('settings', 'flow')
3030

3131
ACD = wh.AnnotatorForClinicalDataV1(

‎ibm_whcs_sdk/annotator_for_clinical_data/tests/integration/test_acd_health_check.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
IAMURL = CONFIG.get('settings', 'iam_url')
2626
VERSION = CONFIG.get('settings', 'version')
2727
LEVEL = CONFIG.get('settings', 'logging_level')
28-
DISABLE_SSL = CONFIG.get('settings', 'disable_ssl')
28+
DISABLE_SSL = (CONFIG.get('settings', 'disable_ssl')=='True)
2929

3030
ACD = wh.AnnotatorForClinicalDataV1(
3131
authenticator=IAMAuthenticator(apikey=APIKEY, url=IAMURL, disable_ssl_verification=DISABLE_SSL),
@@ -36,4 +36,4 @@
3636

3737
def test_get_health_check():
3838
response = ACD.get_health_check_status()
39-
assert response is not None
39+
assert response is not None

‎ibm_whcs_sdk/annotator_for_clinical_data/tests/integration/test_acd_profiles_apis.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
IAMURL = CONFIG.get('settings', 'iam_url')
2626
VERSION = CONFIG.get('settings', 'version')
2727
LEVEL = CONFIG.get('settings', 'logging_level')
28-
DISABLE_SSL = CONFIG.get('settings', 'disable_ssl')
28+
DISABLE_SSL = (CONFIG.get('settings', 'disable_ssl')=='True)
2929
PROFILE = CONFIG.get('settings', 'profile')
3030

3131
ACD = wh.AnnotatorForClinicalDataV1(

‎requirements-dev.txt

-3
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,5 @@ pytest>=6.2.1,<7.0.0
33
responses>=0.12.1,<1.0.0
44
pylint>=2.6.0,<3.0.0
55
tox>=3.2.0,<4.0.0
6-
7-
# code coverage
86
coverage>=4.5.4
9-
codecov>=2.1.0,<3.0.0
107
pytest-cov>=2.2.1,<3.0.0

0 commit comments

Comments
 (0)