Skip to content

Commit

Permalink
test(geth-test-ledger): add basic tests
Browse files Browse the repository at this point in the history
- Add test suite for geth-test-ledger package.
- Add new test suit to CI
- It was initially proposed in hyperledger-cacti#2588, I've added some cleanups and improvements.
- Run codegen, update missing deps, sort package.json,
    fix type in socketio-test-setup-helpers, to fix some CI.

Closes: hyperledger-cacti#2579

Co-authored-by: Tomasz Awramski <[email protected]>

Signed-off-by: Michal Bajer <[email protected]>
  • Loading branch information
outSH authored and sandeepnRES committed Dec 21, 2023
1 parent c713b1b commit 275311e
Show file tree
Hide file tree
Showing 15 changed files with 549 additions and 175 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1545,6 +1545,31 @@ jobs:
node-version: ${{ env.NODEJS_VERSION }}
- uses: actions/[email protected]

- id: yarn-cache
name: Restore Yarn Cache
uses: actions/[email protected]
with:
key: ${{ runner.os }}-yarn-${{ hashFiles('./yarn.lock') }}
path: ./.yarn/
restore-keys: |
${{ runner.os }}-yarn-${{ hashFiles('./yarn.lock') }}
- run: ./tools/ci.sh
cactus-test-geth-ledger:
continue-on-error: false
env:
FULL_BUILD_DISABLED: true
JEST_TEST_PATTERN: packages/cactus-test-geth-ledger/src/test/typescript/(unit|integration|benchmark)/.*/*.test.ts
JEST_TEST_RUNNER_DISABLED: false
TAPE_TEST_RUNNER_DISABLED: true
needs: build-dev
runs-on: ubuntu-20.04
steps:
- name: Use Node.js ${{ env.NODEJS_VERSION }}
uses: actions/[email protected]
with:
node-version: ${{ env.NODEJS_VERSION }}
- uses: actions/[email protected]

- id: yarn-cache
name: Restore Yarn Cache
uses: actions/[email protected]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { SHA256 } from "crypto-js";
import {
PluginOdapGateway,
TransferInitializationV1Request,
ClientGatewayHelper
ClientGatewayHelper,
} from "@hyperledger/cactus-plugin-odap-hermes";
import { OdapMessageType } from "@hyperledger/cactus-plugin-odap-hermes";
import { FabricOdapGateway } from "./fabric-odap-gateway";
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
"codegen": "run-p 'codegen:*'",
"codegen:openapi": "npm run generate-sdk",
"generate-sdk": "run-p 'generate-sdk:*'",
"generate-sdk:typescript-axios": "openapi-generator-cli generate -i ./src/main/json/openapi.json -g typescript-axios -o ./src/main/typescript/generated/openapi/typescript-axios/ --reserved-words-mappings protected=protected --ignore-file-override ../../openapi-generator-ignore",
"generate-sdk:sawtooth-axios": "openapi-generator-cli generate -i ./src/main/json/sawtooth-openapi.json -g typescript-axios -o ./src/main/typescript/sawtooth-api/ --reserved-words-mappings protected=protected --ignore-file-override ../../openapi-generator-ignore",
"generate-sdk:typescript-axios": "openapi-generator-cli generate -i ./src/main/json/openapi.json -g typescript-axios -o ./src/main/typescript/generated/openapi/typescript-axios/ --reserved-words-mappings protected=protected --ignore-file-override ../../openapi-generator-ignore",
"webpack": "npm-run-all webpack:dev",
"webpack:dev": "npm-run-all webpack:dev:node webpack:dev:web",
"webpack:dev:node": "webpack --env=dev --target=node --config ../../webpack.config.js",
Expand Down
Loading

0 comments on commit 275311e

Please sign in to comment.