Skip to content

Commit

Permalink
#148: Add extension ID to GetInstalledExtensions() (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaklakariada authored Oct 10, 2023
1 parent 6519e39 commit c38f0b9
Show file tree
Hide file tree
Showing 28 changed files with 153 additions and 101 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/broken_links_checker.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions .github/workflows/ci-build-next-java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ jobs:
cancel-in-progress: true
steps:
- name: Checkout the repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.19
go-version: "1.20"
id: go
- name: Set up JDK 17
uses: actions/setup-java@v3
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ jobs:
group: ${{ github.workflow }}-${{ github.ref }}-build
cancel-in-progress: true
env:
EXASOL_VERSION: 7.1.22
EXASOL_VERSION: 7.1.23
steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.19
go-version: "1.20"
id: go

- name: Set up JDK 11
Expand Down Expand Up @@ -137,7 +137,7 @@ jobs:
cancel-in-progress: true
steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Cache OpenFastTrace
uses: actions/cache@v3
with:
Expand All @@ -156,7 +156,7 @@ jobs:
cancel-in-progress: true
steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dependencies_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/project-keeper-verify.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .github/workflows/project-keeper.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions .github/workflows/release_droid_prepare_original_checksum.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Set up JDK 11
Expand All @@ -20,7 +20,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.19
go-version: "1.20"
id: go
- name: Cache go modules
uses: actions/cache@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release_droid_print_quick_checksum.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Set up JDK 11
Expand All @@ -20,7 +20,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.19
go-version: "1.20"
id: go
- name: Cache go modules
uses: actions/cache@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release_droid_release_on_maven_central.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Maven Central Repository
Expand All @@ -26,7 +26,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.19
go-version: "1.20"
id: go
- name: Cache go modules
uses: actions/cache@v3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK 11
Expand All @@ -24,7 +24,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.19
go-version: "1.20"
id: go
- name: Cache go modules
uses: actions/cache@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/render-design.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
cancel-in-progress: true
steps:
- name: Checkout the repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install Tools
run: |
pip install pandoc-plantuml-filter
Expand Down
10 changes: 5 additions & 5 deletions dependencies.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

45 changes: 43 additions & 2 deletions doc/changes/changes_0.5.2.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Extension Manager 0.5.2, released 2023-??-??
# Extension Manager 0.5.2, released 2023-10-10

Code name:
Code name: Small improvements

## Summary

Expand All @@ -11,6 +11,7 @@ This release contains the following notable changes:
* It adds design, requirements and user guide for the integration testing framework.
* It adds a custom JavaScript console logger that forwards the log levels of `console.log()`, `console.warn()` and `console.error()` to the Go `logrus` functions `Print()`, `Warn()` and `Error()`. Before, all log messages were output using `Print()`.
* It speeds up tests that use a mock extension by avoiding compiling TypeScript to JavaScript.
* Controller method `GetInstalledExtensions()` now additionally returns the extension ID.

The release deprecates function `extensionController.CreateWithConfig()` in favor of `extensionController.CreateWithValidatedConfig()`. This new function validates the given configuration and returns an error in case it finds an issue.

Expand All @@ -20,6 +21,7 @@ The release deprecates function `extensionController.CreateWithConfig()` in favo
* #142: Added validation of configuration when creating a new controller
* #130: Added verification that no instance exists before uninstalling an extension
* #115: Added custom JavaScript console logger that forwards log levels to the Go logger
* #148: Added extension ID to result of controller method `GetInstalledExtensions()`

## Documentation

Expand All @@ -32,11 +34,50 @@ The release deprecates function `extensionController.CreateWithConfig()` in favo

## Dependency Updates

### Extension-manager

#### Compile Dependency Updates

* Updated `golang:1.19` to `1.20`
* Updated `github.com/dop251/goja:v0.0.0-20230707174833-636fdf960de1` to `v0.0.0-20230919151941-fc55792775de`
* Updated `github.com/dop251/goja_nodejs:v0.0.0-20230602164024-804a84515562` to `v0.0.0-20230914102007-198ba9a8b098`
* Updated `github.com/exasol/exasol-driver-go:v1.0.0` to `v1.0.2`

#### Test Dependency Updates

* Updated `golang.org/x/mod:v0.12.0` to `v0.13.0`

### Extension Manager Java Client

#### Compile Dependency Updates

* Updated `io.swagger.core.v3:swagger-annotations:2.2.15` to `2.2.16`

#### Test Dependency Updates

* Updated `nl.jqno.equalsverifier:equalsverifier:3.15.1` to `3.15.2`

#### Plugin Dependency Updates

* Updated `com.exasol:project-keeper-maven-plugin:2.9.11` to `2.9.12`

### Extension Integration Tests Library

#### Compile Dependency Updates

* Updated `com.exasol:exasol-test-setup-abstraction-java:2.0.3` to `2.0.4`
* Updated `com.exasol:extension-manager-client-java:0.5.1` to `0.5.2`
* Updated `com.exasol:hamcrest-resultset-matcher:1.6.0` to `1.6.1`
* Updated `com.exasol:test-db-builder-java:3.5.0` to `3.5.1`

#### Test Dependency Updates

* Updated `com.exasol:udf-debugging-java:0.6.10` to `0.6.11`
* Updated `org.mockito:mockito-junit-jupiter:5.5.0` to `5.6.0`

#### Plugin Dependency Updates

* Updated `com.exasol:project-keeper-maven-plugin:2.9.11` to `2.9.12`

### Registry

Expand Down
6 changes: 3 additions & 3 deletions extension-manager-client-java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<!-- ProjectKeeper already included in root project -->
<project-keeper.skip>true</project-keeper.skip>
<!-- Generated code dependencies -->
<swagger-core-version>2.2.15</swagger-core-version>
<swagger-core-version>2.2.16</swagger-core-version>
<jersey-version>2.40</jersey-version>
<jackson-version>2.15.2</jackson-version>
</properties>
Expand Down Expand Up @@ -91,7 +91,7 @@
<dependency>
<groupId>nl.jqno.equalsverifier</groupId>
<artifactId>equalsverifier</artifactId>
<version>3.15.1</version>
<version>3.15.2</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand All @@ -100,7 +100,7 @@
<plugin>
<groupId>com.exasol</groupId>
<artifactId>project-keeper-maven-plugin</artifactId>
<version>2.9.11</version>
<version>2.9.12</version>
<executions>
<execution>
<goals>
Expand Down
12 changes: 6 additions & 6 deletions extension-manager-integration-test-java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<dependency>
<groupId>com.exasol</groupId>
<artifactId>exasol-test-setup-abstraction-java</artifactId>
<version>2.0.3</version>
<version>2.0.4</version>
<exclusions>
<exclusion>
<!-- org.hamcrest:hamcrest-core:1.3 contains same classes as org.hamcrest:hamcrest:2.2 -->
Expand All @@ -32,12 +32,12 @@
<dependency>
<groupId>com.exasol</groupId>
<artifactId>test-db-builder-java</artifactId>
<version>3.5.0</version>
<version>3.5.1</version>
</dependency>
<dependency>
<groupId>com.exasol</groupId>
<artifactId>hamcrest-resultset-matcher</artifactId>
<version>1.6.0</version>
<version>1.6.1</version>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
Expand All @@ -54,13 +54,13 @@
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-junit-jupiter</artifactId>
<version>5.5.0</version>
<version>5.6.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.exasol</groupId>
<artifactId>udf-debugging-java</artifactId>
<version>0.6.10</version>
<version>0.6.11</version>
<scope>test</scope>
</dependency>
<dependency>
Expand All @@ -82,7 +82,7 @@
<plugin>
<groupId>com.exasol</groupId>
<artifactId>project-keeper-maven-plugin</artifactId>
<version>2.9.11</version>
<version>2.9.12</version>
<executions>
<execution>
<goals>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ void listExtensions() {

@Test
void getInstallations() {
final InstallationsResponseInstallation expected = new InstallationsResponseInstallation()
final InstallationsResponseInstallation expected = new InstallationsResponseInstallation().id(EXTENSION_ID)
.name("Testing Extension").version(EXTENSION_VERSION);
assertThat(client.getInstallations(), contains(expected));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ private IntegrationTestCommon() {

static ExasolTestSetup createExasolTestSetup() {
if (System.getProperty("com.exasol.dockerdb.image") == null) {
System.setProperty("com.exasol.dockerdb.image", "7.1.22");
System.setProperty("com.exasol.dockerdb.image", "7.1.23");
}
return new ExasolTestSetupFactory(Path.of("dummy-config")).getTestSetup();
}
Expand Down
Loading

0 comments on commit c38f0b9

Please sign in to comment.