asyncapi / asyncapi/asyncapi-react

[Test]:Missing unit tests for security and protocol mapping logic in ServerHelpers

Open
#1,218 3 comments 0 reactions 0 assignees View on GitHub
stale
Dominant language
TypeScript
Stars
243
Forks
182
Avg merge
3d 6h
Merged PRs (30d)
11

Description

The helper ServerHelpers contains core decision logic for mapping AsyncAPI security schemes and protocols to user-facing labels and Kafka connection settings, but currently lacks dedicated unit tests.

Affected file (exact path)

'asyncapi-react/library/src/helpers/server.ts'

**Why tests are required**

This file encodes business and protocol semantics, not presentation logic.
Failures here do not throw errors but silently produce incorrect security information in the UI.

Key logic that needs coverage;

Image
Image

Contributor guide

Open the contributing guide

Research direction

Read asyncapi-react/library/src/helpers/server.ts and trace the security-scheme and protocol mapping branches, including the Kafka connection settings logic shown in the issue. Add focused unit tests for each relevant mapping and verify that the expected user-facing labels and settings are produced.

Written by the indexing model from the issue text.

Assessment

Tech stack
kafka, typescript
Domain
backend, security, testing
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.