class_docstr: Tests keda.
class_docstr_tok: ["Tests","keda","."]
docstr: Verify keda advanced config.
docstr_tok: ["Verify","keda","advanced","config","."]
code: def test_keda_advanced(self, executor):
      """Verify keda advanced config."""
      expected_advanced = {
          "horizontalPodAutoscalerConfig": {
              "behavior": {
                  "scaleDown": {
                      "stabilizationWindowSeconds": 300,
                      "policies": [
                          {
                              "type": "Percent",
                              "value": 100,
                              "periodSeconds": 15,
                          }
                      ],
                  }
              }
          }
      }
      docs = render_chart(
          values={
              "workers": {
                  "keda": {
                      "enabled": True,
                      "advanced": expected_advanced,
                  },
              },
              "executor": executor,
          },
          show_only=["templates/workers/worker-kedaautoscaler.yaml"],
      )
      assert (
          jmespath.search("spec.advanced", docs[0]) == expected_advanced
      )
  
file_path: airflow/helm_tests/other/test_keda.py
imports: from __future__ import annotations
  import jmespath
  import pytest
  from tests.charts.helm_template_generator import render_chart
label_desc: Use image node_id 3 for calling the TestKeda obj's underlying member method code with example usage: obj.test_keda_advanced(executor) without return types