From fce53f817438a72bdf205d2acad51b6eb29b72ef Mon Sep 17 00:00:00 2001 From: Murad Biashimov Date: Tue, 17 Sep 2024 10:06:32 +0300 Subject: [PATCH] fix(tests): integration_type type mismatch --- tests/serviceintegration_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/serviceintegration_test.go b/tests/serviceintegration_test.go index 195989ee..16a37d08 100644 --- a/tests/serviceintegration_test.go +++ b/tests/serviceintegration_test.go @@ -76,7 +76,7 @@ func TestServiceIntegrationClickhousePostgreSQL(t *testing.T) { siAvn, err := avnGen.ServiceIntegrationGet(ctx, cfg.Project, si.Status.ID) require.NoError(t, err) assert.Equal(t, "clickhouse_postgresql", siAvn.IntegrationType) - assert.Equal(t, siAvn.IntegrationType, si.Spec.IntegrationType) + assert.EqualValues(t, siAvn.IntegrationType, si.Spec.IntegrationType) assert.Equal(t, pgName, siAvn.SourceService) assert.Equal(t, chName, *siAvn.DestService) assert.True(t, siAvn.Active) @@ -143,7 +143,7 @@ func TestServiceIntegrationKafkaLogs(t *testing.T) { siAvn, err := avnGen.ServiceIntegrationGet(ctx, cfg.Project, si.Status.ID) require.NoError(t, err) assert.Equal(t, "kafka_logs", siAvn.IntegrationType) - assert.Equal(t, siAvn.IntegrationType, si.Spec.IntegrationType) + assert.EqualValues(t, siAvn.IntegrationType, si.Spec.IntegrationType) assert.Equal(t, ksName, siAvn.SourceService) assert.Equal(t, ksName, *siAvn.DestService) assert.True(t, siAvn.Active) @@ -214,7 +214,7 @@ func TestServiceIntegrationKafkaConnect(t *testing.T) { siAvn, err := avnGen.ServiceIntegrationGet(ctx, cfg.Project, si.Status.ID) require.NoError(t, err) assert.Equal(t, "kafka_connect", siAvn.IntegrationType) - assert.Equal(t, siAvn.IntegrationType, si.Spec.IntegrationType) + assert.EqualValues(t, siAvn.IntegrationType, si.Spec.IntegrationType) assert.Equal(t, ksName, siAvn.SourceService) assert.Equal(t, kcName, *siAvn.DestService) assert.True(t, siAvn.Active) @@ -278,7 +278,7 @@ func TestServiceIntegrationDatadog(t *testing.T) { siAvn, err := avnGen.ServiceIntegrationGet(ctx, cfg.Project, si.Status.ID) require.NoError(t, err) assert.Equal(t, "datadog", siAvn.IntegrationType) - assert.Equal(t, siAvn.IntegrationType, si.Spec.IntegrationType) + assert.EqualValues(t, siAvn.IntegrationType, si.Spec.IntegrationType) assert.True(t, siAvn.Active) assert.True(t, siAvn.Enabled)