Skip to content

Commit

Permalink
fix: Skip unit test of iaas SDK due to unsupported validations (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
joaopalet authored Nov 28, 2024
1 parent 8810d4d commit 861bca0
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions scripts/sdk-create-pr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,16 @@ for service_path in ${work_dir}/sdk_to_push/services/*; do
echo "! Linting failed for $service. THE UPDATE OF THIS SERVICE WILL BE SKIPPED."
continue
}
make test skip-non-generated-files=true service=$service || {
echo "! Testing failed for $service. THE UPDATE OF THIS SERVICE WILL BE SKIPPED."
continue
}
# Our unit test template fails because it doesn't support fields with validations,
# such as the UUID component used by IaaS. We introduce this hardcoded skip until we fix it
if [ "${service}" = "iaas" ] || [ "${service}" = "iaasalpha" ]; then
echo ">> Skipping tests of $service service"
else
make test skip-non-generated-files=true service=$service || {
echo "! Testing failed for $service. THE UPDATE OF THIS SERVICE WILL BE SKIPPED."
continue
}
fi

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

0 comments on commit 861bca0

Please sign in to comment.