Skip to content

Commit

Permalink
add more details in the openstack test to explain -gc
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiocazzolato committed Mar 19, 2024
1 parent 5f673c8 commit 755dc0e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/openstack/task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,12 @@ execute: |
OS_IDENTITY_API_VERSION=2 spread openstack:cirros-64: -v -reuse -resend &> task.out || true
grep -E 'cannot authenticate:.*returned unexpected status: 404' task.out
# trigger 1 instance and check it can be listed and the garbage collect works
# Check garbage collection works
# Start 1 instace (halt-timeout for openstack backend in spread.yaml is 1s)
# Checks that the halt-timeout property set for the instance (through openstack command)
# overrides the halt-timeout property set for the backend in the spread.yaml
# Remove the halt-timeout property set for the instance and check the instance
# is removed when we do `spread -gc`
test "0" = "$(spread -gc | grep -c "Checking openstack instance")"
spread openstack:cirros-64: &>/dev/null &
Expand Down

0 comments on commit 755dc0e

Please sign in to comment.