X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/90d84d8578b760b493ac76b22c42bc284868bc0c..850fcf7cb1dab07f0b8ce05bbf14716b79fb21cd:/services/keepstore/volume_generic_test.go diff --git a/services/keepstore/volume_generic_test.go b/services/keepstore/volume_generic_test.go index 683521c01a..2180412431 100644 --- a/services/keepstore/volume_generic_test.go +++ b/services/keepstore/volume_generic_test.go @@ -2,7 +2,7 @@ // // SPDX-License-Identifier: AGPL-3.0 -package main +package keepstore import ( "bytes" @@ -16,9 +16,9 @@ import ( "strings" "time" - "git.curoverse.com/arvados.git/sdk/go/arvados" - "git.curoverse.com/arvados.git/sdk/go/arvadostest" - "git.curoverse.com/arvados.git/sdk/go/ctxlog" + "git.arvados.org/arvados.git/sdk/go/arvados" + "git.arvados.org/arvados.git/sdk/go/arvadostest" + "git.arvados.org/arvados.git/sdk/go/ctxlog" "github.com/prometheus/client_golang/prometheus" dto "github.com/prometheus/client_model/go" "github.com/sirupsen/logrus" @@ -320,10 +320,9 @@ func (s *genericVolumeSuite) testPutMultipleBlocks(t TB, factory TestableVolumeF } } -// testPutAndTouch -// Test that when applying PUT to a block that already exists, -// the block's modification time is updated. -// Test is intended for only writable volumes +// testPutAndTouch checks that when applying PUT to a block that +// already exists, the block's modification time is updated. Intended +// for only writable volumes. func (s *genericVolumeSuite) testPutAndTouch(t TB, factory TestableVolumeFactory) { s.setup(t) v := s.newVolume(t, factory) @@ -487,8 +486,8 @@ func (s *genericVolumeSuite) testDeleteNewBlock(t TB, factory TestableVolumeFact } // Calling Delete() for a block with a timestamp older than -// BlobSignatureTTL seconds in the past should delete the data. -// Test is intended for only writable volumes +// BlobSigningTTL seconds in the past should delete the data. Test is +// intended for only writable volumes func (s *genericVolumeSuite) testDeleteOldBlock(t TB, factory TestableVolumeFactory) { s.setup(t) s.cluster.Collections.BlobSigningTTL.Set("5m") @@ -834,7 +833,7 @@ func (s *genericVolumeSuite) testPutFullBlock(t TB, factory TestableVolumeFactor } } -// With TrashLifetime != 0, perform: +// With BlobTrashLifetime != 0, perform: // Trash an old block - which either raises ErrNotImplemented or succeeds // Untrash - which either raises ErrNotImplemented or succeeds // Get - which must succeed @@ -940,7 +939,8 @@ func (s *genericVolumeSuite) testTrashEmptyTrashUntrash(t TB, factory TestableVo err = v.Trash(TestHash) if err == MethodDisabledError || err == ErrNotImplemented { // Skip the trash tests for read-only volumes, and - // volume types that don't support TrashLifetime>0. + // volume types that don't support + // BlobTrashLifetime>0. return }