kd2718 commented on a change in pull request #19036:
URL: https://github.com/apache/airflow/pull/19036#discussion_r747674223
##########
File path: tests/kubernetes/test_pod_generator.py
##########
@@ -684,7 +684,7 @@ def test_pod_name_is_valid(self, pod_id,
expected_starts_with):
len(name) <= 253 and all(ch.lower() == ch for ch in name) and
re.match(regex, name)
), "pod_id is invalid - fails allowed regex check"
- assert name.rsplit(".")[0] == expected_starts_with
+ assert name[:-33] == expected_starts_with
Review comment:
`rsplit("-",1)[0]` works. Thanks for the tip. I am not as familiar with
`rsplit`
--
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]