Description: Removed RSA1_5 testing
 jwcrypto deprecated this protocol, as it's considered unsafe. So, let's
 stop testing it.
Author: Thomas Goirand <zigo@debian.org>
Forwarded: no
Last-Update: 2021-08-25

--- websockify-0.10.0+dfsg1.orig/tests/test_token_plugins.py
+++ websockify-0.10.0+dfsg1/tests/test_token_plugins.py
@@ -156,24 +156,3 @@ class JWSTokenTestCase(unittest.TestCase
 
         self.assertIsNone(result)
 
-    def test_asymmetric_jwe_token_plugin(self):
-        plugin = JWTTokenApi("./tests/fixtures/private.pem")
-
-        private_key = jwt.JWK()
-        public_key = jwt.JWK()
-        private_key_data = open("./tests/fixtures/private.pem", "rb").read()
-        public_key_data = open("./tests/fixtures/public.pem", "rb").read()
-        private_key.import_from_pem(private_key_data)
-        public_key.import_from_pem(public_key_data)
-        jwt_token = jwt.JWT({"alg": "RS256"}, {'host': "remote_host", 'port': "remote_port"})
-        jwt_token.make_signed_token(private_key)
-        jwe_token = jwt.JWT(header={"alg": "RSA1_5", "enc": "A256CBC-HS512"},
-                    claims=jwt_token.serialize())
-        jwe_token.make_encrypted_token(public_key)
-
-        result = plugin.lookup(jwt_token.serialize())
-
-        self.assertIsNotNone(result)
-        self.assertEqual(result[0], "remote_host")
-        self.assertEqual(result[1], "remote_port")
-
