Skip to content

Commit 42f101e

Browse files
tmshortclaude
andauthored
Add negative profile lookup test case (#2633)
Signed-off-by: Todd Short <tshort@redhat.com> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 8614e3b commit 42f101e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

internal/shared/util/tlsprofiles/tlsprofiles_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,4 +163,6 @@ func TestProfilesMapCompleteness(t *testing.T) {
163163
require.NotNilf(t, p, "profile %q must not be nil", name)
164164
}
165165
require.GreaterOrEqual(t, len(profiles), 4, "profiles map must contain at least the required built-in profiles")
166+
_, err := findTLSProfile(tlsProfileName("does-not-exist"))
167+
require.Error(t, err, "looking up a non-existent profile must return an error")
166168
}

0 commit comments

Comments
 (0)