Skip to content

Commit e21f0a7

Browse files
committed
Condition nova ironic test on prelaunch_test_instance
Currently nova_adoption is failing when the pre_launch.ironic script is not executed by the development_environment role. Let's use the same conditions, e.g. only run that test if the pre_launch script wich set's up required flavors, images etc. Jira: OSPRH-20021
1 parent cbac00e commit e21f0a7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/roles/nova_adoption/tasks/nova_ironic.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
file: check_endpoints.yaml
2525

2626
- name: Provision new instance on ironic
27+
when:
28+
- prelaunch_test_instance|bool
29+
- "'pre_launch_ironic.bash' in prelaunch_test_instance_scripts"
2730
ansible.builtin.shell: |
2831
{{ shell_header }}
2932
{{ oc_header }}

0 commit comments

Comments
 (0)