Integrate upstream-compatible read-only MeshCentral transport
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
*/
|
||||
|
||||
import { createMeshCentralAdapter } from '../adapter';
|
||||
import { BridgeError } from '../contracts';
|
||||
|
||||
describe('createMeshCentralAdapter', () => {
|
||||
it('should return mock adapter by default', () => {
|
||||
@@ -16,11 +15,9 @@ describe('createMeshCentralAdapter', () => {
|
||||
expect(adapter.name).toBe('mock');
|
||||
});
|
||||
|
||||
it('should throw for real adapter without credentials', async () => {
|
||||
// Real adapter requires credentials
|
||||
expect(() =>
|
||||
createMeshCentralAdapter({ adapterType: 'real', meshCentralUrl: 'http://test:8080' }),
|
||||
).toThrow(BridgeError);
|
||||
it('should allow real adapter construction before protected credentials are injected', () => {
|
||||
const adapter = createMeshCentralAdapter({ adapterType: 'real', meshCentralUrl: 'http://test:8080' });
|
||||
expect(adapter.name).toBe('meshcentral-real');
|
||||
});
|
||||
|
||||
it('should accept custom configuration', () => {
|
||||
|
||||
Reference in New Issue
Block a user