update
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
import { tap, expect } from '@git.zone/tstest/tapbundle';
|
||||
import * as net from 'net';
|
||||
import * as tls from 'tls';
|
||||
import { startTestServer, stopTestServer, type ITestServer } from '../server.loader.js';
|
||||
import { startTestServer, stopTestServer, type ITestServer } from '../../helpers/server.loader.js';
|
||||
|
||||
const TEST_PORT = 2525;
|
||||
const TEST_PORT_TLS = 30466;
|
||||
@ -61,7 +61,7 @@ tap.test('TLS Ciphers - should advertise STARTTLS for cipher negotiation', async
|
||||
socket.end();
|
||||
|
||||
// Either behavior is acceptable
|
||||
expect(true).toBeTrue();
|
||||
expect(true).toEqual(true);
|
||||
|
||||
} finally {
|
||||
await stopTestServer();
|
||||
@ -106,7 +106,7 @@ tap.test('TLS Ciphers - should negotiate secure cipher suites', async (tools) =>
|
||||
console.log('Cipher security analysis:', cipherSecurity);
|
||||
|
||||
expect(cipher.name).toBeDefined();
|
||||
expect(cipherSecurity.secure).toBeTrue();
|
||||
expect(cipherSecurity.secure).toEqual(true);
|
||||
|
||||
// Send SMTP command to verify encrypted communication
|
||||
const banner = await new Promise<string>((resolve) => {
|
||||
@ -187,7 +187,7 @@ tap.test('TLS Ciphers - should reject weak cipher suites', async (tools) => {
|
||||
}
|
||||
|
||||
// Either behavior is logged - some servers may support legacy ciphers
|
||||
expect(true).toBeTrue();
|
||||
expect(true).toEqual(true);
|
||||
|
||||
} finally {
|
||||
await stopTestServer();
|
||||
@ -249,7 +249,7 @@ tap.test('TLS Ciphers - should support forward secrecy', async (tools) => {
|
||||
socket.end();
|
||||
|
||||
// Forward secrecy is recommended but not required
|
||||
expect(true).toBeTrue();
|
||||
expect(true).toEqual(true);
|
||||
|
||||
} finally {
|
||||
await stopTestServer();
|
||||
|
Reference in New Issue
Block a user