class_docstr: Tests create user job.
class_docstr_tok: ["Tests","create","user","job","."]
code: def test_default_user_overrides(self):
      docs = render_chart(
          values={
              "webserver": {
                  "defaultUser": {
                      "role": "SomeRole",
                      "username": "jdoe",
                      "email": "jdoe@example.com",
                      "firstName": "John",
                      "lastName": "Doe",
                      "password": "whereisjane?",
                  }
              }
          },
          show_only=["templates/jobs/create-user-job.yaml"],
      )
  
      assert (
          jmespath.search(
              "spec.template.spec.containers[0].command", docs[0]
          )
          is None
      )
      assert [
          "bash",
          "-c",
          'exec \\\nairflow users create "$@"',
          "--",
          "-r",
          "SomeRole",
          "-u",
          "jdoe",
          "-e",
          "jdoe@example.com",
          "-f",
          "John",
          "-l",
          "Doe",
          "-p",
          "whereisjane?",
      ] == jmespath.search(
          "spec.template.spec.containers[0].args", 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 22 for calling the TestCreateUserJob obj's underlying member method code with example usage: obj.test_default_user_overrides() without return types