// SPDX-License-Identifier: Apache-2.0
import { MetricsServerImpl } from '../../../../../../src/business/runtime-state/services/metrics-server-impl.js';
import { expect } from 'chai';
import { PathEx } from '../../../../../../src/business/utils/path-ex.js';
import * as constants from '../../../../../../src/core/constants.js';
describe('MetricsServer', () => {
    describe('getMetrics', () => {
        it('should succeed', async () => {
            const metricsServer = new MetricsServerImpl();
            const metrics = await metricsServer.getMetrics('metrics-server-test');
            expect(metrics?.clusterMetrics?.length).to.be.greaterThan(0);
        });
    });
    describe('logMetrics', () => {
        it('should succeed', async () => {
            const metricsServer = new MetricsServerImpl();
            await metricsServer.logMetrics('metric-server-test', PathEx.join(constants.SOLO_LOGS_DIR, 'metrics'));
        });
    });
});
//# sourceMappingURL=metrics-server.test.js.map