File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed
Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -707,15 +707,31 @@ describe('Postman MCP - Direct Integration Tests', () => {
707707 expect ( CollectionDataFactory . validateResponse ( getResult ) ) . toBe ( true ) ;
708708 expect ( ( getResult . content as any ) [ 0 ] . text ) . toContain ( collectionData . info . name ) ;
709709
710- const collection = CollectionDataFactory . extractCollectionFromResponse ( getResult ) ;
710+ const getFullResult = await client . callTool (
711+ {
712+ name : 'getCollection' ,
713+ arguments : {
714+ collectionId,
715+ model : 'full' ,
716+ } ,
717+ } ,
718+ undefined ,
719+ { timeout : 100000 }
720+ ) ;
721+ expect ( CollectionDataFactory . validateResponse ( getFullResult ) ) . toBe ( true ) ;
722+
723+ const collection = CollectionDataFactory . extractCollectionFromResponse ( getFullResult ) ;
711724 expect ( collection ) . toBeDefined ( ) ;
725+ expect ( collection . item ) . toBeDefined ( ) ;
726+ expect ( Array . isArray ( collection . item ) ) . toBe ( true ) ;
712727
713728 const updatedName = '[Integration Test] Updated Collection' ;
714729 const updatedCollection = {
715730 ...collection ,
716731 info : {
717732 ...collection . info ,
718733 name : updatedName ,
734+ schema : collection . info . schema || 'https://schema.getpostman.com/json/collection/v2.1.0/collection.json' ,
719735 } ,
720736 } ;
721737
@@ -731,6 +747,8 @@ describe('Postman MCP - Direct Integration Tests', () => {
731747 { timeout : 100000 }
732748 ) ;
733749 expect ( CollectionDataFactory . validateResponse ( updateResult ) ) . toBe ( true ) ;
750+ expect ( ( updateResult . content as any ) [ 0 ] . text ) . toContain ( updatedName ) ;
751+ await new Promise ( ( resolve ) => setTimeout ( resolve , 1000 ) ) ;
734752
735753 const verifyUpdateResult = await client . callTool (
736754 {
You can’t perform that action at this time.
0 commit comments