Skip to content

Commit

Permalink
Merge pull request #163 from scireum/feature/jvo/MISC-24-Date-Formatting
Browse files Browse the repository at this point in the history
Fix: Date Formatting when Listing Buckets/Bucket Contents (MISC-24)
  • Loading branch information
jakobvogel committed Mar 8, 2021
2 parents 2adc414 + e3e0693 commit 752cc2f
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions src/test/java/BaseAWSSpec.groovy
Expand Up @@ -128,6 +128,33 @@ abstract class BaseAWSSpec extends BaseSpecification {
downloadedData == "Test"
}

def "PUT and then LIST work as expected"() {
given:
def client = getClient()
when:
if (client.doesBucketExist("test")) {
client.deleteBucket("test")
}
client.createBucket("test")
and:
client.putObject(
"test",
"Eins",
new ByteArrayInputStream("Eins".getBytes(Charsets.UTF_8)),
new ObjectMetadata())
client.putObject(
"test",
"Zwei",
new ByteArrayInputStream("Zwei".getBytes(Charsets.UTF_8)),
new ObjectMetadata())
then:
def listing = client.listObjects("test")
def summaries = listing.getObjectSummaries()
summaries.size() == 2
summaries.get(0).getKey() == "Eins"
summaries.get(1).getKey() == "Zwei"
}

def "PUT and then DELETE work as expected"() {
given:
def client = getClient()
Expand Down

0 comments on commit 752cc2f

Please sign in to comment.