You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/06/02 09:26:53 UTC

[GitHub] [airflow] feluelle commented on a change in pull request #9067: [AIRFLOW-8608] Make conn_id unique in Connections table

feluelle commented on a change in pull request #9067:
URL: https://github.com/apache/airflow/pull/9067#discussion_r433742008



##########
File path: tests/secrets/test_secrets_backends.py
##########
@@ -70,20 +69,6 @@ def test_connection_env_secrets_backend(self):
         # we could make this more precise by defining __eq__ method for Connection
         self.assertEqual(sample_conn_1.host.lower(), conn.host)
 
-    def test_connection_metastore_secrets_backend(self):
-        sample_conn_2a = SampleConn("sample_2", "A")
-        sample_conn_2b = SampleConn("sample_2", "B")
-        with create_session() as session:
-            session.add(sample_conn_2a.conn)
-            session.add(sample_conn_2b.conn)
-            session.commit()
-        metastore_backend = MetastoreBackend()
-        conn_list = metastore_backend.get_connections("sample_2")
-        host_list = {x.host for x in conn_list}
-        self.assertEqual(
-            {sample_conn_2a.host.lower(), sample_conn_2b.host.lower()}, set(host_list)
-        )
-

Review comment:
       I think we still need this test but maybe modify it to test one connection instead of two.




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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org