Skip to content

Commit 1f63e6e

Browse files
reggeenrGitHub Enterprise
authored andcommitted
feat(build): added v2 integration tests
* feat(test): added v2 integration tests * adjusted python version * fix(build) fixed linter warnings
1 parent 436cefa commit 1f63e6e

File tree

5 files changed

+1086
-11
lines changed

5 files changed

+1086
-11
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,7 @@ swagger.json
7979

8080
# files produced by "npm install" commands during build
8181
package-lock.json
82-
node_modules/
82+
node_modules/
83+
84+
# ignore the generated integration test files, as they cannot be used without manual editing
85+
integration/test_code_engine_v2.py

.travis.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
dist: bionic
22

33
language: python
4+
python:
5+
- "3.11"
46

57
cache: pip
68

@@ -12,12 +14,12 @@ branches:
1214
notifications:
1315
email: true
1416

15-
matrix:
16-
include:
17-
- python: 3.7
18-
- python: 3.8
19-
- python: 3.9
20-
- python: 3.10
17+
before_install:
18+
# create an .env file that is pulled in while executing the v2 integration tests
19+
- echo "CODE_ENGINE_URL=https://$CE_API_HOST/v2" > code_engine_v2.env
20+
- echo "CODE_ENGINE_AUTH_TYPE=iam" >> code_engine_v2.env
21+
- echo "CODE_ENGINE_APIKEY=$CE_API_KEY" >> code_engine_v2.env
22+
- echo "CODE_ENGINE_AUTH_URL=$IAM_ENDPOINT" >> code_engine_v2.env
2123

2224
install:
2325
- sudo apt-get update
@@ -28,6 +30,7 @@ install:
2830

2931
script:
3032
- make ci
33+
- make test-int
3134

3235
before_deploy:
3336
- nvm install 14

.travis_public.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
dist: bionic
2+
3+
language: python
4+
5+
cache: pip
6+
7+
# Only run on main (still tests PRs)
8+
branches:
9+
only:
10+
- main
11+
12+
notifications:
13+
email: true
14+
15+
matrix:
16+
include:
17+
- python: 3.7
18+
- python: 3.8
19+
- python: 3.9
20+
- python: 3.10
21+
22+
install:
23+
- sudo apt-get update
24+
- sudo apt-get install pandoc
25+
- pip install pypandoc
26+
- echo -e "machine github.ibm.com\n login $GITHUB_OAUTH_TOKEN" > ~/.netrc
27+
- pip install setuptools=="60.8.2"
28+
29+
script:
30+
- make ci
31+
32+
before_deploy:
33+
- nvm install 14
34+
- npm install
35+
- pip install bump2version
36+
37+
deploy:
38+
- provider: script
39+
script: npm run semantic-release
40+
skip_cleanup: true
41+
on:
42+
python: '3.7'
43+
branch: main
44+
- provider: pypi
45+
user: __token__
46+
password: $PYPI_TOKEN
47+
repository: https://upload.pypi.org/legacy
48+
skip_cleanup: true
49+
on:
50+
python: '3.7'
51+
tags: true

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66

77
Python client library to interact with the [IBM Cloud Code Engine API](https://cloud.ibm.com/apidocs/codeengine).
88

9-
Disclaimer: this SDK is being released initially as a **pre-release** version.
10-
Changes might occur which impact applications that use this SDK.
11-
129
## Table of Contents
1310

1411
<!--
@@ -42,7 +39,8 @@ IBM Cloud services:
4239

4340
Service Name | Imported Class Name
4441
--- | ---
45-
[IBM Cloud Code Engine](https://cloud.ibm.com/apidocs/codeengine) | IbmCloudCodeEngineV1
42+
[IBM Cloud Code Engine V2](https://cloud.ibm.com/apidocs/codeengine/codeengine-v2.0.0) | CodeEngineV2
43+
[IBM Cloud Code Engine V1](https://cloud.ibm.com/apidocs/codeengine/codeengine-v1.0.0) | IbmCloudCodeEngineV1
4644

4745
## Prerequisites
4846

0 commit comments

Comments
 (0)