Skip to content

Commit 9b312d2

Browse files
Use public URL for webhook e2e tests (#145)
* Use public URL for webhook e2e tests * Align destination list e2e DST assertion
1 parent 74cb73c commit 9b312d2

6 files changed

Lines changed: 9 additions & 9 deletions

File tree

test_utils/test_utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ func DeleteWebhook(t *testing.T, id string) {
713713
func CreateWebhookAccount(t *testing.T) string {
714714
t.Helper()
715715
created, err := Client.NewWebhookAccountCreate().
716-
Url("https://localhost:12345").
716+
Url("https://example.com").
717717
Secret("my_secret").
718718
Active(false).
719719
Events([]string{"sync_start", "sync_end"}).

tests/e2e/destinations_list_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func TestNewDestinationsListE2E(t *testing.T) {
2424
testutils.AssertEqual(t, result.Data.Items[0].Service, "snowflake")
2525
testutils.AssertEqual(t, result.Data.Items[0].Region, "GCP_US_EAST4")
2626
testutils.AssertEqual(t, result.Data.Items[0].TimeZoneOffset, "+10")
27-
testutils.AssertEqual(t, result.Data.Items[0].DaylightSavingTimeEnabled, false)
27+
testutils.AssertEqual(t, result.Data.Items[0].DaylightSavingTimeEnabled, true)
2828
testutils.AssertEmpty(t, result.Data.Items[0].PrivateLinkId)
2929
testutils.AssertEmpty(t, result.Data.Items[0].ProxyAgentId)
3030
testutils.AssertEmpty(t, result.Data.Items[0].HybridDeploymentAgentId)

tests/e2e/webhook_account_create_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99

1010
func TestNewWebhookAccountCreateE2E(t *testing.T) {
1111
created, err := testutils.Client.NewWebhookAccountCreate().
12-
Url("https://localhost:12345").
12+
Url("https://example.com").
1313
Secret("my_secret").
1414
Active(false).
1515
Events([]string{"sync_start", "sync_end"}).
@@ -29,7 +29,7 @@ func TestNewWebhookAccountCreateE2E(t *testing.T) {
2929
testutils.AssertEqual(t, created.Data.Type, "account")
3030
testutils.AssertEqual(t, created.Data.Active, false)
3131
testutils.AssertEqual(t, created.Data.Secret, "******")
32-
testutils.AssertEqual(t, created.Data.Url, "https://localhost:12345")
32+
testutils.AssertEqual(t, created.Data.Url, "https://example.com")
3333
testutils.AssertEqual(t, created.Data.Events, []string{"sync_start", "sync_end"})
3434

3535
t.Cleanup(func() { testutils.DeleteWebhook(t, created.Data.Id) })

tests/e2e/webhook_details_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func TestWebhookDetailsE2E(t *testing.T) {
2323
testutils.AssertEmpty(t, result.Data.GroupId)
2424
testutils.AssertEqual(t, result.Data.Type, "account")
2525
testutils.AssertEqual(t, result.Data.Secret, "******")
26-
testutils.AssertEqual(t, result.Data.Url, "https://localhost:12345")
26+
testutils.AssertEqual(t, result.Data.Url, "https://example.com")
2727
testutils.AssertEqual(t, result.Data.Events, []string{"sync_start", "sync_end"})
2828
testutils.AssertEqual(t, result.Data.Active, false)
2929

tests/e2e/webhook_group_create_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99

1010
func TestNewWebhookGroupCreateE2E(t *testing.T) {
1111
created, err := testutils.Client.NewWebhookGroupCreate().
12-
Url("https://localhost:12345").
12+
Url("https://example.com").
1313
Secret("my_secret").
1414
GroupId(testutils.PredefinedGroupId).
1515
Active(false).
@@ -31,7 +31,7 @@ func TestNewWebhookGroupCreateE2E(t *testing.T) {
3131
testutils.AssertEqual(t, created.Data.Active, false)
3232
testutils.AssertEqual(t, created.Data.GroupId, testutils.PredefinedGroupId)
3333
testutils.AssertEqual(t, created.Data.Secret, "******")
34-
testutils.AssertEqual(t, created.Data.Url, "https://localhost:12345")
34+
testutils.AssertEqual(t, created.Data.Url, "https://example.com")
3535
testutils.AssertEqual(t, created.Data.Events, []string{"sync_start", "sync_end"})
3636

3737
t.Cleanup(func() { testutils.DeleteWebhook(t, created.Data.Id) })

tests/e2e/webhook_update_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ func TestWebhookUpdateE2E(t *testing.T) {
1212

1313
updated, err := testutils.Client.NewWebhookUpdate().
1414
WebhookId(webhookId).
15-
Url("https://localhost:12345").
15+
Url("https://example.com").
1616
Secret("my_secret").
1717
Active(false).
1818
Events([]string{"sync_start", "sync_end"}).
@@ -31,7 +31,7 @@ func TestWebhookUpdateE2E(t *testing.T) {
3131
testutils.AssertNotEmpty(t, updated.Data.Type)
3232
testutils.AssertEqual(t, updated.Data.Active, false)
3333
testutils.AssertEqual(t, updated.Data.Secret, "******")
34-
testutils.AssertEqual(t, updated.Data.Url, "https://localhost:12345")
34+
testutils.AssertEqual(t, updated.Data.Url, "https://example.com")
3535
testutils.AssertEqual(t, updated.Data.Events, []string{"sync_start", "sync_end"})
3636

3737
t.Cleanup(func() { testutils.DeleteWebhook(t, webhookId) })

0 commit comments

Comments
 (0)