Skip to content

Commit 861bca0

Browse files
authored
fix: Skip unit test of iaas SDK due to unsupported validations (#113)
1 parent 8810d4d commit 861bca0

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

scripts/sdk-create-pr.sh

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,16 @@ for service_path in ${work_dir}/sdk_to_push/services/*; do
8888
echo "! Linting failed for $service. THE UPDATE OF THIS SERVICE WILL BE SKIPPED."
8989
continue
9090
}
91-
make test skip-non-generated-files=true service=$service || {
92-
echo "! Testing failed for $service. THE UPDATE OF THIS SERVICE WILL BE SKIPPED."
93-
continue
94-
}
91+
# Our unit test template fails because it doesn't support fields with validations,
92+
# such as the UUID component used by IaaS. We introduce this hardcoded skip until we fix it
93+
if [ "${service}" = "iaas" ] || [ "${service}" = "iaasalpha" ]; then
94+
echo ">> Skipping tests of $service service"
95+
else
96+
make test skip-non-generated-files=true service=$service || {
97+
echo "! Testing failed for $service. THE UPDATE OF THIS SERVICE WILL BE SKIPPED."
98+
continue
99+
}
100+
fi
95101

96102
if [[ "$BRANCH_PREFIX" != "main" ]]; then
97103
git switch main # This is needed to create a new branch for the service without including the previously committed files

0 commit comments

Comments
 (0)