findify / s3mock

Embedded S3 server for easy mocking
MIT License
387 stars 107 forks source link

Expiration metadata is not kept #123

Closed orium closed 6 years ago

orium commented 6 years ago

Hi.

Currently the expiration of entries do not seem to be kept:

s3.createBucket("bucket")

val expiration = new GregorianCalendar(2018, 8, 25).getTime

val metadata = new ObjectMetadata
metadata.setExpirationTime(expiration)

s3.put(Bucket("bucket"), "key", new Array[Byte](0), metadata)

s3.metadata(Bucket("bucket"), "key").getExpirationTime shouldBe expiration

This will fail because s3.metadata(Bucket("bucket"), "key").getExpirationTime will be null.

orium commented 6 years ago

Never mind. The problem seems to be in the client: seratch/AWScala#89.