def test_mount_airflow_cfg(self):
    docs = render_chart(values={}, show_only=['templates/pod-template-file.yaml'], chart_dir=self.temp_chart_dir)
    assert re.search('Pod', docs[0]['kind'])
    assert ({'configMap': {'name': 'RELEASE-NAME-airflow-config'}, 'name': 'config'} == jmespath.search('spec.volumes[1]', docs[0]))
    assert ({'name': 'config', 'mountPath': '/opt/airflow/airflow.cfg', 'subPath': 'airflow.cfg', 'readOnly': True} == jmespath.search('spec.containers[0].volumeMounts[1]', docs[0]))
def test_mount_airflow_cfg(self):
    docs = render_chart(values={}, show_only=['templates/pod-template-file.yaml'], chart_dir=self.temp_chart_dir)
    assert re.search('Pod', docs[0]['kind'])
    assert ({'configMap': {'name': 'RELEASE-NAME-airflow-config'}, 'name': 'config'} == jmespath.search('spec.volumes[1]', docs[0]))
    assert ({'name': 'config', 'mountPath': '/opt/airflow/airflow.cfg', 'subPath': 'airflow.cfg', 'readOnly': True} == jmespath.search('spec.containers[0].volumeMounts[1]', docs[0]))