Compare commits

...

1 Commits

Author SHA1 Message Date
Dora Korpar bf60096bfe change md ref direct to wrapper 2020-07-03 12:15:32 -07:00
3 changed files with 9 additions and 9 deletions

View File

@ -5,11 +5,11 @@ const withV4 = require('../support/withV4');
const BucketUtility = require('../../lib/utility/bucket-util');
const changeObjectLock = require('../../../../utilities/objectLock-util');
const bucketName = 'testdeletempu';
const objectName = 'key';
const objectNameTwo = 'secondkey';
const bucketName = `testdeletempu-${Date.now()}`;
const objectName = `key-${Date.now()}`;
const objectNameTwo = `secondkey-${Date.now()}`;
describe('DELETE object', () => {
describe.only('DELETE object', () => {
withV4(sigCfg => {
let uploadId;
const bucketUtil = new BucketUtility('default', sigCfg);

View File

@ -2,7 +2,6 @@ const assert = require('assert');
const async = require('async');
const { versioning } = require('arsenal');
const { metadataGetObject } = require('../../lib/metadata/metadataUtils');
const metadata = require('../../lib/metadata/wrapper');
const { DummyRequestLogger } = require('../unit/helpers');
const versionIdUtils = versioning.VersionID;
@ -12,7 +11,8 @@ const log = new DummyRequestLogger();
function changeObjectLock(objects, newConfig, cb) {
async.each(objects, (object, next) => {
const { bucket, key, versionId } = object;
metadataGetObject(bucket, key, versionIdUtils.decode(versionId), log, (err, objMD) => {
metadata.getObjectMD(bucket, key,
{ versionId: versionIdUtils.decode(versionId) }, log, (err, objMD) => {
assert.ifError(err);
// set newConfig as empty string to remove object lock
/* eslint-disable no-param-reassign */

View File

@ -2112,9 +2112,9 @@ jsonparse@~1.2.0:
integrity sha1-XAxWhRBxYOcv50ib3eoLRMK8Z70=
jsonpointer@^4.0.0:
version "4.0.1"
resolved "https://registry.yarnpkg.com/jsonpointer/-/jsonpointer-4.0.1.tgz#4fd92cb34e0e9db3c89c8622ecf51f9b978c6cb9"
integrity sha1-T9kss04OnbPInIYi7PUfm5eMbLk=
version "4.1.0"
resolved "https://registry.yarnpkg.com/jsonpointer/-/jsonpointer-4.1.0.tgz#501fb89986a2389765ba09e6053299ceb4f2c2cc"
integrity sha512-CXcRvMyTlnR53xMcKnuMzfCA5i/nfblTnnr74CZb6C4vG39eu6w51t7nKmU5MfLfbTgGItliNyjO/ciNPDqClg==
jsprim@^1.2.2:
version "1.4.1"