Skip to content

Commit e40c492

Browse files
authored
fix: tests (#110)
1 parent 937b933 commit e40c492

17 files changed

+34
-34
lines changed

tests/integration/tools/atlas/accessLists.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { CallToolResult } from "@modelcontextprotocol/sdk/types.js";
2-
import { describeAtlas, withProject } from "./atlasHelpers.js";
2+
import { describeWithAtlas, withProject } from "./atlasHelpers.js";
33

44
function generateRandomIp() {
55
const randomIp: number[] = [192];
@@ -9,7 +9,7 @@ function generateRandomIp() {
99
return randomIp.join(".");
1010
}
1111

12-
describeAtlas("ip access lists", (integration) => {
12+
describeWithAtlas("ip access lists", (integration) => {
1313
withProject(integration, ({ getProjectId }) => {
1414
const ips = [generateRandomIp(), generateRandomIp()];
1515
const cidrBlocks = [generateRandomIp() + "/16", generateRandomIp() + "/24"];

tests/integration/tools/atlas/clusters.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Session } from "../../../../src/session.js";
2-
import { describeAtlas, withProject, sleep, randomId } from "./atlasHelpers.js";
2+
import { describeWithAtlas, withProject, sleep, randomId } from "./atlasHelpers.js";
33
import { CallToolResult } from "@modelcontextprotocol/sdk/types.js";
44

55
async function deleteAndWaitCluster(session: Session, projectId: string, clusterName: string) {
@@ -28,7 +28,7 @@ async function deleteAndWaitCluster(session: Session, projectId: string, cluster
2828
}
2929
}
3030

31-
describeAtlas("clusters", (integration) => {
31+
describeWithAtlas("clusters", (integration) => {
3232
withProject(integration, ({ getProjectId }) => {
3333
const clusterName = "ClusterTest-" + randomId;
3434

tests/integration/tools/atlas/dbUsers.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { CallToolResult } from "@modelcontextprotocol/sdk/types.js";
22
import { Session } from "../../../../src/session.js";
3-
import { describeAtlas, withProject, randomId } from "./atlasHelpers.js";
3+
import { describeWithAtlas, withProject, randomId } from "./atlasHelpers.js";
44

5-
describeAtlas("db users", (integration) => {
5+
describeWithAtlas("db users", (integration) => {
66
const userName = "testuser-" + randomId;
77
withProject(integration, ({ getProjectId }) => {
88
afterAll(async () => {

tests/integration/tools/atlas/orgs.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { CallToolResult } from "@modelcontextprotocol/sdk/types.js";
22
import { setupIntegrationTest } from "../../helpers.js";
3-
import { parseTable, describeAtlas } from "./atlasHelpers.js";
3+
import { parseTable, describeWithAtlas } from "./atlasHelpers.js";
44

5-
describeAtlas("orgs", (integration) => {
5+
describeWithAtlas("orgs", (integration) => {
66
describe("atlas-list-orgs", () => {
77
it("should have correct metadata", async () => {
88
const { tools } = await integration.mcpClient().listTools();

tests/integration/tools/atlas/projects.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { CallToolResult } from "@modelcontextprotocol/sdk/types.js";
22
import { ObjectId } from "mongodb";
3-
import { parseTable, describeAtlas } from "./atlasHelpers.js";
3+
import { parseTable, describeWithAtlas } from "./atlasHelpers.js";
44

55
const randomId = new ObjectId().toString();
66

7-
describeAtlas("projects", (integration) => {
7+
describeWithAtlas("projects", (integration) => {
88
const projName = "testProj-" + randomId;
99

1010
afterAll(async () => {

tests/integration/tools/mongodb/create/createCollection.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { describeMongoDB } from "../mongodbHelpers.js";
1+
import { describeWithMongoDB } from "../mongodbHelpers.js";
22

33
import {
44
getResponseContent,
@@ -10,7 +10,7 @@ import {
1010
dbOperationInvalidArgTests,
1111
} from "../../../helpers.js";
1212

13-
describeMongoDB("createCollection tool", (integration) => {
13+
describeWithMongoDB("createCollection tool", (integration) => {
1414
validateToolMetadata(
1515
integration,
1616
"create-collection",

tests/integration/tools/mongodb/create/createIndex.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { describeMongoDB } from "../mongodbHelpers.js";
1+
import { describeWithMongoDB } from "../mongodbHelpers.js";
22

33
import {
44
getResponseContent,
@@ -10,7 +10,7 @@ import {
1010
} from "../../../helpers.js";
1111
import { IndexDirection } from "mongodb";
1212

13-
describeMongoDB("createIndex tool", (integration) => {
13+
describeWithMongoDB("createIndex tool", (integration) => {
1414
validateToolMetadata(integration, "create-index", "Create an index for a collection", [
1515
...dbOperationParameters,
1616
{

tests/integration/tools/mongodb/create/insertMany.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { describeMongoDB } from "../mongodbHelpers.js";
1+
import { describeWithMongoDB } from "../mongodbHelpers.js";
22

33
import {
44
getResponseContent,
@@ -9,7 +9,7 @@ import {
99
validateThrowsForInvalidArguments,
1010
} from "../../../helpers.js";
1111

12-
describeMongoDB("insertMany tool", (integration) => {
12+
describeWithMongoDB("insertMany tool", (integration) => {
1313
validateToolMetadata(integration, "insert-many", "Insert an array of documents into a MongoDB collection", [
1414
...dbOperationParameters,
1515
{

tests/integration/tools/mongodb/delete/deleteMany.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { describeMongoDB } from "../mongodbHelpers.js";
1+
import { describeWithMongoDB } from "../mongodbHelpers.js";
22

33
import {
44
getResponseContent,
@@ -9,7 +9,7 @@ import {
99
validateThrowsForInvalidArguments,
1010
} from "../../../helpers.js";
1111

12-
describeMongoDB("deleteMany tool", (integration) => {
12+
describeWithMongoDB("deleteMany tool", (integration) => {
1313
validateToolMetadata(
1414
integration,
1515
"delete-many",

tests/integration/tools/mongodb/delete/dropCollection.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { describeMongoDB } from "../mongodbHelpers.js";
1+
import { describeWithMongoDB } from "../mongodbHelpers.js";
22

33
import {
44
getResponseContent,
@@ -10,7 +10,7 @@ import {
1010
dbOperationInvalidArgTests,
1111
} from "../../../helpers.js";
1212

13-
describeMongoDB("dropCollection tool", (integration) => {
13+
describeWithMongoDB("dropCollection tool", (integration) => {
1414
validateToolMetadata(
1515
integration,
1616
"drop-collection",

0 commit comments

Comments
 (0)