Skip to content

Commit

Permalink
Revert "feat: acceptance test for sensor group assignment resource"
Browse files Browse the repository at this point in the history
This reverts commit 3871bf0.
  • Loading branch information
1riatsila1 committed Nov 11, 2024
1 parent 3871bf0 commit f88b55e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 163 deletions.
120 changes: 0 additions & 120 deletions test/live/resources/sensor_group_assignment_test.go

This file was deleted.

36 changes: 0 additions & 36 deletions test/live/util/sensor.go

This file was deleted.

10 changes: 3 additions & 7 deletions test/mocked/util/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,18 @@ func GenerateSensorResponseModel(uid string, postfix string) map[string]interfac
}

func GenerateMockedSensorResponseModel(uid string, postfix string) resources.SensorResponseModel {
addressNote := "address_note" + postfix
notes := "notes" + postfix
pcapMode := "light" + postfix

return resources.SensorResponseModel{
UID: uid,
Serial: "serial" + postfix,
Name: "name" + postfix,
ModelNumber: "model_number" + postfix,
WifiMacAddress: "wifi_mac_address" + postfix,
EthernetMacAddress: "ethernet_mac_address" + postfix,
AddressNote: &addressNote,
AddressNote: "address_note" + postfix,

Check failure on line 36 in test/mocked/util/utils.go

View workflow job for this annotation

GitHub Actions / Lint & Test Code

cannot use "address_note" + postfix (value of type string) as *string value in struct literal

Check failure on line 36 in test/mocked/util/utils.go

View workflow job for this annotation

GitHub Actions / Lint & Test Code

cannot use "address_note" + postfix (value of type string) as *string value in struct literal

Check failure on line 36 in test/mocked/util/utils.go

View workflow job for this annotation

GitHub Actions / Lint & Test Code

cannot use "address_note" + postfix (value of type string) as *string value in struct literal
Longitude: 0.0,
Latitude: 0.0,
Notes: &notes,
PCapMode: &pcapMode,
Notes: "notes" + postfix,

Check failure on line 39 in test/mocked/util/utils.go

View workflow job for this annotation

GitHub Actions / Lint & Test Code

cannot use "notes" + postfix (value of type string) as *string value in struct literal

Check failure on line 39 in test/mocked/util/utils.go

View workflow job for this annotation

GitHub Actions / Lint & Test Code

cannot use "notes" + postfix (value of type string) as *string value in struct literal

Check failure on line 39 in test/mocked/util/utils.go

View workflow job for this annotation

GitHub Actions / Lint & Test Code

cannot use "notes" + postfix (value of type string) as *string value in struct literal
PCapMode: "light" + postfix,

Check failure on line 40 in test/mocked/util/utils.go

View workflow job for this annotation

GitHub Actions / Lint & Test Code

cannot use "light" + postfix (value of type string) as *string value in struct literal (typecheck)

Check failure on line 40 in test/mocked/util/utils.go

View workflow job for this annotation

GitHub Actions / Lint & Test Code

cannot use "light" + postfix (value of type string) as *string value in struct literal) (typecheck)
}
}

Expand Down

0 comments on commit f88b55e

Please sign in to comment.