class_docstr: Tests webserver service.
class_docstr_tok: ["Tests","webserver","service","."]
code: def test_overrides(self):
      docs = render_chart(
          values={
              "ports": {"airflowUI": 9000},
              "webserver": {
                  "service": {
                      "type": "LoadBalancer",
                      "loadBalancerIP": "127.0.0.1",
                      "annotations": {"foo": "bar"},
                      "loadBalancerSourceRanges": ["10.123.0.0/16"],
                  }
              },
          },
          show_only=["templates/webserver/webserver-service.yaml"],
      )
  
      assert {"foo": "bar"} == jmespath.search(
          "metadata.annotations", docs[0]
      )
      assert "LoadBalancer" == jmespath.search("spec.type", docs[0])
      assert {"name": "airflow-ui", "port": 9000} in jmespath.search(
          "spec.ports", docs[0]
      )
      assert "127.0.0.1" == jmespath.search(
          "spec.loadBalancerIP", docs[0]
      )
      assert ["10.123.0.0/16"] == jmespath.search(
          "spec.loadBalancerSourceRanges", docs[0]
      )
  
imports: from __future__ import annotations
  import jmespath
  import pytest
  from tests.charts.helm_template_generator import render_chart
label_desc: Use image node_id 2 for calling the TestWebserverService obj's underlying member method code with example usage: obj.test_overrides() without return types