From 731573273d47a91120c6222b2ca854583ae94da7 Mon Sep 17 00:00:00 2001 From: HDJ Date: Wed, 8 Jul 2020 09:43:08 +0200 Subject: [PATCH] Add test document with both a file and metadata --- .../nl/knaw/huc/textrepo/dashboard/TestDashboard.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/concordion/src/test/resources/nl/knaw/huc/textrepo/dashboard/TestDashboard.md b/concordion/src/test/resources/nl/knaw/huc/textrepo/dashboard/TestDashboard.md index a39c241f..08d80d80 100644 --- a/concordion/src/test/resources/nl/knaw/huc/textrepo/dashboard/TestDashboard.md +++ b/concordion/src/test/resources/nl/knaw/huc/textrepo/dashboard/TestDashboard.md @@ -9,6 +9,8 @@ We first create the following documents: [`text`](- "#doc2Type") - external ID [`doc3`](- "#doc3") without files, but with metadata key [`doc3Key`](- "#doc3Key") and value [`doc3Value`](- "#doc3Value") + - external ID [`doc4`](- "#doc4") with both a file of type [`text`](- "#doc4Type") + and metadata with key [`doc4Key`](- "#doc4Key") and value [`doc4Value`](- "#doc4Value") [ ](- "#doc1Id=createDocument(#doc1)") @@ -18,6 +20,10 @@ We first create the following documents: [ ](- "#doc3Id=createDocument(#doc3)") [ ](- "createMetadata(#doc3Id, #doc3Key, #doc3Value)") +[ ](- "#doc4Id=createDocument(#doc4)") +[ ](- "#file4Id=createFile(#doc4Id)") +[ ](- "createMetadata(#doc4Id, #doc4Key, #doc4Value)") + ## Check document status When checking the dashboard using a `GET` to [`/dashboard`](- "#endpoint") @@ -26,7 +32,7 @@ When checking the dashboard using a `GET` to [`/dashboard`](- "#endpoint") Then: - The response status should be [200 OK](- "?=#result.status"); - - There should be [3 documents](- "?=#result.documentCount") (`doc1`, `doc2`, `doc3`); + - There should be [4 documents](- "?=#result.documentCount") (`doc1`, `doc2`, `doc3`, `doc4`); - There should be [2 documents without files](- "?=#result.withoutFiles") (`doc1`, `doc3`); - There should be [2 documents without metadata](- "?=#result.withoutMetadata") (`doc1`, `doc2`); - There should be [1 orphan](- "?=#result.orphans"): a document with no file and no metadata (`doc1`);