Skip to content

Commit

Permalink
fix failing tests due to invalid credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
drizzentic committed Sep 23, 2024
1 parent 48fe637 commit 42a286b
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,16 @@ services:
openhim:
default:


configs:
openhim-config-importer-openhimConfig.js:
file: ./openhimConfig.js
name: openhim-config-importer-openhimConfig.js-${openhim_config_importer_openhimConfig_js_DIGEST:?err}
name: openhim-config-importer-openhimConfig.js-${jempi_openhim_config_importer_openhimConfig_js_DIGEST:?err}
labels:
name: openhim
openhim-config-importer-openhim-import.json:
file: ./openhim-import.json
name: openhim-config-importer-openhim-import.json-${openhim_config_importer_openhim_import_js_DIGEST:?err}
name: openhim-config-importer-openhim-import.json-${jempi_openhim_config_importer_openhim_import_js_DIGEST:?err}
labels:
name: openhim

Expand Down
9 changes: 4 additions & 5 deletions client-registry-jempi/importer/openhim/openhimConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@ const fs = require("fs");
const https = require("https");
const path = require("path");

const OPENHIM_CORE_SERVICE_NAME = 'openhim-core'
const OPENHIM_MEDIATOR_API_PORT = 8080
const OPENHIM_API_PASSWORD =
process.env.OPENHIM_API_PASSWORD || 'instant101'
const OPENHIM_CORE_SERVICE_NAME = "openhim-core";
const OPENHIM_MEDIATOR_API_PORT = 8080;
const OPENHIM_API_PASSWORD = process.env.OPENHIM_API_PASSWORD || "instant101";
const OPENHIM_API_USERNAME =
process.env.OPENHIM_API_USERNAME || '[email protected]'
process.env.OPENHIM_API_USERNAME || "[email protected]";

const authHeader = new Buffer.from(
`${OPENHIM_API_USERNAME}:${OPENHIM_API_PASSWORD}`
Expand Down
2 changes: 1 addition & 1 deletion kafka-mapper-consumer/package-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"id": "kafka-mapper-consumer",
"name": "Kafka Mapper Consumer",
"description": "A kafka consumer that maps fhir resources to a flattened data structure",
"type": "use-case",
"type": "infrastructure",
"version": "0.0.1",
"dependencies": ["message-bus-kafka", "interoperability-layer-openhim"],
"environmentVariables": {
Expand Down
2 changes: 0 additions & 2 deletions test/cucumber/features/single-mode/recipe.feature
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ Feature: CDR-DW recipe?
And The service "identity-access-manager-keycloak" should be started with 1 replica
And The service "jempi-ratel" should be started with 1 replica
And The service "jempi-alpha-01" should be started with 1 replica
And The service "jempi-alpha-02" should be started with 1 replica
And The service "jempi-alpha-03" should be started with 1 replica
And The service "jempi-zero-01" should be started with 1 replica
And The service "jempi-async-receiver" should be started with 1 replica
And The service "kafka-unbundler-consumer" should be started with 1 replica
Expand Down
4 changes: 4 additions & 0 deletions test/cucumber/features/steps/recipesSteps.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ const clickhouse = new ClickHouse({
port: CLICKHOUSE_PORT,
debug: CLICKHOUSE_DEBUG,
raw: true,
basicAuth: {
username: "default",
password: "dev_password_only",
},
});

const query = (table) => `SELECT * FROM ${table}`;
Expand Down

0 comments on commit 42a286b

Please sign in to comment.