Skip to content

Commit

Permalink
#282 test database - 2
Browse files Browse the repository at this point in the history
  • Loading branch information
docktermj committed Feb 28, 2025
1 parent f75d380 commit 685e501
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/go-test-linux-mssql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,19 @@ jobs:
senzingsdk-repository-package: ${{ secrets.SENZING_APT_BETA_STAGING_REPOSITORY_PACKAGE }}
senzingsdk-repository-path: ${{ secrets.SENZING_APT_BETA_STAGING_REPOSITORY_URL }}

- name: Install dependencies
run: |
curl -sSL -O https://packages.microsoft.com/config/debian/$(grep VERSION_ID /etc/os-release | cut -d '"' -f 2 | cut -d '.' -f 1)/packages-microsoft-prod.deb
dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb
apt-get update
ACCEPT_EULA=Y apt-get install -y msodbcsql18
ACCEPT_EULA=Y apt-get install -y mssql-tools18
echo 'export PATH="$PATH:/opt/mssql-tools18/bin"' >> ~/.bashrc
source ~/.bashrc
apt-get install -y unixodbc-dev
apt-get install -y unixodbc-dev
- name: Run go test
run: |
export SENZING_PATH="/opt/senzing"
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/go-test-linux-mysql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: [push]

env:
SENZING_LOG_LEVEL: TRACE
SENZING_TOOLS_DATABASE_URL: "mysql://mysql:mysql@localhost:3306/G2"
SENZING_TOOLS_DATABASE_URL: "mysql://root:root@localhost:3306/G2"

permissions:
contents: read
Expand Down Expand Up @@ -58,6 +58,10 @@ jobs:
senzingsdk-repository-package: ${{ secrets.SENZING_APT_BETA_STAGING_REPOSITORY_PACKAGE }}
senzingsdk-repository-path: ${{ secrets.SENZING_APT_BETA_STAGING_REPOSITORY_URL }}

- name: Install dependencies
run: |
apt-get install mysql-server
- name: Run go test
run: |
export SENZING_PATH="/opt/senzing"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/go-test-linux-oracle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
senzingsdk-repository-package: ${{ secrets.SENZING_APT_BETA_STAGING_REPOSITORY_PACKAGE }}
senzingsdk-repository-path: ${{ secrets.SENZING_APT_BETA_STAGING_REPOSITORY_URL }}

- name: Install Oracle SDK
- name: Install dependencies
run: |
curl --output /tmp/instantclient-basic-linux.zip https://download.oracle.com/otn_software/linux/instantclient/2350000/instantclient-basic-linux.x64-23.5.0.24.07.zip
sudo mkdir -p /opt/oracle
Expand Down
2 changes: 1 addition & 1 deletion senzingschema/senzingschema_basic.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func (senzingSchema *BasicSenzingSchema) processDatabase(ctx context.Context, re
case "sqlite3":
senzingSchema.SQLFile = resourcePath + "/schema/szcore-schema-sqlite-create.sql"
default:
return fmt.Errorf("unknown database scheme: %s", parsedURL.Scheme)
return fmt.Errorf("unknown database scheme: |%s|", parsedURL.Scheme) // FIXME: remove "|"
}
}

Expand Down

0 comments on commit 685e501

Please sign in to comment.