nsAstro commented on code in PR #29732:
URL: https://github.com/apache/airflow/pull/29732#discussion_r1125238948
##########
tests/providers/amazon/aws/hooks/test_emr.py:
##########
@@ -191,6 +197,9 @@ def test_get_cluster_id_by_name(self):
assert no_match is None
+ with pytest.raises(AirflowException):
+ hook.get_cluster_id_by_name("test_cluster0", ["RUNNING",
"WAITING", "BOOTSTRAPPING"])
+
Review Comment:
I'm not sure if list-clusters API on EMR is ordered at all, so I don't know
if there's a way to guarantee that a given test-case cluster shows up on the
second page only. If there's a way to guarantee this, I can add that as a test.
I'll poke through the AWS docs to see if they provide some sort of ordering on
how they list clusters to see if there's a deterministic test case I can write.
--
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]