shaealh commented on code in PR #69900:
URL: https://github.com/apache/airflow/pull/69900#discussion_r3600319696


##########
providers/docker/tests/unit/docker/operators/test_docker_swarm.py:
##########
@@ -27,10 +28,13 @@
 from docker.errors import APIError
 
 from airflow.providers.common.compat.sdk import AirflowException
-from airflow.providers.docker.operators.docker_swarm import DockerSwarmOperator
+from airflow.providers.docker.operators.docker_swarm import 
DockerSwarmOperator, _generate_service_name
 
 
 class TestDockerSwarmOperator:
+    def test_generate_service_name(self):
+        assert re.fullmatch(r"custom-prefix-[A-Za-z0-9]{8}", 
_generate_service_name("custom-prefix"))

Review Comment:
   Thank you @amoghrajesh! Done ✅ 



-- 
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