Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
)

var (
fabricLeafOrValuePresent = make(map[string][]any)

Check failure on line 54 in feature/platform/fabric/otg_tests/fabric_redundancy_test/fabric_redundancy_test.go

View workflow job for this annotation

GitHub Actions / Static Analysis

var fabricLeafOrValuePresent is unused (U1000)
fabricLeafOrValueNotPresent = make(map[string]string)

Check failure on line 55 in feature/platform/fabric/otg_tests/fabric_redundancy_test/fabric_redundancy_test.go

View workflow job for this annotation

GitHub Actions / Static Analysis

var fabricLeafOrValueNotPresent is unused (U1000)
dutSrc = &attrs.Attributes{
Name: "dutSrc",
MAC: "00:12:01:01:01:01",
Expand Down Expand Up @@ -209,7 +209,7 @@
return otgConfig
}

func testFabricInventory(t *testing.T, dut *ondatra.DUTDevice, fabrics []string, od otgData) {

Check failure on line 212 in feature/platform/fabric/otg_tests/fabric_redundancy_test/fabric_redundancy_test.go

View workflow job for this annotation

GitHub Actions / Static Analysis

func testFabricInventory is unused (U1000)

for _, fabric := range fabrics {
t.Logf("\n\n VALIDATE %s: \n\n", fabric)
Expand Down Expand Up @@ -357,7 +357,7 @@
t.Errorf("Component %s, power-admin-state got: %v, want: %v", fabric, power, oc.Platform_ComponentPowerType_POWER_ENABLED)
}
}
if oper, ok := gnmi.Await(t, dut, gnmi.OC().Component(fabric).OperStatus().State(), 2*time.Minute, oc.PlatformTypes_COMPONENT_OPER_STATUS_ACTIVE).Val(); !ok {
if oper, ok := gnmi.Await(t, dut, gnmi.OC().Component(fabric).OperStatus().State(), 3*time.Minute, oc.PlatformTypes_COMPONENT_OPER_STATUS_ACTIVE).Val(); !ok {
t.Errorf("Component %s oper-status after POWER_ENABLED, got: %v, want: %v", fabric, oper, oc.PlatformTypes_COMPONENT_OPER_STATUS_ACTIVE)
}

Expand Down Expand Up @@ -459,7 +459,7 @@
t.Errorf("Component %s, power-admin-state got: %v, want: %v", disabledFabric, power, oc.Platform_ComponentPowerType_POWER_ENABLED)
}
}
if oper, ok := gnmi.Await(t, dut, gnmi.OC().Component(disabledFabric).OperStatus().State(), 2*time.Minute, oc.PlatformTypes_COMPONENT_OPER_STATUS_ACTIVE).Val(); !ok {
if oper, ok := gnmi.Await(t, dut, gnmi.OC().Component(disabledFabric).OperStatus().State(), 3*time.Minute, oc.PlatformTypes_COMPONENT_OPER_STATUS_ACTIVE).Val(); !ok {
t.Errorf("Component %s oper-status after POWER_ENABLED, got: %v, want: %v", disabledFabric, oper, oc.PlatformTypes_COMPONENT_OPER_STATUS_ACTIVE)
}

Expand Down Expand Up @@ -539,11 +539,11 @@
}

testCases := []testCase{
{
name: "TEST 1: Fabric inventory",
fabrics: fabrics,
testFunc: testFabricInventory,
},
//{
// name: "TEST 1: Fabric inventory",
// fabrics: fabrics,
// testFunc: testFabricInventory,
//}//,
{
name: "TEST 2: Fabric redundancy",
fabrics: fabrics,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ func TestOnChangeBackplaneCapacityCounters(t *testing.T) {
t.Errorf("Component %s, power-admin-state got: %v, want: %v", f, power, oc.Platform_ComponentPowerType_POWER_ENABLED)
}
}
if oper, ok := gnmi.Await(t, dut, gnmi.OC().Component(f).OperStatus().State(), 2*time.Minute, oc.PlatformTypes_COMPONENT_OPER_STATUS_ACTIVE).Val(); !ok {
if oper, ok := gnmi.Await(t, dut, gnmi.OC().Component(f).OperStatus().State(), 3*time.Minute, oc.PlatformTypes_COMPONENT_OPER_STATUS_ACTIVE).Val(); !ok {
t.Errorf("Component %s oper-status after POWER_ENABLED, got: %v, want: %v", f, oper, oc.PlatformTypes_COMPONENT_OPER_STATUS_ACTIVE)
}
}
Expand Down
Loading