Skip to content

Commit 07a0a44

Browse files
chore(deps): fix alerts reported by dependant bot
Co-authored-by: pranav-new-relic <pnandula@newrelic.com>
1 parent bdc3da7 commit 07a0a44

File tree

12 files changed

+279
-267
lines changed

12 files changed

+279
-267
lines changed

.github/workflows/compile.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Install Go
2121
uses: actions/setup-go@v5
2222
with:
23-
go-version: 1.21.x
23+
go-version: 1.22.x
2424

2525
- name: Add GOBIN to PATH
2626
run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH

.github/workflows/generate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Install Go
2323
uses: actions/setup-go@v5
2424
with:
25-
go-version: 1.21.x
25+
go-version: 1.22.x
2626

2727
- run: echo "${{ inputs.tutoneConfig }}"
2828
shell: bash

.github/workflows/graphql-schema.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Install Go
2525
uses: actions/setup-go@v5
2626
with:
27-
go-version: 1.21.x
27+
go-version: 1.22.x
2828

2929
- name: Checkout code
3030
uses: actions/checkout@v4

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Install Go
1616
uses: actions/setup-go@v5
1717
with:
18-
go-version: 1.21.x
18+
go-version: 1.22.x
1919

2020
- name: Add GOBIN to PATH
2121
run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Install Go
1414
uses: actions/setup-go@v5
1515
with:
16-
go-version: 1.21.x
16+
go-version: 1.22.x
1717

1818
- name: Add GOBIN to PATH
1919
run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
@@ -41,7 +41,7 @@ jobs:
4141
- name: Install Go
4242
uses: actions/setup-go@v5
4343
with:
44-
go-version: 1.21.x
44+
go-version: 1.22.x
4545

4646
- name: Add GOBIN to PATH
4747
run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
@@ -81,7 +81,7 @@ jobs:
8181
- name: Install Go
8282
uses: actions/setup-go@v5
8383
with:
84-
go-version: 1.21.x
84+
go-version: 1.22.x
8585

8686
- name: Add GOBIN to PATH
8787
run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Follow the steps below to add `github.com/newrelic/newrelic-client-go` as a depe
5959
```
6060
module example.com/yourmodule
6161
62-
go 1.21
62+
go 1.22
6363
6464
require (
6565
github.com/newrelic/newrelic-client-go/v2 v2.0.1
@@ -131,7 +131,7 @@ Keep in mind that when you submit your pull request, you'll need to sign the CLA
131131

132132
### Requirements
133133

134-
- Go 1.21+
134+
- Go 1.22+
135135
- GNU Make
136136
- git
137137

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/newrelic/newrelic-client-go/v2
22

3-
go 1.21
3+
go 1.22
44

55
require (
66
github.com/elazarl/goproxy v0.0.0-20231117061959-7cc037d33fb5

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ github.com/hashicorp/go-hclog v0.9.2 h1:CG6TE5H9/JXsFWJCfoIVpKFIkFe6ysEuHirp4DxC
1717
github.com/hashicorp/go-hclog v0.9.2/go.mod h1:5CU+agLiy3J7N7QjHK5d05KxGsuXiQLrjA0H7acj2lQ=
1818
github.com/hashicorp/go-retryablehttp v0.7.0 h1:eu1EI/mbirUgP5C8hVsTNaGZreBDlYiwC1FZWkvQPQ4=
1919
github.com/hashicorp/go-retryablehttp v0.7.0/go.mod h1:vAew36LZh98gCBJNLH42IQ1ER/9wtLZZ8meHqQvEYWY=
20+
github.com/hashicorp/go-retryablehttp v0.7.7 h1:C8hUCYzor8PIfXHa4UrZkU4VvK8o9ISHxT2Q8+VepXU=
21+
github.com/hashicorp/go-retryablehttp v0.7.7/go.mod h1:pkQpWZeYWskR+D1tR2O5OcBFOxfA7DoAO6xtkuQnHTk=
2022
github.com/imdario/mergo v0.3.16 h1:wwQJbIsHYGMUyLSPrEq1CT16AhnhNJQ51+4fdHUnCl4=
2123
github.com/imdario/mergo v0.3.16/go.mod h1:WBLT9ZmE3lPoWsEzCh9LPo3TiwVN+ZKEjmz+hD27ysY=
2224
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=

pkg/entities/entity_integration_test.go

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func TestIntegrationSearchEntities(t *testing.T) {
2020
client := newIntegrationTestClient(t)
2121

2222
params := EntitySearchQueryBuilder{
23-
Name: "Dummy App",
23+
Name: testhelpers.IntegrationTestApplicationEntityNameNew,
2424
}
2525

2626
actual, err := client.GetEntitySearch(
@@ -33,21 +33,6 @@ func TestIntegrationSearchEntities(t *testing.T) {
3333

3434
require.NoError(t, err)
3535
require.Greater(t, len(actual.Results.Entities), 0)
36-
37-
params = EntitySearchQueryBuilder{
38-
Name: "WebPortal",
39-
}
40-
41-
actual, err = client.GetEntitySearch(
42-
EntitySearchOptions{},
43-
"",
44-
params,
45-
[]EntitySearchSortCriteria{},
46-
[]SortCriterionWithDirection{},
47-
)
48-
49-
require.NoError(t, err)
50-
require.Greater(t, len(actual.Results.Entities), 0)
5136
}
5237

5338
func TestIntegrationSearchEntitiesByQuery(t *testing.T) {
@@ -161,7 +146,7 @@ func TestIntegrationGetEntity(t *testing.T) {
161146
assert.Equal(t, 3806526, actual.AccountID)
162147
assert.Equal(t, "APM", actual.Domain)
163148
assert.Equal(t, EntityType("APM_APPLICATION_ENTITY"), actual.EntityType)
164-
assert.Equal(t, testhelpers.IntegrationTestApplicationEntityGUIDNew, actual.GUID)
149+
assert.Equal(t, testhelpers.IntegrationTestApplicationEntityGUIDNew, string(actual.GUID))
165150
assert.Equal(t, "Dummy App Pro Max", actual.Name)
166151
assert.Equal(t, "https://one.newrelic.com/redirect/entity/"+string(testhelpers.IntegrationTestApplicationEntityGUIDNew), actual.Permalink)
167152
assert.Equal(t, true, actual.Reporting)
@@ -264,7 +249,7 @@ func TestIntegrationGetEntity_MobileEntity(t *testing.T) {
264249

265250
func TestIntegrationGetEntity_SyntheticsEntity(t *testing.T) {
266251
t.Parallel()
267-
syntheticsEntityMonitorGUID := "MzgwNjUyNnxTWU5USHxNT05JVE9SfGFmZmM0MTRiLTVhNmMtNGI5NS1iMzYwLThhNmQ2ZTkzOTM3Yw"
252+
syntheticsEntityMonitorGUID := "MzgwNjUyNnxTWU5USHxNT05JVE9SfDVjNDg1NDFiLTg5MzQtNDkzYy1hNTVkLTNjMTgzZWNkN2ZlMg"
268253
client := newIntegrationTestClient(t)
269254

270255
result, err := client.GetEntity(common.EntityGUID(syntheticsEntityMonitorGUID))
@@ -282,10 +267,10 @@ func TestIntegrationGetEntity_SyntheticsEntity(t *testing.T) {
282267
entity := (*result).(*SyntheticMonitorEntity)
283268
require.NotNil(t, entity)
284269

285-
deviceOrientation := FindTagByKey(entity.Tags, "deviceOrientation")
270+
devices := FindTagByKey(entity.Tags, "devices")
286271
runtimeType := FindTagByKey(entity.Tags, "runtimeType")
287272
runtimeTypeVersion := FindTagByKey(entity.Tags, "runtimeTypeVersion")
288-
require.Greater(t, len(deviceOrientation), 0)
273+
require.Greater(t, len(devices), 0)
289274
require.Greater(t, len(runtimeType), 0)
290275
require.Greater(t, len(runtimeTypeVersion), 0)
291276
}

0 commit comments

Comments
 (0)