Skip to content

Commit 62e4776

Browse files
Update tests
1 parent ca636ad commit 62e4776

File tree

2 files changed

+19
-30
lines changed

2 files changed

+19
-30
lines changed

tests/accuracy/createDeployment.test.ts

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,54 +2,58 @@ import { describeAccuracyTests } from "./sdk/describeAccuracyTests.js";
22

33
describeAccuracyTests([
44
{
5-
prompt: "Setup a local MongoDB cluster",
5+
prompt: "Setup a local MongoDB cluster named 'local-cluster'",
66
expectedToolCalls: [
77
{
88
toolName: "atlas-local-create-deployment",
9-
parameters: {},
9+
parameters: {
10+
deploymentName: "local-cluster",
11+
},
1012
},
1113
],
1214
},
1315
{
14-
prompt: "Create a local MongoDB instance",
16+
prompt: "Create a local MongoDB instance named 'local-cluster'",
1517
expectedToolCalls: [
1618
{
1719
toolName: "atlas-local-create-deployment",
18-
parameters: {},
20+
parameters: {
21+
deploymentName: "local-cluster",
22+
},
1923
},
2024
],
2125
},
2226
{
23-
prompt: "Setup a local MongoDB database",
27+
prompt: "Setup a local MongoDB database named 'local-cluster'",
2428
expectedToolCalls: [
2529
{
2630
toolName: "atlas-local-create-deployment",
27-
parameters: {},
31+
parameters: {
32+
deploymentName: "local-cluster",
33+
},
2834
},
2935
],
3036
},
3137
{
32-
prompt: "Create a local MongoDB database named 'local-mflix'",
38+
prompt: "Setup a local MongoDB cluster, do not specify a name",
3339
expectedToolCalls: [
3440
{
3541
toolName: "atlas-local-create-deployment",
36-
parameters: {
37-
deploymentName: "local-mflix",
38-
},
42+
parameters: {},
3943
},
4044
],
4145
},
4246
{
43-
prompt: "If and only if, the local MongoDB deployment 'this-database' does not exist, then create it",
47+
prompt: "If and only if, the local MongoDB deployment 'new-database' does not exist, then create it",
4448
expectedToolCalls: [
4549
{
46-
toolName: "list-collections",
50+
toolName: "atlas-local-list-deployments",
4751
parameters: {},
4852
},
4953
{
50-
toolName: "create-collection",
54+
toolName: "atlas-local-create-deployment",
5155
parameters: {
52-
deploymentName: "this-database",
56+
deploymentName: "new-database",
5357
},
5458
},
5559
],

tests/accuracy/deleteDeployment.test.ts

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ describeAccuracyTests([
1313
],
1414
},
1515
{
16-
prompt: "Delete the local MongoDB database called 'my-instance'",
16+
prompt: "Delete the local MongoDB atlas database called 'my-instance'",
1717
expectedToolCalls: [
1818
{
1919
toolName: "atlas-local-delete-deployment",
@@ -51,19 +51,4 @@ describeAccuracyTests([
5151
},
5252
],
5353
},
54-
{
55-
prompt: "If and only if, the local MongoDB deployment 'new-database' does not exist, then create it",
56-
expectedToolCalls: [
57-
{
58-
toolName: "list-collections",
59-
parameters: {},
60-
},
61-
{
62-
toolName: "create-collection",
63-
parameters: {
64-
deploymentName: "new-database",
65-
},
66-
},
67-
],
68-
},
6954
]);

0 commit comments

Comments
 (0)