From ebd39070a74760358ebef66bff94a788f229c429 Mon Sep 17 00:00:00 2001 From: vlastahajek <29980246+vlastahajek@users.noreply.github.com> Date: Wed, 7 Aug 2024 15:15:18 +0200 Subject: [PATCH] chore: attempt 2 to fix build --- CHANGELOG.md | 2 +- api/checks_test.go | 11 +++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 83a036b..304cf57 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## Unreleased +## 2.14.0 [Unreleased] ### Fixes - [#403](https://github.com/influxdata/influxdb-client-go/pull/403) Custom checks de/serialization to allow calling server Check API diff --git a/api/checks_test.go b/api/checks_test.go index 1607f0f..6c2240d 100644 --- a/api/checks_test.go +++ b/api/checks_test.go @@ -118,8 +118,7 @@ func TestCreateGetDeleteDeadmanCheck(t *testing.T) { require.Nil(t, err) dc := validateDC(t, nc, *org.Id) - checkId := dc.Id - gp := domain.GetChecksIDAllParams{CheckID: *checkId} + gp := domain.GetChecksIDAllParams{CheckID: *dc.Id} c, err := client.APIClient().GetChecksID(context.Background(), &gp) require.Nil(t, err) @@ -306,13 +305,13 @@ func TestGetChecks(t *testing.T) { assert.Nil(t, checks.Checks) } -func validateDC(t *testing.T, nc domain.Check, orgId string) *domain.DeadmanCheck { +func validateDC(t *testing.T, nc domain.Check, orgID string) *domain.DeadmanCheck { require.NotNil(t, nc) require.Equal(t, "deadman", nc.Type()) dc := nc.(*domain.DeadmanCheck) require.NotNil(t, dc) assert.Equal(t, "DeadmanCheck test", dc.Name) - assert.Equal(t, orgId, dc.OrgID) + assert.Equal(t, orgID, dc.OrgID) assert.Equal(t, msg, *dc.StatusMessageTemplate) assert.Equal(t, flux, *dc.Query.Text) assert.Equal(t, every, *dc.Every) @@ -324,13 +323,13 @@ func validateDC(t *testing.T, nc domain.Check, orgId string) *domain.DeadmanChec return dc } -func validateTC(t *testing.T, check domain.Check, orgId string) *domain.ThresholdCheck { +func validateTC(t *testing.T, check domain.Check, orgID string) *domain.ThresholdCheck { require.NotNil(t, check) require.Equal(t, "threshold", check.Type()) tc := check.(*domain.ThresholdCheck) require.NotNil(t, tc) assert.Equal(t, "ThresholdCheck test", tc.Name) - assert.Equal(t, orgId, tc.OrgID) + assert.Equal(t, orgID, tc.OrgID) assert.Equal(t, msg, *tc.StatusMessageTemplate) assert.Equal(t, flux, *tc.Query.Text) assert.Equal(t, every, *tc.Every)