Skip to content

Commit eb9c85e

Browse files
committed
[bug] autoscaling tests only run when autoscaling is enabled in the oscp
1 parent e0d6d01 commit eb9c85e

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

ci/run_autoscaling_tests.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,18 @@
2222
ansible.builtin.meta: end_play
2323
when: not run_autoscaling_test | default(true) | bool
2424

25-
- name: "Get OpenStackControlPlane autoscaling status"
26-
ansible.builtin.command: >
27-
oc get oscp -n openstack -o jsonpath='{.items[0].spec.telemetry.template.autoscaling.enabled}'
28-
register: autoscaling_status
29-
changed_when: false
25+
# This won't run if you're using a custom telemetry resource.
26+
# Using a custom telemetry resource is a reasonable usecase during
27+
# development, and being able to run autoscaling tests in expected in
28+
# this scenario.
29+
# The options for this are:
30+
# Check that there is an autoscaling resource
31+
# check that there is a telemetry resource with autoscaling enabled
32+
# - name: "Get OpenStackControlPlane autoscaling status"
33+
# ansible.builtin.command: >
34+
# oc get oscp -n openstack -o jsonpath='{.items[0].spec.telemetry.template.autoscaling.enabled}'
35+
# register: autoscaling_status
36+
# changed_when: false
3037

3138
- name: "Set fact if autoscaling is enabled"
3239
ansible.builtin.set_fact:

0 commit comments

Comments
 (0)