class_docstr: Tests webserver deployment.
class_docstr_tok: ["Tests","webserver","deployment","."]
code: def test_should_use_templated_base_url_for_probes(self):
      docs = render_chart(
          values={
              "config": {
                  "webserver": {
                      "base_url": "https://{{ .Release.Name }}.com:21222/mypath/{{ .Release.Name }}/path"
                  },
              }
          },
          show_only=["templates/webserver/webserver-deployment.yaml"],
      )
      container = jmespath.search(
          "spec.template.spec.containers[0]", docs[0]
      )
  
      assert {
          "name": "Host",
          "value": "release-name.com",
      } in jmespath.search(
          "livenessProbe.httpGet.httpHeaders", container
      )
      assert {
          "name": "Host",
          "value": "release-name.com",
      } in jmespath.search(
          "readinessProbe.httpGet.httpHeaders", container
      )
      assert {
          "name": "Host",
          "value": "release-name.com",
      } in jmespath.search(
          "startupProbe.httpGet.httpHeaders", container
      )
      assert "/mypath/release-name/path/health" == jmespath.search(
          "livenessProbe.httpGet.path", container
      )
      assert "/mypath/release-name/path/health" == jmespath.search(
          "readinessProbe.httpGet.path", container
      )
      assert "/mypath/release-name/path/health" == jmespath.search(
          "startupProbe.httpGet.path", container
      )
  
imports: from __future__ import annotations
  import jmespath
  import pytest
  from tests.charts.helm_template_generator import render_chart
label_desc: Use image node_id 5 for calling the TestWebserverDeployment obj's underlying member method code with example usage: obj.test_should_use_templated_base_url_for_probes() without return types