Skip to content

Commit

Permalink
#66: Configure javascript test module for Project Keeper
Browse files Browse the repository at this point in the history
  • Loading branch information
kaklakariada committed Mar 14, 2023
1 parent 5866f47 commit 2221090
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .project-keeper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ sources:
relativePath: "../pom.xml"
- type: maven
path: pom.xml
- type: npm
path: javascript-test/package.json
version:
fromSource: pom.xml
excludes:
Expand Down
1 change: 1 addition & 0 deletions doc/changes/changelog.md

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

19 changes: 19 additions & 0 deletions doc/changes/changes_1.0.4.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Tableau Connector 1.0.4, released 2023-??-??

Code name:

## Summary

## Features

## Refactoring

* #66: Configured JavaScript test module for Project Keeper

## Dependency Updates

### Exasol Connector for Tableau

#### Plugin Dependency Updates

* Updated `com.exasol:project-keeper-maven-plugin:2.9.3` to `2.9.4`
2 changes: 1 addition & 1 deletion javascript-test/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tableau-connector-unit-tests",
"version": "1.0.3",
"version": "1.0.4",
"type": "commonjs",
"scripts": {
"test": "jest",
Expand Down
11 changes: 11 additions & 0 deletions javascript-test/versionNumber.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ function readXmlFile(path) {
return xmlParser.toJson(content, { object: true })
}

function readJsonFile(path) {
const content = fs.readFileSync(path, 'utf8');
return JSON.parse(content)
}

/**
* @param {string} version the version to split
*/
Expand Down Expand Up @@ -51,6 +56,12 @@ describe(`Latest version number ${changelogVersion}`, () => {
expect(pomRevision).toBe(changelogVersion);
});

test("NPM package.json", () => {
const packageJson = readJsonFile("package.json");
const packageJsonVersion = packageJson.version;
expect(packageJsonVersion).toBe(changelogVersion);
});

["jdbc", "odbc"].forEach(type => {
test(`Manifest of ${type} driver`, () => {
const manifest = readXmlFile(`../src/exasol_${type}/manifest.xml`);
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<version>${revision}</version>
</parent>
<properties>
<revision>1.0.3</revision>
<revision>1.0.4</revision>
</properties>
<modules>
<module>tableau-server-GUI-tests</module>
Expand Down
2 changes: 1 addition & 1 deletion src/exasol_jdbc/manifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>

<connector-plugin class="exasol_jdbc" superclass="jdbc" plugin-version="1.0.3" name="Exasol JDBC" version="18.1" min-version-tableau="2022.1">
<connector-plugin class="exasol_jdbc" superclass="jdbc" plugin-version="1.0.4" name="Exasol JDBC" version="18.1" min-version-tableau="2022.1">
<vendor-information>
<company name="Exasol AG"/>
<support-link url="https://www.exasol.com"/>
Expand Down
2 changes: 1 addition & 1 deletion src/exasol_odbc/manifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>

<connector-plugin class="exasol_odbc" superclass="odbc" plugin-version="1.0.3" name="Exasol ODBC" version="18.1" min-version-tableau="2022.1">
<connector-plugin class="exasol_odbc" superclass="odbc" plugin-version="1.0.4" name="Exasol ODBC" version="18.1" min-version-tableau="2022.1">
<vendor-information>
<company name="Exasol AG"/>
<support-link url="https://www.exasol.com/"/>
Expand Down

0 comments on commit 2221090

Please sign in to comment.