Update Helpers.bash - Universe.bats
Signed-off-by: Guillaume de Rouville <guillaume.derouville@gmail.com>
This commit is contained in:
parent
e29bdfb422
commit
a7189084c0
@ -58,6 +58,16 @@ copy_to_sandbox() {
|
|||||||
cp -a "$source_package" "$target_package"
|
cp -a "$source_package" "$target_package"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
# Check if there is a local kubernetes cluster.
|
||||||
|
#
|
||||||
|
# This is need to do kubernetes test in the CI.
|
||||||
|
skip_unless_local_localstack() {
|
||||||
|
if [ "$(curl -s http://localhost:4566)" = '{"status": "running"}' ]; then
|
||||||
|
echo "Localstack available"
|
||||||
|
else
|
||||||
|
skip "Localstack not available"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
# Check if there is a local kubernetes cluster.
|
# Check if there is a local kubernetes cluster.
|
||||||
#
|
#
|
||||||
|
@ -45,10 +45,22 @@ setup() {
|
|||||||
dagger -e aws-ecr up
|
dagger -e aws-ecr up
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@test "aws: ecr/localstack" {
|
||||||
|
skip_unless_local_localstack
|
||||||
|
|
||||||
|
dagger -e aws-ecr-localstack up
|
||||||
|
}
|
||||||
|
|
||||||
@test "aws: s3" {
|
@test "aws: s3" {
|
||||||
dagger -e aws-s3 up
|
dagger -e aws-s3 up
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@test "aws: s3/localstack" {
|
||||||
|
skip_unless_local_localstack
|
||||||
|
|
||||||
|
dagger -e aws-s3-localstack up
|
||||||
|
}
|
||||||
|
|
||||||
@test "aws: eks" {
|
@test "aws: eks" {
|
||||||
dagger -e aws-eks up
|
dagger -e aws-eks up
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user