@@ -51,6 +51,7 @@ Deno.test("create a manifest", async () => {
5151 userId ,
5252 {
5353 name : "Test Project" ,
54+ repoUrl : "https://github.com/test/test" ,
5455 workspaceId : workspace . id ,
5556 maxCodeCharPerSymbol : config . maxCodeCharPerSymbol ,
5657 maxCodeCharPerFile : config . maxCodeCharPerFile ,
@@ -141,6 +142,7 @@ Deno.test("create a manifest - non-member of workspace", async () => {
141142 userId ,
142143 {
143144 name : "Test Project" ,
145+ repoUrl : "https://github.com/test/test" ,
144146 workspaceId : workspace . id ,
145147 maxCodeCharPerSymbol : config . maxCodeCharPerSymbol ,
146148 maxCodeCharPerFile : config . maxCodeCharPerFile ,
@@ -260,6 +262,7 @@ Deno.test("create manifest - workspace access disabled", async () => {
260262 userId ,
261263 {
262264 name : "Test Project" ,
265+ repoUrl : "https://github.com/test/test" ,
263266 workspaceId : workspace . id ,
264267 maxCodeCharPerSymbol : config . maxCodeCharPerSymbol ,
265268 maxCodeCharPerFile : config . maxCodeCharPerFile ,
@@ -338,6 +341,7 @@ Deno.test("get manifests", async () => {
338341 userId ,
339342 {
340343 name : "Test Project" ,
344+ repoUrl : "https://github.com/test/test" ,
341345 workspaceId : workspace . id ,
342346 maxCodeCharPerSymbol : config . maxCodeCharPerSymbol ,
343347 maxCodeCharPerFile : config . maxCodeCharPerFile ,
@@ -429,6 +433,7 @@ Deno.test("get manifests with workspace filter", async () => {
429433 userId ,
430434 {
431435 name : "Test Project" ,
436+ repoUrl : "https://github.com/test/test" ,
432437 workspaceId : workspace . id ,
433438 maxCodeCharPerSymbol : config . maxCodeCharPerSymbol ,
434439 maxCodeCharPerFile : config . maxCodeCharPerFile ,
@@ -513,6 +518,7 @@ Deno.test("get manifests with search", async () => {
513518 userId ,
514519 {
515520 name : "Test Project" ,
521+ repoUrl : "https://github.com/test/test" ,
516522 workspaceId : workspace . id ,
517523 maxCodeCharPerSymbol : config . maxCodeCharPerSymbol ,
518524 maxCodeCharPerFile : config . maxCodeCharPerFile ,
@@ -608,6 +614,7 @@ Deno.test("get manifests - pagination", async () => {
608614 userId ,
609615 {
610616 name : "Test Project" ,
617+ repoUrl : "https://github.com/test/test" ,
611618 workspaceId : workspace . id ,
612619 maxCodeCharPerSymbol : config . maxCodeCharPerSymbol ,
613620 maxCodeCharPerFile : config . maxCodeCharPerFile ,
@@ -736,6 +743,7 @@ Deno.test("get manifest details", async () => {
736743 userId ,
737744 {
738745 name : "Test Project" ,
746+ repoUrl : "https://github.com/test/test" ,
739747 workspaceId : workspace . id ,
740748 maxCodeCharPerSymbol : config . maxCodeCharPerSymbol ,
741749 maxCodeCharPerFile : config . maxCodeCharPerFile ,
@@ -776,6 +784,12 @@ Deno.test("get manifest details", async () => {
776784 throw new Error ( createResponse . error ) ;
777785 }
778786
787+ await db
788+ . selectFrom ( "manifest" )
789+ . selectAll ( )
790+ . where ( "id" , "=" , createResponse . id )
791+ . executeTakeFirstOrThrow ( ) ;
792+
779793 const { url, method } = ManifestApiTypes . prepareGetManifestDetails (
780794 createResponse . id ,
781795 ) ;
@@ -796,8 +810,15 @@ Deno.test("get manifest details", async () => {
796810 assertEquals ( manifest . branch , "main" ) ;
797811 assertEquals ( manifest . commitSha , "abc123" ) ;
798812 assertEquals ( manifest . version , 1 ) ;
799- assertEquals ( manifest . manifest . test , "data" ) ;
800- assertEquals ( manifest . manifest . complex . nested , "value" ) ;
813+ assertEquals ( manifest . manifest . length > 0 , true ) ;
814+
815+ // get the content of the manifest from the bucket
816+ const manifestContentResponse = await fetch (
817+ manifest . manifest ,
818+ ) ;
819+ const manifestContent = await manifestContentResponse . json ( ) ;
820+ assertEquals ( manifestContent . test , "data" ) ;
821+ assertEquals ( manifestContent . complex . nested , "value" ) ;
801822 } finally {
802823 await resetTables ( ) ;
803824 await destroyKyselyDb ( ) ;
@@ -827,6 +848,7 @@ Deno.test("get manifest details - non-member", async () => {
827848 userId ,
828849 {
829850 name : "Test Project" ,
851+ repoUrl : "https://github.com/test/test" ,
830852 workspaceId : workspace . id ,
831853 maxCodeCharPerSymbol : config . maxCodeCharPerSymbol ,
832854 maxCodeCharPerFile : config . maxCodeCharPerFile ,
@@ -915,6 +937,7 @@ Deno.test("delete a manifest", async () => {
915937 userId ,
916938 {
917939 name : "Test Project" ,
940+ repoUrl : "https://github.com/test/test" ,
918941 workspaceId : workspace . id ,
919942 maxCodeCharPerSymbol : config . maxCodeCharPerSymbol ,
920943 maxCodeCharPerFile : config . maxCodeCharPerFile ,
@@ -1007,6 +1030,7 @@ Deno.test("delete a manifest - non-member", async () => {
10071030 userId ,
10081031 {
10091032 name : "Test Project" ,
1033+ repoUrl : "https://github.com/test/test" ,
10101034 workspaceId : workspace . id ,
10111035 maxCodeCharPerSymbol : config . maxCodeCharPerSymbol ,
10121036 maxCodeCharPerFile : config . maxCodeCharPerFile ,
@@ -1104,6 +1128,7 @@ Deno.test("get manifest audit", async () => {
11041128 userId ,
11051129 {
11061130 name : "Test Project" ,
1131+ repoUrl : "https://github.com/test/test" ,
11071132 workspaceId : workspace . id ,
11081133 maxCodeCharPerSymbol : config . maxCodeCharPerSymbol ,
11091134 maxCodeCharPerFile : config . maxCodeCharPerFile ,
@@ -1255,6 +1280,7 @@ Deno.test("get manifest audit - non-member", async () => {
12551280 userId ,
12561281 {
12571282 name : "Test Project" ,
1283+ repoUrl : "https://github.com/test/test" ,
12581284 workspaceId : workspace . id ,
12591285 maxCodeCharPerSymbol : config . maxCodeCharPerSymbol ,
12601286 maxCodeCharPerFile : config . maxCodeCharPerFile ,
0 commit comments