Fix connector provider infos e2e test

Skipping unconnectable providers hides OAuth-only providers when the
deployment has no OAuth credentials configured, which is the case in
e2e. The test asserted SLACK (OAuth-only) is present, so it now fails.
Assert on API-key providers instead, which are connectable regardless
of OAuth configuration.

Signed-off-by: Aurélien Sibiril <81782+aureliensibiril@users.noreply.github.com>
This commit is contained in:
Aurélien Sibiril
2026-05-26 19:03:12 +02:00
parent 9b1034e361
commit e205ff4114

View File

@@ -83,7 +83,11 @@ func TestConnectorProviderInfos(t *testing.T) {
providerNames[info.Provider] = true
}
assert.True(t, providerNames["SLACK"], "expected SLACK provider to be present")
// OAuth-only providers (e.g. SLACK) are hidden when the deployment
// has no OAuth credentials configured, as is the case in e2e.
// Assert on providers that support API keys, which are connectable
// regardless of OAuth configuration.
assert.True(t, providerNames["BREX"], "expected BREX provider to be present")
assert.True(t, providerNames["HUBSPOT"], "expected HUBSPOT provider to be present")
})