Skip to content

Commit

Permalink
update environment verification URIs
Browse files Browse the repository at this point in the history
Signed-off-by: Charlie Wheeler-Robinson <[email protected]>
  • Loading branch information
crwr45 committed Sep 7, 2023
1 parent 62c116f commit d2e38db
Show file tree
Hide file tree
Showing 14 changed files with 20 additions and 15 deletions.
2 changes: 1 addition & 1 deletion pkg/validations/cluster_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
)

const (
clusterVersionID = TGMIdBaseURI + "/version/ocp/"
clusterVersionID = TGMEnvVerPath + "/RHOCP/"
MinClusterVersion = "4.14.0-0" // trailing -0 is required to allow preGA version
)

Expand Down
7 changes: 6 additions & 1 deletion pkg/validations/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ import (
"github.com/redhat-partner-solutions/vse-sync-collection-tools/pkg/utils"
)

const TGMIdBaseURI = "https://github.com/redhat-partner-solutions/vse-sync-test/tree/main/tests/sync/G.8272/environment"
const (
TGMTestIDBase = "https://github.com/redhat-partner-solutions/vse-sync-test/tree/main/tests"
TGMEnvModelPath = TGMTestIDBase + "/environment/model"
TGMEnvVerPath = TGMTestIDBase + "/environment/version"
TGMSyncEnvPath = TGMTestIDBase + "/sync/G.8272/environment/status"
)

type VersionCheck struct {
id string `json:"-"`
Expand Down
2 changes: 1 addition & 1 deletion pkg/validations/device.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
)

const (
deviceDetailsID = TGMIdBaseURI + "/version/nic/model/wpc/"
deviceDetailsID = TGMEnvModelPath + "/nic/"
deviceDetailsDescription = "Card is valid NIC"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/validations/device_driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
)

const (
deviceDriverVersionID = TGMIdBaseURI + "/version/nic/driver/wpc/"
deviceDriverVersionID = TGMEnvVerPath + "/ice-driver/"
deviceDriverVersionDescription = "Card driver is valid"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/validations/device_firmware.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

const (
deviceFirmwareID = TGMIdBaseURI + "/version/nic/firmware/wpc/"
deviceFirmwareID = TGMEnvVerPath + "/nic-firmware/"
deviceFirmwareDescription = "Card firmware is valid"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/validations/gnss_ant_power_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

const (
expectedAntStatus = 2
gnssAntStatusID = TGMIdBaseURI + "/status/gnss/antenna-connected/wpc/"
gnssAntStatusID = TGMSyncEnvPath + "/gnss/antenna-connected/wpc/"
gnssAntStatusDescription = "GNSS Module is connected to an antenna"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/validations/gnss_devices.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
)

const (
hadGNSSDevices = TGMIdBaseURI + "/status/gnss/device-detected/wpc/"
hadGNSSDevices = TGMSyncEnvPath + "/gnss/device-detected/wpc/"
hadGNSSDevicesDescription = "Has GNSS Devices"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/validations/gnss_firmware_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

const (
gnssID = TGMIdBaseURI + "/version/gnss/firmware/wpc/"
gnssID = TGMEnvVerPath + "/gnss-firmware/"
gnssDescription = "GNSS Version is valid"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/validations/gnss_module.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

const (
expectedModuleName = "ZED-F9T"
gnssModuleIsCorrect = TGMIdBaseURI + "/version/gnss/model/wpc/"
gnssModuleIsCorrect = TGMEnvModelPath + "/gnss/"
gnssModuleIsCorrectDescription = "GNSS module is valid"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/validations/gnss_protocol_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
)

const (
gnssProtID = TGMIdBaseURI + "/version/gnss/protocol/wpc/"
gnssProtID = TGMEnvVerPath + "/gnss-protocol/"
gnssProtIDescription = "GNSS protocol version is valid"
MinProtoVersion = "29.20"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/validations/gnss_receiving_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
)

const (
gnssStatusID = TGMIdBaseURI + "/status/gnss/gpsfix-valid/wpc/"
gnssStatusID = TGMSyncEnvPath + "/gnss/gpsfix-valid/wpc/"
gnssStatusDescription = "GNSS Module receiving data"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/validations/gpsd_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

const (
gpsdID = TGMIdBaseURI + "/version/gnss/gpsd/wpc/"
gpsdID = TGMEnvVerPath + "/gpsd/"
gpsdDescription = "GPSD Version is valid"
MinGSPDVersion = "3.25"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/validations/grand_master.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
)

const (
configuredForGrandMaster = TGMIdBaseURI + "/status/ptp-operator/"
configuredForGrandMaster = TGMSyncEnvPath + "/ptp-operator/"
configuredForGrandMasterDescription = "Configured for grand master"
gmFlag = "ts2phc.master 1"
)
Expand Down
4 changes: 2 additions & 2 deletions pkg/validations/operator_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import (
)

const (
ptpOperatorVersionID = TGMIdBaseURI + "/version/ptp-operator/"
ptpOperatorVersionDescription = "PTP Operactor Version is valid"
ptpOperatorVersionID = TGMEnvVerPath + "/openshift/ptp-operator/"
ptpOperatorVersionDescription = "PTP Operator Version is valid"
MinOperatorVersion = "4.14.0-0" // trailing -0 is required to allow preGA version
ptpOperatorDiplayName = "PTP Operator"
)
Expand Down

0 comments on commit d2e38db

Please sign in to comment.