Skip to content

Commit

Permalink
GNMI-1.10 Based on discussion in PR-1720 and b/283934938, removing ma…
Browse files Browse the repository at this point in the history
…nufacturer name validation for CPU. (openconfig#1875)

"This code is a Contribution to the OpenConfig Feature Profiles project ("Work") made under the Google Software Grant and Corporate Contributor License Agreement ("CLA") and governed by the Apache License 2.0. No other rights or licenses in or to any of Nokia's intellectual property are granted for any other purpose. This code is provided on an "as is" basis without any warranties of any kind."
  • Loading branch information
trathod1 authored Jul 28, 2023
1 parent c7e9268 commit 7ac614e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -533,11 +533,6 @@ func TestCPU(t *testing.T) {
for _, cpu := range cpus {
t.Logf("Validate CPU: %s", cpu)
component := gnmi.OC().Component(cpu)
if !gnmi.Lookup(t, dut, component.MfgName().State()).IsPresent() {
t.Errorf("component.MfgName().Lookup(t).IsPresent() for %q: got false, want true", cpu)
} else {
t.Logf("CPU %s MfgName: %s", cpu, gnmi.Get(t, dut, component.MfgName().State()))
}
if !gnmi.Lookup(t, dut, component.Description().State()).IsPresent() {
t.Errorf("component.Description().Lookup(t).IsPresent() for %q: got false, want true", cpu)
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -536,11 +536,6 @@ func TestCPU(t *testing.T) {
for _, cpu := range cpus {
t.Logf("Validate CPU: %s", cpu)
component := gnmi.OC().Component(cpu)
if !gnmi.Lookup(t, dut, component.MfgName().State()).IsPresent() {
t.Errorf("component.MfgName().Lookup(t).IsPresent() for %q: got false, want true", cpu)
} else {
t.Logf("CPU %s MfgName: %s", cpu, gnmi.Get(t, dut, component.MfgName().State()))
}
if !gnmi.Lookup(t, dut, component.Description().State()).IsPresent() {
t.Errorf("component.Description().Lookup(t).IsPresent() for %q: got false, want true", cpu)
} else {
Expand Down

0 comments on commit 7ac614e

Please sign in to comment.