Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(github): fix keychain-aws-sm no code coverage files/dir found #3456

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1013,8 +1013,8 @@ jobs:
env:
FULL_BUILD_DISABLED: true
JEST_TEST_PATTERN: packages/cactus-plugin-keychain-aws-sm/src/test/typescript/(unit|integration|benchmark)/.*/*.test.ts
JEST_TEST_RUNNER_DISABLED: true
TAPE_TEST_PATTERN: '--files={./packages/cactus-plugin-keychain-aws-sm/src/test/typescript/integration/plugin-factory-keychain.test.ts,./packages/cactus-plugin-keychain-aws-sm/src/test/typescript/integration/plugin-factory-keychain.test.ts,./packages/cactus-plugin-keychain-aws-sm/src/test/typescript/integration/plugin-keychain-aws-sm.test.ts}'
JEST_TEST_RUNNER_DISABLED: false
TAPE_TEST_PATTERN: '--files={./packages/cactus-plugin-keychain-aws-sm/src/test/typescript/integration/plugin-factory-keychain.test.ts,./packages/cactus-plugin-keychain-aws-sm/src/test/typescript/integration/plugin-factory-keychain.test.ts}'
JEST_TEST_COVERAGE_PATH: ./code-coverage-ts/cp-keychain-aws-sm
JEST_TEST_CODE_COVERAGE_ENABLED: true
TAPE_TEST_RUNNER_DISABLED: false
Expand Down
1 change: 0 additions & 1 deletion .taprc
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ files:
- ./packages/cactus-plugin-ledger-connector-xdai/src/test/typescript/integration/openapi/openapi-validation.test.ts
- ./packages/cactus-plugin-ledger-connector-xdai/src/test/typescript/integration/openapi/openapi-validation-no-keychain.test.ts
- ./packages/cactus-common/src/test/typescript/unit/logging/logger.test.ts
- ./packages/cactus-plugin-keychain-aws-sm/src/test/typescript/integration/plugin-keychain-aws-sm.test.ts
- ./packages/cactus-api-client/src/test/typescript/integration/default-consortium-provider.test.ts
- ./packages/cactus-test-plugin-ledger-connector-besu/src/test/typescript/integration/plugin-validator-besu/get-balance-endpoint.test.ts
- ./packages/cactus-test-plugin-ledger-connector-besu/src/test/typescript/integration/plugin-validator-besu/v21-get-past-logs-endpoint.test.ts
Expand Down
1 change: 0 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ module.exports = {
`./packages/cactus-plugin-ledger-connector-xdai/src/test/typescript/integration/openapi/openapi-validation.test.ts`,
`./packages/cactus-plugin-ledger-connector-xdai/src/test/typescript/integration/openapi/openapi-validation-no-keychain.test.ts`,
`./packages/cactus-common/src/test/typescript/unit/logging/logger.test.ts`,
`./packages/cactus-plugin-keychain-aws-sm/src/test/typescript/integration/plugin-keychain-aws-sm.test.ts`,
`./packages/cactus-api-client/src/test/typescript/integration/default-consortium-provider.test.ts`,
`./packages/cactus-test-plugin-ledger-connector-besu/src/test/typescript/integration/plugin-validator-besu/get-balance-endpoint.test.ts`,
`./packages/cactus-test-plugin-ledger-connector-besu/src/test/typescript/integration/plugin-validator-besu/v21-get-past-logs-endpoint.test.ts`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ describe("PluginKeychainAwsSm", () => {
try {
await apiClient.setKeychainEntryV1({
value,
} as any as SetKeychainEntryRequestV1);
} as SetKeychainEntryRequestV1);
} catch (e) {
expect(e.response.status).toBe(400);
const fields = e.response.data.map((param: any) =>
Expand All @@ -157,9 +157,7 @@ describe("PluginKeychainAwsSm", () => {

test(`${testCase} - ${fGet} - ${cWithoutParams}`, async () => {
try {
await apiClient.getKeychainEntryV1(
{} as any as GetKeychainEntryRequestV1,
);
await apiClient.getKeychainEntryV1({} as GetKeychainEntryRequestV1);
} catch (e) {
expect(e.response.status).toBe(400);
const fields = e.response.data.map((param: any) =>
Expand All @@ -171,9 +169,7 @@ describe("PluginKeychainAwsSm", () => {

test(`${testCase} - ${fHas} - ${cWithoutParams}`, async () => {
try {
await apiClient.hasKeychainEntryV1(
{} as any as HasKeychainEntryRequestV1,
);
await apiClient.hasKeychainEntryV1({} as HasKeychainEntryRequestV1);
} catch (e) {
expect(e.response.status).toBe(400);
const fields = e.response.data.map((param: any) =>
Expand All @@ -185,9 +181,7 @@ describe("PluginKeychainAwsSm", () => {

test(`${testCase} - ${fDelete} - ${cWithoutParams}`, async () => {
try {
await apiClient.deleteKeychainEntryV1(
{} as any as DeleteKeychainEntryRequestV1,
);
await apiClient.deleteKeychainEntryV1({} as DeleteKeychainEntryRequestV1);
} catch (e) {
expect(e.response.status).toBe(400);
const fields = e.response.data.map((param: any) =>
Expand All @@ -203,7 +197,7 @@ describe("PluginKeychainAwsSm", () => {
key,
value,
fake: 4,
} as any as SetKeychainEntryRequestV1);
} as SetKeychainEntryRequestV1);
} catch (e) {
expect(e.response.status).toBe(400);
const fields = e.response.data.map((param: any) =>
Expand All @@ -218,7 +212,7 @@ describe("PluginKeychainAwsSm", () => {
await apiClient.getKeychainEntryV1({
key,
fake: 4,
} as any as GetKeychainEntryRequestV1);
} as GetKeychainEntryRequestV1);
} catch (e) {
expect(e.response.status).toBe(400);
const fields = e.response.data.map((param: any) =>
Expand All @@ -233,7 +227,7 @@ describe("PluginKeychainAwsSm", () => {
await apiClient.hasKeychainEntryV1({
key,
fake: 4,
} as any as HasKeychainEntryRequestV1);
} as HasKeychainEntryRequestV1);
} catch (e) {
expect(e.response.status).toBe(400);
const fields = e.response.data.map((param: any) =>
Expand All @@ -248,7 +242,7 @@ describe("PluginKeychainAwsSm", () => {
await apiClient.deleteKeychainEntryV1({
key,
fake: 4,
} as any as DeleteKeychainEntryRequestV1);
} as DeleteKeychainEntryRequestV1);
} catch (e) {
expect(e.response.status).toBe(400);
const fields = e.response.data.map((param: any) =>
Expand Down
Loading
Loading