From e51b7a62acdb2c12561955f3880e491f78735863 Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Thu, 22 Sep 2022 10:51:59 -0700 Subject: [PATCH] cover a couple missed cases for _archive.. hide coverage in test code --- ui/fixtures/cmd.container.tar.json | 13 +++++++++++-- ui/fixtures/testfile.tar.gz | Bin 178 -> 214 bytes ui/medashare/cli.py | 5 ++++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/ui/fixtures/cmd.container.tar.json b/ui/fixtures/cmd.container.tar.json index e089666..69c77db 100644 --- a/ui/fixtures/cmd.container.tar.json +++ b/ui/fixtures/cmd.container.tar.json @@ -24,8 +24,17 @@ { "files": [ "testfiles/newfile.txt", "testfiles/test.txt" ], "hashes": [ "sha512:90f8342520f0ac57fb5a779f5d331c2fa87aa40f8799940257f9ba619940951e67143a8d746535ed0284924b2b7bc1478f095198800ba96d01847d7b56ca465c", "sha512:7d5768d47b6bc27dc4fa7e9732cfa2de506ca262a2749cb108923e5dddffde842bbfee6cb8d692fb43aca0f12946c521cce2633887914ca1f96898478d10ad3f" ], "type": "container", - "uri": "hash://sha512/79fab684ca73e25994c1b739dcf8f03acf27dff74d63b4b3affd9aa69fbb37d23794b723802cad131969225403846f8f8c470bc2432c32de34d39f044a360073" }, - { "type": "file", "hashes": [ "sha512:79fab684ca73e25994c1b739dcf8f03acf27dff74d63b4b3affd9aa69fbb37d23794b723802cad131969225403846f8f8c470bc2432c32de34d39f044a360073" ] } + "uri": "hash://sha512/80b8615104d04870ca23a0df0b63097a84a05fabf0813ced03482f742402d8c06598e32dc080e584935c4901d424c9d08d987040e3f49ef11732af5c8bf6e2aa" }, + { "type": "file", "hashes": [ "sha512:80b8615104d04870ca23a0df0b63097a84a05fabf0813ced03482f742402d8c06598e32dc080e584935c4901d424c9d08d987040e3f49ef11732af5c8bf6e2aa" ] } ] +}, +{ + "title": "import tar.gz container", + "cmd": [ "container", "testfile.tar.gz" ] +}, +{ + "special": "verify store object cnt", + "comment": "should have one container and one file", + "count": 2 } ] diff --git a/ui/fixtures/testfile.tar.gz b/ui/fixtures/testfile.tar.gz index 2ccd6716f025391fe8b582b7dbe21b108130d995..b2559b8485a5b0528778289dfd0a5d3e1b20c3ee 100644 GIT binary patch literal 214 zcmV;{04e_;iwFQ%pDbel1MQW;4#FS|hB^BbeFE1)f#=y_=!|+0j6S}_CDVf;9<~`X zzL2y85=zSdle(Bff9zs&?ru5Rrh8J;f{2b8a`etVBkEy3pbZdfk4$JC0+J=i3UJ~& zK5~tzy+|pC)2_HrwuMkwA8rC;{1ei?k07H3=|AKLu=#aKl?6$o{zEg@8Cmz%7W6NA zAvR=)ywxQ7H(DD7cCLcnS-bwn{^x84^H*Q^KY1X-9-Wpn`#;MEQ2l=iUjCo^U%kIl QsZ`d&19*7-2>=cN02df!AOHXW literal 178 zcmV;j08RfNiwFQ1p(bMh1MQT-4#FS|Ksoyr{Q_-Sf$!M?bVfZ$jefo$$-J1w!<;ep zg`_3)P*NTev!vk=^X3$