Component test for Components Model - Eeprom - #751
Open
bibhuprasad-hcl wants to merge 1 commit into
Open
Conversation
Contributor
|
/azp run |
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
bibhuprasad-hcl
marked this pull request as draft
August 14, 2026 10:49
Contributor
|
Hi, there are workflow run(s) waiting for approval, you may be first-time contributor. I will notify maintainers to help approve once PR is approved. Thanks! ---Powered by SONiC BuildBot
|
Contributor
rlucus
approved these changes
Aug 19, 2026
bibhuprasad-hcl
marked this pull request as ready for review
August 25, 2026 15:15
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
ndas7
suggested changes
Sep 2, 2026
bibhuprasad-hcl
force-pushed
the
componenttest_compmodel_Eeprom
branch
from
September 3, 2026 03:32
11dc10c to
4ab17e2
Compare
Contributor
|
/azp run |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
Signed-off-by: Bibhuprasad Singh <bibhuprasad@google.com>
bibhuprasad-hcl
force-pushed
the
componenttest_compmodel_Eeprom
branch
from
September 3, 2026 03:49
4ab17e2 to
6e9bd45
Compare
Contributor
|
/azp run |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR is created to add a component test case for Open Config platform components Eeprom Model.
Base PR :
System EEPROM Support:
sonic-mgmt-common/pull/236
Test logs:
=== RUN TestGnmiGetPlatformSysEepromComponents
=== RUN TestGnmiGetPlatformSysEepromComponents/Get_System_Eeprom_State_Container
server_test.go:4930: [TestGnmiGetPlatformSysEepromComponents/Get_System_Eeprom_State_Container] gotVal:
{
"openconfig-platform:state": {
"description": "x86_64-dell_z9100_c2538-r0",
"empty": false,
"hardware-version": "HW-v1.0",
"id": "Z9100ON",
"location": "Slot 1",
"mfg-date": "2026-01-01",
"mfg-name": "Test-Manufacturer",
"name": "System Eeprom",
"oper-status": "openconfig-platform-types:ACTIVE",
"part-no": "PN-12345",
"removable": false,
"serial-no": "SN-987654321",
"software-version": "SW-v2.0"
}
}
=== RUN TestGnmiGetPlatformSysEepromComponents/Get_System_Eeprom_State_Name
server_test.go:4930: [TestGnmiGetPlatformSysEepromComponents/Get_System_Eeprom_State_Name] gotVal:
{
"openconfig-platform:name": "System Eeprom"
}
=== RUN TestGnmiGetPlatformSysEepromComponents/Get_System_Eeprom_State_Location
server_test.go:4930: [TestGnmiGetPlatformSysEepromComponents/Get_System_Eeprom_State_Location] gotVal:
{
"openconfig-platform:location": "Slot 1"
}
=== RUN TestGnmiGetPlatformSysEepromComponents/Get_System_Eeprom_State_Empty
server_test.go:4930: [TestGnmiGetPlatformSysEepromComponents/Get_System_Eeprom_State_Empty] gotVal:
{
"openconfig-platform:empty": false
}
=== RUN TestGnmiGetPlatformSysEepromComponents/Get_System_Eeprom_State_Removable
server_test.go:4930: [TestGnmiGetPlatformSysEepromComponents/Get_System_Eeprom_State_Removable] gotVal:
{
"openconfig-platform:removable": false
}
=== RUN TestGnmiGetPlatformSysEepromComponents/Get_System_Eeprom_State_Oper_Status
server_test.go:4930: [TestGnmiGetPlatformSysEepromComponents/Get_System_Eeprom_State_Oper_Status] gotVal:
{
"openconfig-platform:oper-status": "openconfig-platform-types:ACTIVE"
}
=== RUN TestGnmiGetPlatformSysEepromComponents/Get_System_Eeprom_State_ID_(Product_Name)
server_test.go:4930: [TestGnmiGetPlatformSysEepromComponents/Get_System_Eeprom_State_ID_(Product_Name)] gotVal:
{
"openconfig-platform:id": "Z9100ON"
}
=== RUN TestGnmiGetPlatformSysEepromComponents/Get_System_Eeprom_State_Part_Number
server_test.go:4930: [TestGnmiGetPlatformSysEepromComponents/Get_System_Eeprom_State_Part_Number] gotVal:
{
"openconfig-platform:part-no": "PN-12345"
}
=== RUN TestGnmiGetPlatformSysEepromComponents/Get_System_Eeprom_State_Serial_Number
server_test.go:4930: [TestGnmiGetPlatformSysEepromComponents/Get_System_Eeprom_State_Serial_Number] gotVal:
{
"openconfig-platform:serial-no": "SN-987654321"
}
=== RUN TestGnmiGetPlatformSysEepromComponents/Get_System_Eeprom_State_Mfg_Date
server_test.go:4930: [TestGnmiGetPlatformSysEepromComponents/Get_System_Eeprom_State_Mfg_Date] gotVal:
{
"openconfig-platform:mfg-date": "2026-01-01"
}
=== RUN TestGnmiGetPlatformSysEepromComponents/Get_System_Eeprom_State_Hardware_Version
server_test.go:4930: [TestGnmiGetPlatformSysEepromComponents/Get_System_Eeprom_State_Hardware_Version] gotVal:
{
"openconfig-platform:hardware-version": "A00"
}
=== RUN TestGnmiGetPlatformSysEepromComponents/Get_System_Eeprom_State_Description
server_test.go:4930: [TestGnmiGetPlatformSysEepromComponents/Get_System_Eeprom_State_Description] gotVal:
{
"openconfig-platform:description": "x86_64-dell_z9100_c2538-r0"
}
=== RUN TestGnmiGetPlatformSysEepromComponents/Get_System_Eeprom_State_Mfg_Name
server_test.go:4930: [TestGnmiGetPlatformSysEepromComponents/Get_System_Eeprom_State_Mfg_Name] gotVal:
{
"openconfig-platform:mfg-name": "Test-Manufacturer"
}
=== RUN TestGnmiGetPlatformSysEepromComponents/Get_System_Eeprom_State_Software_Version
server_test.go:4930: [TestGnmiGetPlatformSysEepromComponents/Get_System_Eeprom_State_Software_Version] gotVal:
{
"openconfig-platform:software-version": "SW-v2.0"
}
=== RUN TestGnmiGetPlatformSysEepromComponents/Get_Non-Existent_Platform_Component_(Expect_NotFound)
server_test.go:4930: [TestGnmiGetPlatformSysEepromComponents/Get_Non-Existent_Platform_Component_(Expect_NotFound)] gotVal:
null
--- PASS: TestGnmiGetPlatformSysEepromComponents (2.14s)
--- PASS: TestGnmiGetPlatformSysEepromComponents/Get_System_Eeprom_State_Container (0.05s)
--- PASS: TestGnmiGetPlatformSysEepromComponents/Get_System_Eeprom_State_Name (0.03s)
--- PASS: TestGnmiGetPlatformSysEepromComponents/Get_System_Eeprom_State_Location (0.03s)
--- PASS: TestGnmiGetPlatformSysEepromComponents/Get_System_Eeprom_State_Empty (0.03s)
--- PASS: TestGnmiGetPlatformSysEepromComponents/Get_System_Eeprom_State_Removable (0.03s)
--- PASS: TestGnmiGetPlatformSysEepromComponents/Get_System_Eeprom_State_Oper_Status (0.03s)
--- PASS: TestGnmiGetPlatformSysEepromComponents/Get_System_Eeprom_State_ID_(Product_Name) (0.03s)
--- PASS: TestGnmiGetPlatformSysEepromComponents/Get_System_Eeprom_State_Part_Number (0.03s)
--- PASS: TestGnmiGetPlatformSysEepromComponents/Get_System_Eeprom_State_Serial_Number (0.03s)
--- PASS: TestGnmiGetPlatformSysEepromComponents/Get_System_Eeprom_State_Mfg_Date (0.03s)
--- PASS: TestGnmiGetPlatformSysEepromComponents/Get_System_Eeprom_State_Hardware_Version (0.03s)
--- PASS: TestGnmiGetPlatformSysEepromComponents/Get_System_Eeprom_State_Description (0.03s)
--- PASS: TestGnmiGetPlatformSysEepromComponents/Get_System_Eeprom_State_Mfg_Name (0.03s)
--- PASS: TestGnmiGetPlatformSysEepromComponents/Get_System_Eeprom_State_Software_Version (0.03s)
--- PASS: TestGnmiGetPlatformSysEepromComponents/Get_Non-Existent_Platform_Component_(Expect_NotFound) (0.01s)
PASS