Skip to content

Add signal tests to test-server#4653

Merged
lukasIO merged 2 commits into
masterfrom
lukas/signal-tests
Jul 9, 2026
Merged

Add signal tests to test-server#4653
lukasIO merged 2 commits into
masterfrom
lukas/signal-tests

Conversation

@lukasIO

@lukasIO lukasIO commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Note

closely guided LLM output ahead

Allows for clients to test signal specific connection paths and failures against the test-server. Participant attribute with key lk.mock decides on which path to take.

Let me know if there are any scenarios missing that might be worth adding.
Not sure if the signal_test.go file is particularly useful, happy to remove if you think there's no additional value in there.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

@boks1971 boks1971 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think signal test is fine.

Comment thread cmd/test-server/README.md Outdated
Comment thread cmd/test-server/README.md Outdated
Comment thread cmd/test-server/signal.go

func isValidatePath(path string) bool {
return path == "/rtc/validate" || path == "/rtc/v1/validate"
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe these can use helpers from pkg/service/utils.go. Would be good to have it all in one place for these paths.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

main reason I didn't do it from the start was that the mock currently doesn't depend on the rtc package and we'd be pulling in a bunch of dependencies "just" for the helpers.

Generally agree though that it would be nicer if they were reused.
I'll change it to reuse them from service/utils.go. Let me know if I should extract those helpers into their own package that doesn't pull in the rtc deps

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is okay to leave this as strings for now. Yeah, don't want to grow the dependency tree. We can address this later.

@lukasIO lukasIO changed the title add signal tests to test-server Add signal tests to test-server Jul 9, 2026
@lukasIO lukasIO merged commit aff752a into master Jul 9, 2026
6 checks passed
@lukasIO lukasIO deleted the lukas/signal-tests branch July 9, 2026 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants