Skip to content

Commit

Permalink
some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
1riatsila1 committed Nov 11, 2024
1 parent 0e2e3af commit 08f7e41
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
5 changes: 5 additions & 0 deletions test/live/config/config.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
package config

// These constants are from the customer:
// Configuration-API Acceptance Testing (844457745a1111ef880836000a52e73e)
// And therefore the client_id and client_secret used for the acceptance tests must match this
// customer.
const WiredNetworkUid = "ethernet-0ee5b46c2ef0"
const WiredNetworkName = "tf-provider-acceptance-tests-ethernet-0"
const WirelessNetworkUid = "ssid-bf704ff37dc0"
const WirelessNetworkName = "tf-provider-acceptance-tests-ssid-0"
const ServiceTestUid = "6f81e43d-76f1-4a15-aafe-4ce2371d918a"
const ServiceTestName = "tf-provider-acceptance-test-0"
const SensorUid = "4b031caf-cea8-411d-8928-79f518163dae"
10 changes: 3 additions & 7 deletions test/mocked/util/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,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,
Longitude: 0.0,
Latitude: 0.0,
Notes: &notes,
PCapMode: &pcapMode,
Notes: "notes" + postfix,
PCapMode: "light" + postfix,
}
}

Expand Down

0 comments on commit 08f7e41

Please sign in to comment.