Skip to content
Open
Changes from all commits
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 @@ -535,7 +535,7 @@ func TestComponentParent(t *testing.T) {
for _, tc := range cases {
t.Run(tc.desc, func(t *testing.T) {

if len(compList[tc.desc]) == 0 && (dut.Model() == "DCS-7280CR3K-32D4" || dut.Model() == "CISCO-8202-32FH-M") {
if len(compList[tc.desc]) == 0 && (dut.Model() == "DCS-7280CR3K-32D4" || dut.Model() == "CISCO-8202-32FH-M" || dut.Model() == "PTX10002-36QDD") {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Hardcoding model-specific checks directly in the test file is discouraged. According to the repository's general rules, temporary vendor-specific or model-specific checks are acceptable in test files only if they are accompanied by a TODO comment and a link to an issue tracker, while waiting for a formal deviation to be introduced. Please add a TODO comment with a tracking issue URL.

			// TODO: PTX10002-36QDD does not support certain components. Move this to a deviation once confirmed.
			// https://github.com/openconfig/featureprofiles/issues/XXXXX
			if len(compList[tc.desc]) == 0 && (dut.Model() == "DCS-7280CR3K-32D4" || dut.Model() == "CISCO-8202-32FH-M" || dut.Model() == "PTX10002-36QDD") {
References
  1. Use deviations to allow alternate OC paths or CLI commands to achieve the same operational intent. Do not use them to skip validation or change the intent of the test. (link)
  2. Temporary vendor-specific checks (e.g., checking dut.Vendor()) are acceptable in test files if they are accompanied by a TODO comment and a link to an issue tracker, while waiting for the vendor to confirm the behavior and formally introduce a deviation.

t.Skipf("Test of %v is skipped due to hardware platform compatibility", tc.componentType)
}

Expand Down
Loading