From 4c3b736efba74f3fee411c0e8fc91940f413bf38 Mon Sep 17 00:00:00 2001 From: Matthew Rich Date: Fri, 4 Oct 2024 00:52:04 +0000 Subject: [PATCH] fix tar test - generate new archive in test --- internal/client/client_test.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/internal/client/client_test.go b/internal/client/client_test.go index cae9af4..d32292f 100644 --- a/internal/client/client_test.go +++ b/internal/client/client_test.go @@ -305,7 +305,6 @@ func TestClientImportTar(t *testing.T) { c := NewClient() assert.NotNil(t, c) -/* e := TarArchive(true) assert.Nil(t, e) assert.Greater(t, tarArchiveBuffer.Len(), 0) @@ -313,18 +312,10 @@ func TestClientImportTar(t *testing.T) { path, err := TempDir.CreateFileFromReader("test.tar.gz", &tarArchiveBuffer) assert.Nil(t, err) uri := fmt.Sprintf("file://%s", path) -*/ - - uri := "file:///tmp/jx-v0.2.3.tar.gz" d := folio.NewDeclaration() assert.Nil(t, d.NewResource(&uri)) - //assert.Equal(t, "11f08defe14cf8710583158c86e175bab40bfdbcd5ffb491479aacb8492ebf67", ) - //var sourceResource data.FileResource = d.Attributes.(data.FileResource) - //assert.Nil(t, sourceResource.SetContent(&tarArchiveBuffer)) - //sourceResource.SetDecodeContent(true) - docs, importErr := c.ImportSource(uri) assert.Nil(t, importErr)