Skip to content

Added GetSslProfileName Unit Test#2476

Merged
evanwang9x merged 1 commit into
skupperproject:mainfrom
evanwang9x:Evan/Onboarding-Unit-Tests
Jun 4, 2026
Merged

Added GetSslProfileName Unit Test#2476
evanwang9x merged 1 commit into
skupperproject:mainfrom
evanwang9x:Evan/Onboarding-Unit-Tests

Conversation

@evanwang9x

Copy link
Copy Markdown
Contributor

Fixes #2475

@evanwang9x evanwang9x requested a review from AryanP123 June 3, 2026 19:45
@evanwang9x evanwang9x force-pushed the Evan/Onboarding-Unit-Tests branch from bcd2201 to 098703b Compare June 3, 2026 20:05
Comment thread internal/site/connector_test.go Outdated
t.Run(tt.name, func(t *testing.T) {
result := GetSslProfileName(tt.tlsCredentials, tt.useClientCert)
if result != tt.expected {
t.Errorf("got %q, want %q", result, tt.expected)

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.

Consider using assert.Equal(t, tt.expected, result) here instead of t.Errorf , matches the style of the existing test in this file. Other than that LGTM.

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.

Alright I changed it to use assert.Equal

@c-kruse c-kruse 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.

Thank you @evanwang9x! Test looks good.

A more bookkeeping related thing we like to think about: The PR title and description are what tends to get recorded in our git history when we squash and merge it into main. For something small like this a more descriptive title would be plenty! We don't have codified commit message style guidance, but a quick glance here https://github.com/skupperproject/skupper/commits/main/ or git log main may help you get a feel for it.

@evanwang9x evanwang9x changed the title Added the unit test Added GetSslProfileName Unit Test Jun 4, 2026
@evanwang9x evanwang9x force-pushed the Evan/Onboarding-Unit-Tests branch from 098703b to 0b1875e Compare June 4, 2026 17:53
@evanwang9x evanwang9x merged commit 4035c0e into skupperproject:main Jun 4, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add unit tests for GetSslProfileName in connector TLS config

3 participants