Skip to content

Commit 6dd33d2

Browse files
JACK SARTOREGitHub Enterprise
authored andcommitted
feat(oneOf): addeed type support for secret data types (#9)
* feat(oneOf): addeed type support for secret data types BREAKING CHANGE: new classes for each secret data type added * test fix * test fix * added more secret examples * updated to latest openAPI, added oneOf for secret updates * udpated timeout on int test * increase timeout * adjust timeout * removed retries * set retries to 0 * udpated retry interval * sleep adjust * removed loop, depending on python retry * increased project sleep to 2 minutes before trying get * moved sleep * fixed timestamp name, will removed security alerts
1 parent e857843 commit 6dd33d2

File tree

6 files changed

+1376
-847
lines changed

6 files changed

+1376
-847
lines changed

Makefile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,27 @@ all: upgrade_pip setup test-unit lint
99
ci: setup test-unit lint
1010

1111
upgrade_pip:
12-
python -m pip install --upgrade pip
12+
python3 -m pip install --upgrade pip
1313

1414
deps:
15-
python -m pip install -r requirements.txt
15+
python3 -m pip install -r requirements.txt
1616

1717
dev_deps:
18-
python -m pip install -r requirements-dev.txt
18+
python3 -m pip install -r requirements-dev.txt
1919

2020
install_project:
21-
python -m pip install -e .
21+
python3 -m pip install -e .
2222

2323
test: test-unit test-int
2424

2525
test-unit:
26-
python -m pytest --cov=ibm_code_engine_sdk test/unit
26+
python3 -m pytest --cov=ibm_code_engine_sdk test/unit
2727

2828
test-int:
29-
python -m pytest test/integration
29+
python3 -m pytest test/integration
3030

3131
test-examples:
32-
python -m pytest example
32+
python3 -m pytest example
3333

3434
lint:
3535
./pylint.sh && black --check .

examples/test_code_engine_v2_examples.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ def test_get_app_revision_example(self):
277277
response = code_engine_service.get_app_revision(
278278
project_id='15314cc3-85b4-4338-903f-c28cdee6d005',
279279
app_name='my-app',
280-
name='my-app-001',
280+
name='my-app-00001',
281281
)
282282
app_revision = response.get_result()
283283

@@ -444,7 +444,7 @@ def test_get_job_run_example(self):
444444

445445
response = code_engine_service.get_job_run(
446446
project_id='15314cc3-85b4-4338-903f-c28cdee6d005',
447-
name='my-job',
447+
name='my-job-run',
448448
)
449449
job_run = response.get_result()
450450

@@ -662,7 +662,7 @@ def test_create_config_map_example(self):
662662

663663
response = code_engine_service.create_config_map(
664664
project_id='15314cc3-85b4-4338-903f-c28cdee6d005',
665-
name='my-configmap',
665+
name='my-config-map',
666666
)
667667
config_map = response.get_result()
668668

@@ -860,7 +860,7 @@ def test_delete_app_revision_example(self):
860860
response = code_engine_service.delete_app_revision(
861861
project_id='15314cc3-85b4-4338-903f-c28cdee6d005',
862862
app_name='my-app',
863-
name='my-app-001',
863+
name='my-app-00001',
864864
)
865865

866866
# end-delete_app_revision
@@ -898,7 +898,7 @@ def test_delete_job_run_example(self):
898898

899899
response = code_engine_service.delete_job_run(
900900
project_id='15314cc3-85b4-4338-903f-c28cdee6d005',
901-
name='my-job',
901+
name='my-job-run',
902902
)
903903

904904
# end-delete_job_run

0 commit comments

Comments
 (0)