-
Notifications
You must be signed in to change notification settings - Fork 20
update to sdk 3.4.9 #306
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
Draft
dasormeter
wants to merge
2
commits into
main
Choose a base branch
from
update-to-3.4.9
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
update to sdk 3.4.9 #306
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contributor
Author
|
Moving back to DRAFT -- one integration test is failing Instructions
Test info
StdoutStderrError detailsTest source 1 | import type {APIRequestContext} from 'playwright-core';
2 | import TagProvider from '../fixtures/workflow';
3 | import {execFileSync} from 'child_process';
4 | import {resolve} from 'path';
5 | import {Keycloak} from './keycloak';
6 | import {createParty, createUser as createLedgerUser, grantRights} from './ledger';
7 |
8 |
9 | export default class AppUserSetup {
10 | request: APIRequestContext;
11 | tagProvider: TagProvider;
12 | userName!: string;
13 | userId!: string;
14 | partyId!: string;
15 |
16 | private constructor(request: APIRequestContext, tagProvider: TagProvider) {
17 | this.request = request;
18 | this.tagProvider = tagProvider;
19 | }
20 |
21 | static async create(request: APIRequestContext, keycloak: Keycloak, tagProvider: TagProvider): Promise<AppUserSetup> {
22 | const instance = new AppUserSetup(request, tagProvider);
23 | const tag = tagProvider.base;
24 |
25 | console.log(`Creating user with tag: ${tag}`);
26 | const secret = process.env.AUTH_APP_USER_VALIDATOR_CLIENT_SECRET!
27 | const clientId = process.env.AUTH_APP_USER_VALIDATOR_CLIENT_ID!
28 | const partyIdHint = `${tag}-${process.env.APP_USER_PARTY_HINT || 'app-user'}`;
29 | const participant = 'localhost:2' + process.env.PARTICIPANT_JSON_API_PORT_SUFFIX;
30 |
31 | // 0. Get admin token for the app user participant
32 | const adminToken = await keycloak.getAdminToken(secret, clientId)
33 |
34 | // 1. Create a new ledger party
35 | instance.partyId = await createParty(request, adminToken, partyIdHint, participant);
36 |
37 | // 2. Create a new keycloak user
38 | instance.userId = await keycloak.createUser(instance.partyId, tag);
39 |
40 | // 3. Create a new ledger user
41 | await createLedgerUser(request, adminToken, instance.userId, tag, instance.partyId, participant);
42 |
43 | // 4. Grant rights to the user
44 | await grantRights(request, adminToken, instance.userId, instance.partyId, "ReadAs ActAs", participant);
45 |
46 | instance.userName = `app-user-${tag}`;
47 | return instance;
48 | }
49 |
50 | public createAppInstallRequest(uniqueRequestTag: string) {
51 | const env = {
52 | ...process.env,
53 | TEST_UNIQUE_REQUEST_TAG: uniqueRequestTag,
54 | TEST_MODE: 'on',
55 | TEST_AUTH_APP_USER_WALLET_ADMIN_USER_NAME: this.userName,
56 | TEST_AUTH_APP_USER_WALLET_ADMIN_USER_ID: this.userId,
57 | TEST_APP_USER_PARTY: this.partyId
58 | };
59 |
60 | console.log(`Run create-app-install-request shell script.`);
61 |
62 | const timeoutMs = Number(process.env.CREATE_APP_INSTALL_REQUEST_TIMEOUT_MS) || 1 * 30 * 1000; // default 30 seconds
> 63 | execFileSync('make', ['--no-print-directory', 'create-app-install-request'], {
| ^ Error: Command failed: make --no-print-directory create-app-install-request
64 | cwd: resolve(__dirname, '../..'),
65 | env,
66 | stdio: 'inherit',
67 | timeout: timeoutMs,
68 | killSignal: 'SIGKILL',
69 | });
70 |
71 | console.log(`AppInstallRequest created with tag: ${uniqueRequestTag}`);
72 | }
73 | }
74 |
75 | // |
TheChronicMonster
approved these changes
Dec 10, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.