class_docstr: Tests scheduler.
class_docstr_tok: ["Tests","scheduler","."]
code: def test_scheduler_pod_hostaliases(self):
      docs = render_chart(
          values={
              "scheduler": {
                  "hostAliases": [
                      {"ip": "127.0.0.1", "hostnames": ["foo.local"]}
                  ],
              },
          },
          show_only=["templates/scheduler/scheduler-deployment.yaml"],
      )
  
      assert "127.0.0.1" == jmespath.search(
          "spec.template.spec.hostAliases[0].ip", docs[0]
      )
      assert "foo.local" == jmespath.search(
          "spec.template.spec.hostAliases[0].hostnames[0]", docs[0]
      )
  
imports: from __future__ import annotations
  import jmespath
  import pytest
  from tests.charts.helm_template_generator import render_chart
  from tests.charts.log_groomer import LogGroomerTestBase
label_desc: Use image node_id 36 for calling the TestScheduler obj's underlying member method code with example usage: obj.test_scheduler_pod_hostaliases() without return types