Skip to content
This repository was archived by the owner on Aug 22, 2025. It is now read-only.

Commit cbdd5fe

Browse files
committed
several updates related to the newer vlei-verifier-workflows build. now need to update bank keria instances to use delegated identifiers, etc
Signed-off-by: Lance <lance.byrd@rootsid.com>
1 parent d50febd commit cbdd5fe

File tree

8 files changed

+27
-31
lines changed

8 files changed

+27
-31
lines changed

signify-ts-test/jest.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const config: Config = {
1414
tsconfig: "test/tsconfig.json"
1515
}],
1616
},
17+
testTimeout: 300000,
1718
};
1819

1920
export default config;

signify-ts-test/src/api-adapter.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { SignifyClient } from "signify-ts";
1+
import signify from "signify-ts";
22
import FormData from "form-data";
33
import path from "path";
44

@@ -21,7 +21,7 @@ export class ApiAdapter {
2121
public async dropReportStatusByAid(
2222
aidName: string,
2323
aidPrefix: string,
24-
client: SignifyClient,
24+
client: signify.SignifyClient,
2525
): Promise<Response> {
2626
const heads = new Headers();
2727
const dreq = { headers: heads, method: "POST", body: null };
@@ -34,7 +34,7 @@ export class ApiAdapter {
3434
public async getReportStatusByAid(
3535
aidName: string,
3636
aidPrefix: string,
37-
client: SignifyClient,
37+
client: signify.SignifyClient,
3838
): Promise<Response> {
3939
const heads = new Headers();
4040
const sreq = { headers: heads, method: "GET", body: null };
@@ -47,7 +47,7 @@ export class ApiAdapter {
4747
public async getReportsStatusAdmin(
4848
aidName: string,
4949
aidPrefix: string,
50-
client: SignifyClient,
50+
client: signify.SignifyClient,
5151
): Promise<Response> {
5252
const heads = new Headers();
5353
const sreq = { headers: heads, method: "GET", body: null };
@@ -61,7 +61,7 @@ export class ApiAdapter {
6161
aidName: string,
6262
aidPrefix: string,
6363
dig: string,
64-
client: SignifyClient,
64+
client: signify.SignifyClient,
6565
): Promise<Response> {
6666
const heads = new Headers();
6767
const sreq = { headers: heads, method: "GET", body: null };
@@ -74,7 +74,7 @@ export class ApiAdapter {
7474
public async getLeiReportStatusesByAid(
7575
aidName: string,
7676
aidPrefix: string,
77-
client: SignifyClient,
77+
client: signify.SignifyClient,
7878
): Promise<Response> {
7979
const heads = new Headers();
8080
const sreq = { headers: heads, method: "GET", body: null };
@@ -90,7 +90,7 @@ export class ApiAdapter {
9090
fileName: string,
9191
zipBuffer: Buffer,
9292
zipDigest: string,
93-
client: SignifyClient,
93+
client: signify.SignifyClient,
9494
): Promise<Response> {
9595
let formData = new FormData();
9696
let ctype = "application/zip";
@@ -126,7 +126,7 @@ export class ApiAdapter {
126126
aidName: string,
127127
fileName: string,
128128
zipBuffer: Buffer,
129-
client: SignifyClient,
129+
client: signify.SignifyClient,
130130
token: string,
131131
): Promise<Response> {
132132
let formData = new FormData();

signify-ts-test/src/utils/report.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import AdmZip from "adm-zip";
55
import * as fsExtra from "fs-extra";
66
import { generateFileDigest } from "./generate-digest.js";
77
import signify from "signify-ts";
8-
import { Signer } from "signify-ts";
8+
import Signer from "signify-ts";
99
import { unknownPrefix, TestPaths } from "@gleif-it/vlei-verifier-workflows";
1010

1111
export const EXTERNAL_MAN_TYPE = "external_manifest";
@@ -482,7 +482,7 @@ async function addSignatureToReport(
482482
ecrAid: string,
483483
): Promise<boolean> {
484484
const sigs = [] as string[];
485-
for (const signer of keeper.signers as Signer[]) {
485+
for (const signer of keeper.signers as signify.Signer[]) {
486486
const nonPrefixedDigest = signatureBlock.digest.split("-", 2)[1];
487487
// console.log(`Signing non-prefixed digest ${nonPrefixedDigest}`);
488488

signify-ts-test/test/jest.config.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

signify-ts-test/test/jest.setup.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

signify-ts-test/test/reg-pilot-api.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { strict as assert } from "assert";
22
import fs from "fs";
33
import * as process from "process";
44
import path from "path";
5-
import { HabState, SignifyClient } from "signify-ts";
5+
import signify from "signify-ts";
66
import { ApiAdapter } from "../src/api-adapter.js";
77
import { generateFileDigest } from "../src/utils/generate-digest.js";
88
import { TestEnvironmentRegPilot } from "../src/utils/resolve-env.js";
@@ -74,7 +74,7 @@ export async function run_api_admin_test(
7474
}
7575

7676
export async function run_api_revocation_test(
77-
requestorClient: SignifyClient,
77+
requestorClient: signify.SignifyClient,
7878
requestorAidAlias: string,
7979
requestorAidPrefix: string,
8080
credentials: Map<string, ApiUser>,
@@ -707,7 +707,7 @@ async function revoked_cred_upload_test(
707707
credentials: Map<string, ApiUser>,
708708
requestorAidAlias: string,
709709
requestorAidPrefix: string,
710-
requestorClient: SignifyClient,
710+
requestorClient: signify.SignifyClient,
711711
env: TestEnvironmentRegPilot,
712712
) {
713713
const apiAdapter = new ApiAdapter(env.apiBaseUrl, env.filerBaseUrl);
@@ -896,11 +896,11 @@ export async function checkSignedUpload(
896896
}
897897

898898
export async function checkFailUpload(
899-
roleClient: SignifyClient,
899+
roleClient: signify.SignifyClient,
900900
failUpResp: Response,
901901
fileName: string,
902902
failZipDig: string,
903-
ecrAid: HabState,
903+
ecrAid: signify.HabState,
904904
env: TestEnvironmentRegPilot,
905905
): Promise<boolean> {
906906
const apiAdapter = new ApiAdapter(env.apiBaseUrl, env.filerBaseUrl);
@@ -980,7 +980,7 @@ async function checkLogin(
980980
) {
981981
let heads = new Headers();
982982
heads.set("Content-Type", "application/json");
983-
const client: SignifyClient = user.roleClient;
983+
const client: signify.SignifyClient = user.roleClient;
984984
heads.set("Connection", "close"); // avoids debugging fetch failures
985985
let creq = { headers: heads, method: "GET", body: null };
986986
let cpath = `/checklogin/${user.ecrAid.prefix}`;
@@ -1104,7 +1104,7 @@ async function ebaLogin(
11041104
async function presentRevocation(
11051105
requestorAidAlias: string,
11061106
requestorAidPrefix: string,
1107-
requestorClient: SignifyClient,
1107+
requestorClient: signify.SignifyClient,
11081108
cred: any,
11091109
credCesr: any,
11101110
) {

signify-ts-test/test/tsconfig.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
"baseUrl": ".",
55
"moduleResolution": "node16",
66
"module": "Node16",
7-
"types": ["jest", "node"]
7+
"types": ["jest", "node"],
8+
"esModuleInterop": true,
9+
"allowSyntheticDefaultImports": true
810
},
9-
"include": ["../src/**/*", "**/*"]
11+
"include": ["../src/**/*", "**/*", "../jest.setup.ts"]
1012
}

signify-ts-test/tsconfig.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"include": ["src/**/*", "types", "test/**/*"],
2+
"include": ["src/**/*", "types", "test/**/*", "jest.setup.ts"],
33
"extends": "./tsconfig.node.json",
44
"compilerOptions": {
55
"noEmit": true,
@@ -9,6 +9,8 @@
99
"paths": {
1010
"@src/*": ["src/*"]
1111
},
12-
"moduleResolution": "node16"
12+
"moduleResolution": "node16",
13+
"esModuleInterop": true,
14+
"allowSyntheticDefaultImports": true,
1315
}
14-
}
16+
}

0 commit comments

Comments
 (0)