diff --git a/tests/asyncapi/confluent/test_security.py b/tests/asyncapi/confluent/test_security.py index 0621cbf756..915621ab84 100644 --- a/tests/asyncapi/confluent/test_security.py +++ b/tests/asyncapi/confluent/test_security.py @@ -192,7 +192,7 @@ async def test_topic(msg: str) -> str: {"oauthbearer": []} ] sasl_oauthbearer_security_schema["components"]["securitySchemes"] = { - "oauthbearer": {"type": "oauthBearer"} + "oauthbearer": {"type": "oauth2", "$ref": ""} } assert schema == sasl_oauthbearer_security_schema diff --git a/tests/asyncapi/kafka/test_security.py b/tests/asyncapi/kafka/test_security.py index 3201bf899c..62e30e9ccf 100644 --- a/tests/asyncapi/kafka/test_security.py +++ b/tests/asyncapi/kafka/test_security.py @@ -192,7 +192,7 @@ async def test_topic(msg: str) -> str: {"oauthbearer": []} ] sasl_oauthbearer_security_schema["components"]["securitySchemes"] = { - "oauthbearer": {"type": "oauthBearer"} + "oauthbearer": {"type": "oauth2", "$ref": ""} } assert schema == sasl_oauthbearer_security_schema