From 6416130bec17cc90ffd54dea65d7340853945f7c Mon Sep 17 00:00:00 2001 From: Timo Walter Date: Sun, 17 May 2020 17:47:26 +0200 Subject: [PATCH] #55 Adjust test data - releaseNotes.txt is now releaseNotes.json - fill the releaseNotes.json with valid input --- .../productx/debian/amd64/1.1/deployment.json | 2 +- .../debian/amd64/1.1/releaseNotes.json | 24 ++++++++++++++++++ .../debian/amd64/1.1/releaseNotes.txt | 3 --- .../debian/amd64/1.2-beta/deployment.json | 2 +- .../debian/amd64/1.2-beta/releaseNotes.json | 24 ++++++++++++++++++ .../debian/amd64/1.2-beta/releaseNotes.txt | 3 --- .../productx/ubuntu/amd64/1.0/deployment.json | 2 +- .../ubuntu/amd64/1.0/releaseNotes.json | 24 ++++++++++++++++++ .../ubuntu/amd64/1.0/releaseNotes.txt | 3 --- .../productx/ubuntu/arm64/1.0/deployment.json | 2 +- .../ubuntu/arm64/1.0/releaseNotes.json | 24 ++++++++++++++++++ .../ubuntu/arm64/1.0/releaseNotes.txt | 3 --- .../TestData/testDeployment.json | 2 +- .../TestData/update_test_zip.zip | Bin 715 -> 873 bytes .../validateUploadPayload/test_payload.zip | Bin 659 -> 712 bytes .../test_payload_invalid_meta.zip | Bin 609 -> 661 bytes .../test_payload_without_artifact.zip | Bin 461 -> 514 bytes .../test_payload_without_meta.zip | Bin 420 -> 472 bytes .../test_payload_without_release_notes.zip | Bin 461 -> 462 bytes 19 files changed, 101 insertions(+), 17 deletions(-) create mode 100644 Sources/ReleaseServer/ReleaseServer.WebApi.Test/TestData/productx/debian/amd64/1.1/releaseNotes.json delete mode 100644 Sources/ReleaseServer/ReleaseServer.WebApi.Test/TestData/productx/debian/amd64/1.1/releaseNotes.txt create mode 100644 Sources/ReleaseServer/ReleaseServer.WebApi.Test/TestData/productx/debian/amd64/1.2-beta/releaseNotes.json delete mode 100644 Sources/ReleaseServer/ReleaseServer.WebApi.Test/TestData/productx/debian/amd64/1.2-beta/releaseNotes.txt create mode 100644 Sources/ReleaseServer/ReleaseServer.WebApi.Test/TestData/productx/ubuntu/amd64/1.0/releaseNotes.json delete mode 100644 Sources/ReleaseServer/ReleaseServer.WebApi.Test/TestData/productx/ubuntu/amd64/1.0/releaseNotes.txt create mode 100644 Sources/ReleaseServer/ReleaseServer.WebApi.Test/TestData/productx/ubuntu/arm64/1.0/releaseNotes.json delete mode 100644 Sources/ReleaseServer/ReleaseServer.WebApi.Test/TestData/productx/ubuntu/arm64/1.0/releaseNotes.txt diff --git a/Sources/ReleaseServer/ReleaseServer.WebApi.Test/TestData/productx/debian/amd64/1.1/deployment.json b/Sources/ReleaseServer/ReleaseServer.WebApi.Test/TestData/productx/debian/amd64/1.1/deployment.json index 4726c8f..3bb63c5 100644 --- a/Sources/ReleaseServer/ReleaseServer.WebApi.Test/TestData/productx/debian/amd64/1.1/deployment.json +++ b/Sources/ReleaseServer/ReleaseServer.WebApi.Test/TestData/productx/debian/amd64/1.1/deployment.json @@ -1,5 +1,5 @@ { - "ReleaseNotesFileName": "releaseNotes.txt", + "ReleaseNotesFileName": "releaseNotes.json", "ArtifactFileName": "artifact.zip", "ReleaseDate": "2020-02-01" } \ No newline at end of file diff --git a/Sources/ReleaseServer/ReleaseServer.WebApi.Test/TestData/productx/debian/amd64/1.1/releaseNotes.json b/Sources/ReleaseServer/ReleaseServer.WebApi.Test/TestData/productx/debian/amd64/1.1/releaseNotes.json new file mode 100644 index 0000000..27b953c --- /dev/null +++ b/Sources/ReleaseServer/ReleaseServer.WebApi.Test/TestData/productx/debian/amd64/1.1/releaseNotes.json @@ -0,0 +1,24 @@ +{ + "de": [ + { + "platforms": [ + "windows/any", + "linux/rpi" + ], + "added": [ + "added de 1" + ] + } + ], + "en": [ + { + "platforms": [ + "windows/any", + "linux/rpi" + ], + "added": [ + "added en 1" + ] + } + ] +} \ No newline at end of file diff --git a/Sources/ReleaseServer/ReleaseServer.WebApi.Test/TestData/productx/debian/amd64/1.1/releaseNotes.txt b/Sources/ReleaseServer/ReleaseServer.WebApi.Test/TestData/productx/debian/amd64/1.1/releaseNotes.txt deleted file mode 100644 index a566468..0000000 --- a/Sources/ReleaseServer/ReleaseServer.WebApi.Test/TestData/productx/debian/amd64/1.1/releaseNotes.txt +++ /dev/null @@ -1,3 +0,0 @@ -Release 1.0.0 -- This is an example -- This is another example \ No newline at end of file diff --git a/Sources/ReleaseServer/ReleaseServer.WebApi.Test/TestData/productx/debian/amd64/1.2-beta/deployment.json b/Sources/ReleaseServer/ReleaseServer.WebApi.Test/TestData/productx/debian/amd64/1.2-beta/deployment.json index 251a2d5..802659a 100644 --- a/Sources/ReleaseServer/ReleaseServer.WebApi.Test/TestData/productx/debian/amd64/1.2-beta/deployment.json +++ b/Sources/ReleaseServer/ReleaseServer.WebApi.Test/TestData/productx/debian/amd64/1.2-beta/deployment.json @@ -1,5 +1,5 @@ { - "ReleaseNotesFileName": "releaseNotes.txt", + "ReleaseNotesFileName": "releaseNotes.json", "ArtifactFileName": "artifact.zip", "ReleaseDate": "2020-02-10" } \ No newline at end of file diff --git a/Sources/ReleaseServer/ReleaseServer.WebApi.Test/TestData/productx/debian/amd64/1.2-beta/releaseNotes.json b/Sources/ReleaseServer/ReleaseServer.WebApi.Test/TestData/productx/debian/amd64/1.2-beta/releaseNotes.json new file mode 100644 index 0000000..27b953c --- /dev/null +++ b/Sources/ReleaseServer/ReleaseServer.WebApi.Test/TestData/productx/debian/amd64/1.2-beta/releaseNotes.json @@ -0,0 +1,24 @@ +{ + "de": [ + { + "platforms": [ + "windows/any", + "linux/rpi" + ], + "added": [ + "added de 1" + ] + } + ], + "en": [ + { + "platforms": [ + "windows/any", + "linux/rpi" + ], + "added": [ + "added en 1" + ] + } + ] +} \ No newline at end of file diff --git a/Sources/ReleaseServer/ReleaseServer.WebApi.Test/TestData/productx/debian/amd64/1.2-beta/releaseNotes.txt b/Sources/ReleaseServer/ReleaseServer.WebApi.Test/TestData/productx/debian/amd64/1.2-beta/releaseNotes.txt deleted file mode 100644 index a566468..0000000 --- a/Sources/ReleaseServer/ReleaseServer.WebApi.Test/TestData/productx/debian/amd64/1.2-beta/releaseNotes.txt +++ /dev/null @@ -1,3 +0,0 @@ -Release 1.0.0 -- This is an example -- This is another example \ No newline at end of file diff --git a/Sources/ReleaseServer/ReleaseServer.WebApi.Test/TestData/productx/ubuntu/amd64/1.0/deployment.json b/Sources/ReleaseServer/ReleaseServer.WebApi.Test/TestData/productx/ubuntu/amd64/1.0/deployment.json index 4726c8f..3bb63c5 100644 --- a/Sources/ReleaseServer/ReleaseServer.WebApi.Test/TestData/productx/ubuntu/amd64/1.0/deployment.json +++ b/Sources/ReleaseServer/ReleaseServer.WebApi.Test/TestData/productx/ubuntu/amd64/1.0/deployment.json @@ -1,5 +1,5 @@ { - "ReleaseNotesFileName": "releaseNotes.txt", + "ReleaseNotesFileName": "releaseNotes.json", "ArtifactFileName": "artifact.zip", "ReleaseDate": "2020-02-01" } \ No newline at end of file diff --git a/Sources/ReleaseServer/ReleaseServer.WebApi.Test/TestData/productx/ubuntu/amd64/1.0/releaseNotes.json b/Sources/ReleaseServer/ReleaseServer.WebApi.Test/TestData/productx/ubuntu/amd64/1.0/releaseNotes.json new file mode 100644 index 0000000..27b953c --- /dev/null +++ b/Sources/ReleaseServer/ReleaseServer.WebApi.Test/TestData/productx/ubuntu/amd64/1.0/releaseNotes.json @@ -0,0 +1,24 @@ +{ + "de": [ + { + "platforms": [ + "windows/any", + "linux/rpi" + ], + "added": [ + "added de 1" + ] + } + ], + "en": [ + { + "platforms": [ + "windows/any", + "linux/rpi" + ], + "added": [ + "added en 1" + ] + } + ] +} \ No newline at end of file diff --git a/Sources/ReleaseServer/ReleaseServer.WebApi.Test/TestData/productx/ubuntu/amd64/1.0/releaseNotes.txt b/Sources/ReleaseServer/ReleaseServer.WebApi.Test/TestData/productx/ubuntu/amd64/1.0/releaseNotes.txt deleted file mode 100644 index a566468..0000000 --- a/Sources/ReleaseServer/ReleaseServer.WebApi.Test/TestData/productx/ubuntu/amd64/1.0/releaseNotes.txt +++ /dev/null @@ -1,3 +0,0 @@ -Release 1.0.0 -- This is an example -- This is another example \ No newline at end of file diff --git a/Sources/ReleaseServer/ReleaseServer.WebApi.Test/TestData/productx/ubuntu/arm64/1.0/deployment.json b/Sources/ReleaseServer/ReleaseServer.WebApi.Test/TestData/productx/ubuntu/arm64/1.0/deployment.json index 4726c8f..3bb63c5 100644 --- a/Sources/ReleaseServer/ReleaseServer.WebApi.Test/TestData/productx/ubuntu/arm64/1.0/deployment.json +++ b/Sources/ReleaseServer/ReleaseServer.WebApi.Test/TestData/productx/ubuntu/arm64/1.0/deployment.json @@ -1,5 +1,5 @@ { - "ReleaseNotesFileName": "releaseNotes.txt", + "ReleaseNotesFileName": "releaseNotes.json", "ArtifactFileName": "artifact.zip", "ReleaseDate": "2020-02-01" } \ No newline at end of file diff --git a/Sources/ReleaseServer/ReleaseServer.WebApi.Test/TestData/productx/ubuntu/arm64/1.0/releaseNotes.json b/Sources/ReleaseServer/ReleaseServer.WebApi.Test/TestData/productx/ubuntu/arm64/1.0/releaseNotes.json new file mode 100644 index 0000000..27b953c --- /dev/null +++ b/Sources/ReleaseServer/ReleaseServer.WebApi.Test/TestData/productx/ubuntu/arm64/1.0/releaseNotes.json @@ -0,0 +1,24 @@ +{ + "de": [ + { + "platforms": [ + "windows/any", + "linux/rpi" + ], + "added": [ + "added de 1" + ] + } + ], + "en": [ + { + "platforms": [ + "windows/any", + "linux/rpi" + ], + "added": [ + "added en 1" + ] + } + ] +} \ No newline at end of file diff --git a/Sources/ReleaseServer/ReleaseServer.WebApi.Test/TestData/productx/ubuntu/arm64/1.0/releaseNotes.txt b/Sources/ReleaseServer/ReleaseServer.WebApi.Test/TestData/productx/ubuntu/arm64/1.0/releaseNotes.txt deleted file mode 100644 index a566468..0000000 --- a/Sources/ReleaseServer/ReleaseServer.WebApi.Test/TestData/productx/ubuntu/arm64/1.0/releaseNotes.txt +++ /dev/null @@ -1,3 +0,0 @@ -Release 1.0.0 -- This is an example -- This is another example \ No newline at end of file diff --git a/Sources/ReleaseServer/ReleaseServer.WebApi.Test/TestData/testDeployment.json b/Sources/ReleaseServer/ReleaseServer.WebApi.Test/TestData/testDeployment.json index 4726c8f..3bb63c5 100644 --- a/Sources/ReleaseServer/ReleaseServer.WebApi.Test/TestData/testDeployment.json +++ b/Sources/ReleaseServer/ReleaseServer.WebApi.Test/TestData/testDeployment.json @@ -1,5 +1,5 @@ { - "ReleaseNotesFileName": "releaseNotes.txt", + "ReleaseNotesFileName": "releaseNotes.json", "ArtifactFileName": "artifact.zip", "ReleaseDate": "2020-02-01" } \ No newline at end of file diff --git a/Sources/ReleaseServer/ReleaseServer.WebApi.Test/TestData/update_test_zip.zip b/Sources/ReleaseServer/ReleaseServer.WebApi.Test/TestData/update_test_zip.zip index 152fbf6b214850790d9819f864b7ab382b637802..4777774eea19a04a16034dee4cc1855c55cc022c 100644 GIT binary patch delta 552 zcmX@j`jSmNz?+#xgn@y9gW*xn#sJSX_T5=P-o%OGa`nB2TrCa)EX4=yPaJu^ar?tm z_V$I1@)I1R1FuZIE6DQk{kjzy?XIGGTO6ObOImGk&SKHav|4hfd7t1-_Vdd(rX1W| znzrD&ckA~*-@SHf*v3m6e+5Xakw&=TG}F3()geny z-UPaVbq)&ygT!QhCh_{L;{3d$lkW31DM%cBf4hqPSZTEO&R3yP;vzR9+W2yB&3Qks z-eHEk$=2>2A8%W}W1r)^_pU;V`xVb$ zbWT{Gwce<)w?Z=4NAmHRrWjGfK0annDR+4tv8mjfSGoBmvNXcZ8o{4`1lE0|BJ*s^9_f8GNWC6wsUX;+EJeASh zc|q|kuSA_|j4*m7&!LQMQ?D`xcr!BDGeF`DIlREZ#h?NVIS^0);(4IJQwIee7nsk$ yz{nuM@GX16j}pymjAdd1<{o9x*PkEeYwoD*_wTm1ggUCNJXUY+v<9Z_r=T!?X2HV%vtcC zKlWhL?jEP@vU~SjQGH%yny59m{8(|ZK##@A{M~SD8(hOR1EB`4zknF-;Lvzwy* zKlCL}-p9x(Ee>={QEESVo9oANkz%zhm2N}*E5#!qBwlA5tF&x zq4!@{(>1R#!swMehcdQJy~-Hi&B$cWFnJ@Rn2$Jv3eac}Pyph^K#ap0F0cXy21W)6 qhTW6C*|GFqWrWdxYuu!)YOYRx#iY$BFjfjA|#ASb^vH#M(BFRM5|&-aWW zSA&57%YnEL{6$;6d@|KLQn~62PH0X%;!)J9@bB(|rkh1G?;4-)l8`tlz!ub}$#ZLh zllKL&2b1^3HQ!$FM{I7o?c*aW`#Q?si}i0?)*M&=d;j+n{F9x!yiRzTOh~`Zi*Qd* z&&GgRvB!L~fbOtmWMB{k(nYB`sfop@e)%P-#b6g5?b{1<5l>6`!E%n7tc71gk1U+P z!P@(XU+Yr&_G{Oyc2s-!z28ybK8r!Ya9TiQcB!DcOq8kl-y6P)Uuv#8{nfI1>Q#0o zZqL^yCeUVqut$R{=U71QdX{ABZu$!UdLMU|?jBU?}~s_&Nb-V$8Ki d_dzB@>B-Ve+DsaZlRcOmxm1Bc(hI~43;-KNtGECF delta 340 zcmX@XI+?XTz?+#xgn@y9gJId$wEibUspWQc#1%S9HH77N(IMpw|B(+$tq@rYUD5KS6EyjFa6t_=a#%LgZ$uuD~ zUGo|vj9$reC}Z2ytCItmWL*UqRDgzofC3Qr0WrG4Twoan21W)6hTW6C*|GFqWrWdx dYuu!)YCtAwGksy0T+8IhrNYR-5DCN#3;>pvboBrL diff --git a/Sources/ReleaseServer/ReleaseServer.WebApi.Test/TestData/validateUploadPayload/test_payload_invalid_meta.zip b/Sources/ReleaseServer/ReleaseServer.WebApi.Test/TestData/validateUploadPayload/test_payload_invalid_meta.zip index 317cafbc24039a6b38982161da4aa45385f2477c..07d537cc583d8dafdadb598c951ec3a3579de0e8 100644 GIT binary patch delta 270 zcmaFJGL>~gT76H?#(-I|$9%IG7#M6B85jhCbWv(fYGQG!Uw%nyv0heje%{f(y<80j zJT2u1%Qu#ev6FB2 Z1U>mBqc-E$$)Ze7T&h41M*%Sd0|4xfWXJ#j delta 120 zcm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