update stdlib tests that use secrets

Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
This commit is contained in:
Tom Chauveau
2021-05-27 18:22:41 +02:00
committed by Andrea Luzzardi
parent 40d4c95bff
commit 5fb7ded2d5
18 changed files with 442 additions and 219 deletions

View File

@@ -24,7 +24,7 @@ TestS3UploadFile: {
verify: #VerifyS3 & {
config: TestConfig.awsConfig
target: deploy.target
file: "test.txt"
file: "test.txt"
}
}
@@ -40,12 +40,12 @@ TestS3UploadDir: {
verifyFile: #VerifyS3 & {
config: TestConfig.awsConfig
target: deploy.target
file: "dirFile.txt"
file: "dirFile.txt"
}
verifyDir: #VerifyS3 & {
config: TestConfig.awsConfig
target: deploy.target
file: "foo.txt"
file: "foo.txt"
}
}

View File

@@ -33,20 +33,20 @@ import (
"-c",
#"""
aws s3 ls --recursive \#(target) > /contents
"""#
"""#,
]
},
op.#Export & {
source: "/contents"
format: "string"
}
},
]
}
}
#VerifyS3: {
file: string
file: string
config: aws.#Config
target: string
@@ -76,7 +76,7 @@ import (
"-eo",
"pipefail",
"-c",
"grep -q \(file) /test"
"grep -q \(file) /test",
]
},
]