SHA256
HEADER v3, primary аккаунты и подтверждения
This commit is contained in:
@@ -68,7 +68,7 @@ test('HEADER и PostgreSQL требуют неизменяемого регис
|
||||
const handler = readFileSync(new URL('../../SHiNE-server/shine-server-net-protocol/src/main/java/server/logic/ws_protocol/JSON/handlers/blockchain/Net_AddBlock_Handler.java', import.meta.url), 'utf8');
|
||||
const header = readFileSync(new URL('../../SHiNE-server/shine-server-blockchain/src/main/java/blockchain/body/HeaderBody.java', import.meta.url), 'utf8');
|
||||
const migration = readFileSync(new URL('../../SHiNE-server/shine-server-db/src/main/resources/postgres/migration_v37.sql', import.meta.url), 'utf8');
|
||||
assert.match(client, /bodyBytes: makeHeaderBodyBytes\(\{ login: registeredLogin, initialBlockchainKey32 \}\)/);
|
||||
assert.match(client, /bodyBytes: makeHeaderBodyBytes\(\{ login: registeredLogin, initialBlockchainKey32, license: HEADER_DEFAULT_LICENSE, accountType: identity\.accountType, previousAccounts: identity\.previousAccounts \}\)/);
|
||||
assert.doesNotMatch(client, /makeHeaderBodyBytes\(\{ login: cleanLogin\.toLowerCase\(\)/);
|
||||
assert.match(handler, /headerBody\.login\.equals\(registeredOwner\.getLogin\(\)\)/);
|
||||
assert.match(header, /\[A-Za-z0-9_\]\+@\[a-z0-9_\]\+/);
|
||||
|
||||
Reference in New Issue
Block a user