Skip to content

Commit

Permalink
Merge pull request canonical#248 from dosaboy/func-test-dont-add-nova…
Browse files Browse the repository at this point in the history
…-compute

Dont add nova-compute to charm tests if not already there
  • Loading branch information
dosaboy authored Sep 18, 2024
2 parents 37e0245 + 4f77588 commit e2a1c85
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions openstack/tools/charmed_openstack_functest_runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,13 @@ if $MODIFY_BUNDLE_CONSTRAINTS; then
(
[[ -d src ]] && cd src
for f in tests/bundles/*.yaml; do
if [[ $(yq '.applications' $f) = null ]]; then
yq -i '.services.nova-compute.constraints="root-disk=80G mem=8G"' $f
else
yq -i '.applications.nova-compute.constraints="root-disk=80G mem=8G"' $f
# Dont do this if the test does not have nova-compute
if $(grep -q "nova-compute:" $f); then
if [[ $(yq '.applications' $f) = null ]]; then
yq -i '.services.nova-compute.constraints="root-disk=80G mem=8G"' $f
else
yq -i '.applications.nova-compute.constraints="root-disk=80G mem=8G"' $f
fi
fi
done
)
Expand Down

0 comments on commit e2a1c85

Please sign in to comment.