Skip to content

Commit 1da2697

Browse files
feat(api): Updated java-sdk to adopt Code Engine API specification changes
1 parent cb2b1f8 commit 1da2697

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+3632
-1057
lines changed

.github/pull_request_template.md

Lines changed: 0 additions & 36 deletions
This file was deleted.
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Unit and Integration Test
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
# Allows you to run this workflow manually from the Actions tab
9+
workflow_dispatch:
10+
11+
jobs:
12+
unit-and-integration-test:
13+
runs-on: ibm-x86-64-medium
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-java@v4
17+
with:
18+
java-version: '17'
19+
distribution: semeru
20+
cache: 'maven'
21+
- name: Install Maven
22+
run: |
23+
sudo apt-get install software-properties-common -y
24+
sudo apt-add-repository universe -y
25+
sudo apt-get update -y
26+
sudo apt-get install maven -y
27+
- name: Run Unit Tests
28+
run: mvn verify -fae -DskipITs $MVN_ARGS
29+
env:
30+
MVN_ARGS: --settings build/.travis.settings.xml
31+
- name: Get latest domain mapping certs from api
32+
uses: actions/checkout@v4
33+
with:
34+
repository: 'coligo/api'
35+
ref: 'main'
36+
path: 'uxapi'
37+
token: ${{ secrets.DEVOPS_GITHUB_TOKEN }}
38+
- name: Run Integration Tests
39+
env:
40+
CE_API_HOST: ${{ vars.CE_API_HOST }}
41+
CE_API_KEY: ${{ secrets.CE_TEST_API_KEY }}
42+
COS_ACCESS_KEY_ID: ${{ secrets.COS_ACCESS_KEY_ID }}
43+
COS_SECRET_ACCESS_KEY: ${{ secrets.COS_SECRET_ACCESS_KEY }}
44+
IAM_ENDPOINT: ${{ vars.IAM_ENDPOINT }}
45+
run: |
46+
# create an .env file that is pulled in while executing the v2 integration tests
47+
echo "CODE_ENGINE_URL=https://$CE_API_HOST/v2" > code_engine_v2.env
48+
echo "CODE_ENGINE_AUTH_TYPE=iam" >> code_engine_v2.env
49+
echo "CODE_ENGINE_APIKEY=$CE_API_KEY" >> code_engine_v2.env
50+
echo "CODE_ENGINE_AUTH_URL=$IAM_ENDPOINT" >> code_engine_v2.env
51+
echo "CODE_ENGINE_DOMAIN_MAPPING_NAME=api-unit-test-tls.e2e-board.info" >> code_engine_v2.env
52+
echo "COS_ACCESS_KEY_ID=$COS_ACCESS_KEY_ID" >> code_engine_v2.env
53+
echo "COS_SECRET_ACCESS_KEY= $COS_SECRET_ACCESS_KEY" >> code_engine_v2.env
54+
./scripts/get-dependencies.sh # get api repo for access to latest domain mapping cert
55+
# execute all tests including the integration tests
56+
mvn verify -fae $MVN_ARGS

.metadata

Lines changed: 0 additions & 9 deletions
This file was deleted.

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[![Build Status](https://travis-ci.com/IBM/code-engine-java-sdk.svg?branch=main)](https://travis-ci.com/IBM/code-engine-java-sdk)
22
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
33

4-
# IBM Cloud Code Engine Java SDK Version 4.28.3
4+
# IBM Cloud Code Engine Java SDK Version 4.29.1
55

66
Java client library to interact with the [Code Engine API](https://cloud.ibm.com/apidocs/codeengine).
77

@@ -39,7 +39,7 @@ The IBM Cloud Code Engine Java SDK allows developers to programmatically interac
3939

4040
Service Name | Artifact Coordinates
4141
--- | ---
42-
[Code Engine](https://cloud.ibm.com/apidocs/codeengine/codeengine-v2.0.0) | com.ibm.cloud.code-engine:4.28.3
42+
[Code Engine](https://cloud.ibm.com/apidocs/codeengine/codeengine-v2.0.0) | com.ibm.cloud.code-engine:4.29.1
4343

4444
## Prerequisites
4545

@@ -51,7 +51,7 @@ Service Name | Artifact Coordinates
5151

5252
## Installation
5353

54-
The current version of this SDK is: 4.28.3
54+
The current version of this SDK is: 4.29.1
5555

5656
Each service's artifact coordinates are listed in the table above.
5757

@@ -70,14 +70,14 @@ Here are examples for maven and gradle:
7070
<dependency>
7171
<groupId>com.ibm.cloud</groupId>
7272
<artifactId>code-engine</artifactId>
73-
<version>4.28.3</version>
73+
<version>4.29.1</version>
7474
</dependency>
7575
```
7676

7777
### Gradle
7878

7979
```gradle
80-
compile 'com.ibm.cloud:code-engine:4.28.3'
80+
compile 'com.ibm.cloud:code-engine:4.29.1'
8181
```
8282

8383
## Using the SDK

0 commit comments

Comments
 (0)