fix(core): update

This commit is contained in:
Philipp Kunz 2021-12-20 18:29:18 +01:00
parent 2293ad69e1
commit d07e30d7fb

View File

@ -15,13 +15,7 @@ tap.test('should create a smarts3 instance and run it', async toolsArg => {
}); });
tap.test('should be able to access buckets', async () => { tap.test('should be able to access buckets', async () => {
const smartbucketInstance = new plugins.smartbucket.SmartBucket({ const smartbucketInstance = new plugins.smartbucket.SmartBucket(await testSmarts3Instance.getS3Descriptor());
endpoint: 'localhost',
port: 3000,
useSsl: false,
accessKey: 'S3RVER',
accessSecret: 'S3RVER'
});
const bucket = await smartbucketInstance.createBucket('testbucket'); const bucket = await smartbucketInstance.createBucket('testbucket');
const baseDirectory = await bucket.getBaseDirectory(); const baseDirectory = await bucket.getBaseDirectory();
await baseDirectory.fastStore('subdir/hello.txt', 'hi there!'); await baseDirectory.fastStore('subdir/hello.txt', 'hi there!');