Skip to content

Commit 86a74db

Browse files
chore: tests for "disable integrations" changes (#1274)
The "disable integrations" feature allows disabling integrations by changing the "ToolchainConfig" resource. The goal of this test is to verify that the CRD key is there, and that it is empty, since the E2E tests should not have any integrations disabled. SANDBOX-1769 Co-authored-by: Rafaela Maria Soares da Silva <rsoaresd@redhat.com>
1 parent f67a1a3 commit 86a74db

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

test/e2e/parallel/registration_service_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -995,6 +995,11 @@ func TestUIConfig(t *testing.T) {
995995
workatoWebHookURL, ok := response["workatoWebHookURL"].(string)
996996
require.True(t, ok)
997997
assert.Equal(t, "https://webhooks.testwebhook", workatoWebHookURL)
998+
999+
// verify that disabledIntegrations is present and is an array
1000+
disabledIntegrations, ok := response["disabledIntegrations"]
1001+
require.True(t, ok, "disabledIntegrations field should be present in uiconfig response")
1002+
require.IsType(t, []interface{}{}, disabledIntegrations, "disabledIntegrations should be an array")
9981003
})
9991004
}
10001005

0 commit comments

Comments
 (0)