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:
@@ -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")
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user