@@ -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
5338func 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
265250func 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