Skip to content

Commit 4c6b47a

Browse files
committed
chore: tests for "disable integrations" changes
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
1 parent ea125f1 commit 4c6b47a

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
@@ -1015,6 +1015,11 @@ func TestUIConfig(t *testing.T) {
10151015
workatoWebHookURL, ok := response["workatoWebHookURL"].(string)
10161016
require.True(t, ok)
10171017
assert.Equal(t, "https://webhooks.testwebhook", workatoWebHookURL)
1018+
1019+
// verify that disabledIntegrations is present and is an array
1020+
disabledIntegrations, ok := response["disabledIntegrations"]
1021+
require.True(t, ok, "disabledIntegrations field should be present in uiconfig response")
1022+
require.IsType(t, []interface{}{}, disabledIntegrations, "disabledIntegrations should be an array")
10181023
})
10191024
}
10201025

0 commit comments

Comments
 (0)