jedcunningham commented on code in PR #25484:
URL: https://github.com/apache/airflow/pull/25484#discussion_r940931232


##########
tests/charts/test_webserver.py:
##########
@@ -216,6 +216,18 @@ def test_should_add_extra_init_containers(self):
             "image": "test-registry/test-repo:test-tag",
         } == jmespath.search("spec.template.spec.initContainers[-1]", docs[0])
 
+    def test_webserver_host_aliases(self):
+        docs = render_chart(
+            values={
+                "webserver": {
+                    "hostAliases": [{"ip": "127.0.0.2", "hostnames": 
["test.hostname"]}],
+                },
+            },
+            show_only=["templates/webserver/webserver-deployment.yaml"],
+        )
+
+        assert "127.0.0.2" == 
jmespath.search("spec.template.spec.hostAliases[0].ip", docs[0])
+        assert "test.hostname" == 
jmespath.search("spec.template.spec.hostAliases[0].hostnames[0]", docs[0])

Review Comment:
   ```suggestion
           assert "test.hostname" == 
jmespath.search("spec.template.spec.hostAliases[0].hostnames[0]", docs[0])
   
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to