Add tests on AWS s3 upload directory

Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
This commit is contained in:
Tom Chauveau
2021-04-22 20:57:00 +02:00
parent 226be80d56
commit b3c29acb34
5 changed files with 29 additions and 4 deletions

View File

@@ -19,12 +19,14 @@ import (
// Script
aws.#Script & {
code: """
aws s3 ls \(target) > /contents
aws s3 ls --recursive \(target) >> /contents
"""
}
}
#VerifyS3: {
file: string
lists: #List & {
config: TestConfig.awsConfig
target: "s3://\(bucket)"
@@ -32,7 +34,7 @@ import (
#CheckFiles:
"""
grep -q test.txt /test
grep -q \(file) /test
"""
test: #up: [