@tiberriver256/mcp-server-azure-devops
Version:
Azure DevOps reference server for the Model Context Protocol (MCP)
36 lines • 1.8 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const feature_1 = require("./feature");
const test_helpers_1 = require("../../../shared/test/test-helpers");
describe('listPipelines integration', () => {
let connection = null;
beforeAll(async () => {
// Get a real connection using environment variables
connection = await (0, test_helpers_1.getTestConnection)();
// TODO: Implement createPipeline functionality and create test pipelines here
// Currently there is no way to create pipelines, so we can't ensure data exists like in list-work-items tests
// In the future, we should add code similar to list-work-items to create test pipelines
});
it('should list pipelines in a project', async () => {
// Skip if no connection is available or no project specified
if ((0, test_helpers_1.shouldSkipIntegrationTest)() ||
!connection ||
!process.env.AZURE_DEVOPS_DEFAULT_PROJECT) {
console.log('Skipping listPipelines integration test - no connection or project available');
return;
}
const projectId = process.env.AZURE_DEVOPS_DEFAULT_PROJECT;
const pipelines = await (0, feature_1.listPipelines)(connection, { projectId });
expect(Array.isArray(pipelines)).toBe(true);
// If there are pipelines, check their structure
if (pipelines.length > 0) {
const pipeline = pipelines[0];
expect(pipeline.id).toBeDefined();
expect(pipeline.name).toBeDefined();
expect(pipeline.folder).toBeDefined();
expect(pipeline.revision).toBeDefined();
expect(pipeline.url).toBeDefined();
}
});
});
//# sourceMappingURL=feature.spec.int.js.map