remove unused test helper
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
This commit is contained in:
parent
c85b25cc6c
commit
0383c6b52a
@ -9,6 +9,6 @@ import (
|
|||||||
source: dagger.#Artifact
|
source: dagger.#Artifact
|
||||||
|
|
||||||
// Container image
|
// Container image
|
||||||
container: docker.#Build & {
|
image: docker.#Build & {
|
||||||
"source": source
|
"source": source
|
||||||
}
|
}
|
||||||
|
@ -19,11 +19,6 @@ skip_unless_secrets_available() {
|
|||||||
sops exec-file "$inputFile" echo > /dev/null 2>&1 || skip "$inputFile cannot be decrypted"
|
sops exec-file "$inputFile" echo > /dev/null 2>&1 || skip "$inputFile cannot be decrypted"
|
||||||
}
|
}
|
||||||
|
|
||||||
skip_unless_file_exist() {
|
|
||||||
local inputFile="$1"
|
|
||||||
test -f "$inputFile" || skip "$inputFile does not exist"
|
|
||||||
}
|
|
||||||
|
|
||||||
skip_unless_local_kube() {
|
skip_unless_local_kube() {
|
||||||
if [ -f ~/.kube/config ] && grep -q "user: kind-kind" ~/.kube/config &> /dev/null && grep -q "127.0.0.1" ~/.kube/config &> /dev/null; then
|
if [ -f ~/.kube/config ] && grep -q "user: kind-kind" ~/.kube/config &> /dev/null && grep -q "127.0.0.1" ~/.kube/config &> /dev/null; then
|
||||||
echo "Kubernetes available"
|
echo "Kubernetes available"
|
||||||
|
@ -61,8 +61,6 @@ setup() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@test "stdlib: docker-build" {
|
@test "stdlib: docker-build" {
|
||||||
skip_unless_file_exist "$TESTDIR"/stdlib/docker/build/Dockerfile
|
|
||||||
|
|
||||||
"$DAGGER" compute "$TESTDIR"/stdlib/docker/build/ --input-dir source="$TESTDIR"/stdlib/docker/build
|
"$DAGGER" compute "$TESTDIR"/stdlib/docker/build/ --input-dir source="$TESTDIR"/stdlib/docker/build
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user