From 3a546fce69376fc78a27fab2eebade54450dd054 Mon Sep 17 00:00:00 2001 From: pcheremu Date: Thu, 11 Jan 2024 14:53:40 +0100 Subject: [PATCH] test: fix test names add account test to the workflow --- .github/workflows/integration-tests-api.yml | 1 + packages/integration-tests/tests/api/accounts.test.ts | 2 +- packages/integration-tests/tests/api/blocks.test.ts | 2 +- packages/integration-tests/tests/api/contracts.test.ts | 2 +- packages/integration-tests/tests/api/logs.test.ts | 2 +- packages/integration-tests/tests/api/transactions.test.ts | 2 +- 6 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/integration-tests-api.yml b/.github/workflows/integration-tests-api.yml index 5c4e7b2e32..f191349d4c 100644 --- a/.github/workflows/integration-tests-api.yml +++ b/.github/workflows/integration-tests-api.yml @@ -13,6 +13,7 @@ jobs: matrix: node-version: ['lts/*'] # 18.17.1 or lts/* test-pattern: + - accounts.test.ts - addresses.test.ts - batches.test.ts - blocks.test.ts diff --git a/packages/integration-tests/tests/api/accounts.test.ts b/packages/integration-tests/tests/api/accounts.test.ts index 8dabc8e410..5afa0b80ad 100644 --- a/packages/integration-tests/tests/api/accounts.test.ts +++ b/packages/integration-tests/tests/api/accounts.test.ts @@ -6,7 +6,7 @@ import { localConfig } from "../../src/config"; import { Token, Wallets } from "../../src/entities"; import { Helper } from "../../src/helper"; -describe("/api", () => { +describe("/api?module=account", () => { jest.setTimeout(localConfig.standardTimeout); const helper = new Helper(); diff --git a/packages/integration-tests/tests/api/blocks.test.ts b/packages/integration-tests/tests/api/blocks.test.ts index ec9a412de6..feb3c45355 100644 --- a/packages/integration-tests/tests/api/blocks.test.ts +++ b/packages/integration-tests/tests/api/blocks.test.ts @@ -67,7 +67,7 @@ describe("/blocks", () => { }); }); -describe("/api", () => { +describe("/api?module=block", () => { //@id1700 it("Verify /api?module=block&action=getblockcountdown&blockno={block_number} response", async () => { const blocks = await request(environment.blockExplorerAPI).get("/blocks"); diff --git a/packages/integration-tests/tests/api/contracts.test.ts b/packages/integration-tests/tests/api/contracts.test.ts index 6930124164..c60c2c6ccf 100644 --- a/packages/integration-tests/tests/api/contracts.test.ts +++ b/packages/integration-tests/tests/api/contracts.test.ts @@ -6,7 +6,7 @@ import { Buffer, Wallets } from "../../src/entities"; import { Helper } from "../../src/helper"; import { Playbook } from "../../src/playbook/playbook"; -describe("/api", () => { +describe("/api?module=contract", () => { jest.setTimeout(localConfig.standardTimeout); const helper = new Helper(); diff --git a/packages/integration-tests/tests/api/logs.test.ts b/packages/integration-tests/tests/api/logs.test.ts index 746f1138a9..4f54a5aee8 100644 --- a/packages/integration-tests/tests/api/logs.test.ts +++ b/packages/integration-tests/tests/api/logs.test.ts @@ -6,7 +6,7 @@ import { Buffer } from "../../src/entities"; import { Helper } from "../../src/helper"; import { Playbook } from "../../src/playbook/playbook"; -xdescribe("/api", () => { +xdescribe("/api?module=logs", () => { jest.setTimeout(localConfig.standardTimeout); //works unstable without timeout const helper = new Helper(); const bufferFile = "src/playbook/"; diff --git a/packages/integration-tests/tests/api/transactions.test.ts b/packages/integration-tests/tests/api/transactions.test.ts index a35e399c25..c7863f4996 100644 --- a/packages/integration-tests/tests/api/transactions.test.ts +++ b/packages/integration-tests/tests/api/transactions.test.ts @@ -998,7 +998,7 @@ describe("Transactions", () => { }); }); - describe("/api", () => { + describe("/api?module=transaction", () => { //@id1697 it("Verify /api?module=transaction&action=getstatus response", async () => { txHash = await helper.getStringFromFile(bufferFile + Buffer.txEthTransfer);