Add forcePathStyle to s3 config test

This commit is contained in:
Gabe Kangas
2021-10-28 17:19:14 -07:00
parent 2110dfd30c
commit f10e240c18

View File

@@ -29,6 +29,7 @@ const s3Config = {
secret: randomString(), secret: randomString(),
bucket: randomString(), bucket: randomString(),
region: randomString(), region: randomString(),
forcePathStyle: true,
}; };
const forbiddenUsernames = [randomString(), randomString(), randomString()]; const forbiddenUsernames = [randomString(), randomString(), randomString()];
@@ -148,7 +149,7 @@ test('admin configuration is correct', (done) => {
expect(res.body.s3.secret).toBe(s3Config.secret); expect(res.body.s3.secret).toBe(s3Config.secret);
expect(res.body.s3.bucket).toBe(s3Config.bucket); expect(res.body.s3.bucket).toBe(s3Config.bucket);
expect(res.body.s3.region).toBe(s3Config.region); expect(res.body.s3.region).toBe(s3Config.region);
expect(res.body.s3.forcePathStyle).toBeTruthy();
done(); done();
}); });
}); });