albundy83 commented on code in PR #52977:
URL: https://github.com/apache/airflow/pull/52977#discussion_r2191106170


##########
helm-tests/tests/helm_tests/security/test_fernetkey_secret.py:
##########
@@ -26,11 +29,24 @@ class TestFernetKeySecret:
     def test_should_add_annotations_to_fernetkey_secret(self):
         docs = render_chart(
             values={
-                "fernetKey": "test",
+                "fernetKey": "0IElBVJmqYRvIXEed4711qEHLkeNl8uJ1q1EmnrKDUg=",

Review Comment:
   I can do like this maybe it's better as described in 
[doc](https://airflow.apache.org/docs/apache-airflow/stable/security/secrets/fernet.html):
   ```python
       def test_should_add_annotations_to_fernetkey_secret(self):
           # Create a Fernet key
           fernet_key = Fernet.generate_key().decode()
           docs = render_chart(
               values={
                   "fernetKey": fernet_key,
                   "fernetKeySecretAnnotations": {"test_annotation": 
"test_annotation_value"},
               },
               show_only=["templates/secrets/fernetkey-secret.yaml"],
           )[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