Move random string generation to his own file to avoid replication in tests.

Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
This commit is contained in:
Tom Chauveau
2021-05-22 16:49:57 +02:00
parent a953c5f0d5
commit ebe26a90ca
14 changed files with 140 additions and 120 deletions

View File

@@ -7,20 +7,6 @@ import (
)
TestNetlify: {
// Generate a random number
random: {
string
#up: [
op.#Load & {from: alpine.#Image},
op.#Exec & {
args: ["sh", "-c", "echo -n $RANDOM > /rand"]
},
op.#Export & {
source: "/rand"
},
]
}
// Generate a website containing the random number
html: #up: [
op.#WriteFile & {