@@ -249,8 +249,8 @@ export const projectIdParameters: ParameterInfo[] = [
249249] ;
250250
251251export const createClusterParameters : ParameterInfo [ ] = [
252- { name : "name " , type : "string" , description : "Name of the cluster " , required : true } ,
253- { name : "projectId " , type : "string" , description : "Atlas project ID to create the cluster in " , required : true } ,
252+ { name : "projectId " , type : "string" , description : "Atlas project ID " , required : true } ,
253+ { name : "clusterName " , type : "string" , description : "Atlas cluster name " , required : true } ,
254254 { name : "region" , type : "string" , description : "Region of the cluster" , required : false } ,
255255] ;
256256
@@ -272,6 +272,45 @@ export const projectIdInvalidArgs = [
272272 { projectId : "invalid-test-project-id" } ,
273273] ;
274274
275+ export const clusterNameInvalidArgs = [
276+ { clusterName : 123 } ,
277+ { clusterName : [ ] } ,
278+ { clusterName : "!✅invalid" } ,
279+ { clusterName : "a" . repeat ( 65 ) } , // too long
280+ ] ;
281+
282+ export const projectAndClusterInvalidArgs = [
283+ { } ,
284+ { projectId : "507f1f77bcf86cd799439011" } , // missing clusterName
285+ { clusterName : "testCluster" } , // missing projectId
286+ { projectId : 123 , clusterName : "testCluster" } ,
287+ { projectId : "507f1f77bcf86cd799439011" , clusterName : 123 } ,
288+ { projectId : "invalid" , clusterName : "testCluster" } ,
289+ { projectId : "507f1f77bcf86cd799439011" , clusterName : "!✅invalid" } ,
290+ ] ;
291+
292+ export const organizationIdInvalidArgs = [
293+ { organizationId : 123 } ,
294+ { organizationId : [ ] } ,
295+ { organizationId : "!✅invalid" } ,
296+ { organizationId : "invalid-test-org-id" } ,
297+ ] ;
298+
299+ export const orgIdInvalidArgs = [
300+ { orgId : 123 } ,
301+ { orgId : [ ] } ,
302+ { orgId : "!✅invalid" } ,
303+ { orgId : "invalid-test-org-id" } ,
304+ ] ;
305+
306+ export const usernameInvalidArgs = [
307+ { } ,
308+ { username : 123 } ,
309+ { username : [ ] } ,
310+ { username : "!✅invalid" } ,
311+ { username : "a" . repeat ( 101 ) } , // too long
312+ ] ;
313+
275314export const databaseInvalidArgs = [ { } , { database : 123 } , { database : [ ] } ] ;
276315
277316export function validateToolMetadata (
0 commit comments