Skip to content

Commit 619e76b

Browse files
committed
remove comments, etc
Signed-off-by: 2byrds <[email protected]>
1 parent 2c889ea commit 619e76b

File tree

2 files changed

+2
-57
lines changed

2 files changed

+2
-57
lines changed

examples/integration-scripts/utils/resolve-env.ts

Lines changed: 2 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export type TestEnvironmentPreset = 'local' | 'docker' | 'rootsid1' | 'rootsid2';
1+
export type TestEnvironmentPreset = 'local' | 'docker';
22

33
export interface TestEnvironment {
44
preset: TestEnvironmentPreset;
@@ -13,16 +13,10 @@ const WAN = 'BBilc4-L3tFUnfM_wJr4S4OJanAv_VmF_dJNN6vkf2Ha';
1313
const WIL = 'BLskRTInXnMxWaGqcpSyMgo0nYbalW99cGZESrz3zapM';
1414
const WES = 'BIKKuvBwpmDVA4Ds-EpL5bt9OqPzWPja2LigFYZN2YfX';
1515

16-
// rootsid witnesses
17-
const W1 = 'BHI7yViNOGWd1X0aKMgxLm4dUgbQDYoCFSJM2U8Hb3cx'
18-
const W2 = 'BOUZ4v-vPMP5KyZQP-d_8B30UHI4KWgXczBgWcRJnnYd'
19-
const W3 = 'BNY3LWk2BzX8wXmkXuvpYRVSdfynanwKQwD80KOG00VH'
20-
21-
2216
export function resolveEnvironment(
2317
input?: TestEnvironmentPreset
2418
): TestEnvironment {
25-
const preset = input ?? process.env.TEST_ENVIRONMENT ?? 'local';
19+
const preset = input ?? process.env.TEST_ENVIRONMENT ?? 'docker';
2620

2721
const url = 'http://127.0.0.1:3901';
2822
const bootUrl = 'http://127.0.0.1:3903';
@@ -54,34 +48,6 @@ export function resolveEnvironment(
5448
],
5549
witnessIds: [WAN, WIL, WES],
5650
};
57-
case 'rootsid1':
58-
return {
59-
preset: preset,
60-
// url: "http://keria--publi-7wqhypzd56ee-cc3c56cbeced4f45.elb.us-east-1.amazonaws.com/admin",
61-
// bootUrl: "http://keria--publi-7wqhypzd56ee-cc3c56cbeced4f45.elb.us-east-1.amazonaws.com:3903",
62-
url: "https://keria-dev.rootsid.cloud/admin",
63-
bootUrl: "https://keria-dev.rootsid.cloud",
64-
witnessUrls: [
65-
"https://witness-dev01.rootsid.cloud",
66-
"https://witness-dev02.rootsid.cloud",
67-
"https://witness-dev03.rootsid.cloud"
68-
],
69-
witnessIds: [WAN, WIL, WES],
70-
vleiServerUrl: 'http://schemas.rootsid.cloud',
71-
};
72-
case 'rootsid2':
73-
return {
74-
preset: preset,
75-
url: "https://keria-demoservice.rootsid.cloud/admin",
76-
bootUrl: "https://keria-demoservice.rootsid.cloud",
77-
witnessUrls: [
78-
"https://witness-dev01.rootsid.cloud",
79-
"https://witness-dev02.rootsid.cloud",
80-
"https://witness-dev03.rootsid.cloud"
81-
],
82-
witnessIds: [WAN, WIL, WES],
83-
vleiServerUrl: 'http://schemas.rootsid.cloud',
84-
};
8551
default:
8652
throw new Error(`Unknown test environment preset '${preset}'`);
8753
}

examples/integration-scripts/utils/test-setup.ts

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,6 @@ import {
88
} from 'signify-ts';
99
import { resolveEnvironment } from './resolve-env';
1010
import { waitOperation } from './test-util';
11-
// import { retry } from './retry';
12-
// import assert from 'assert';
13-
14-
// const RETRY_DEFAULTS = {
15-
// maxSleep: 10000,
16-
// minSleep: 1000,
17-
// maxRetries: 10,
18-
// timeout: 30000,
19-
// };
2011

2112
/**
2213
* Connect or boot a number of SignifyClient instances
@@ -115,17 +106,9 @@ export async function getOrCreateIdentifier(
115106
console.log("identifiers.addEndRole", op);
116107
}
117108

118-
// const result = await retry(async () => {
119109
const oobi = await client.oobis().get(name, 'agent');
120-
// if (oobi.oobis.length == 0) {
121-
// console.log("Agent oobi not found, retrying...")
122-
// throw new Error(`No agent oobi found for controller: ${name}`);
123-
// }
124110
const result: [string, string] = [id, oobi.oobis[0]];
125111
console.log(name, result);
126-
// return result;
127-
// },RETRY_DEFAULTS);
128-
// assert.equal(result[0], id);
129112
return result;
130113
}
131114

@@ -191,9 +174,5 @@ export async function getOrCreateContact(
191174
}
192175
let op = await client.oobis().resolve(oobi, name);
193176
op = await waitOperation(client, op);
194-
// console.dir(op, { depth: 100 });
195-
// const id = op.response.i;
196-
197-
// await client.contacts().get(id);
198177
return op.response.i;
199178
}

0 commit comments

Comments
 (0)