class_docstr: Tests webserver deployment.
class_docstr_tok: ["Tests","webserver","deployment","."]
code: def test_revision_history_limit(
      self, revision_history_limit, global_revision_history_limit
  ):
      values = {"webserver": {}}
      if revision_history_limit:
          values["webserver"][
              "revisionHistoryLimit"
          ] = revision_history_limit
      if global_revision_history_limit:
          values["revisionHistoryLimit"] = global_revision_history_limit
      docs = render_chart(
          values=values,
          show_only=["templates/webserver/webserver-deployment.yaml"],
      )
      expected_result = (
          revision_history_limit
          if revision_history_limit
          else global_revision_history_limit
      )
      assert (
          jmespath.search("spec.revisionHistoryLimit", docs[0])
          == expected_result
      )
  
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 TestWebserverDeployment obj's underlying member method code with example usage: obj.test_revision_history_limit(revision_history_limit, global_revision_history_limit) without return types