Skip to content

Component test for Components Model - Eeprom - #751

Open
bibhuprasad-hcl wants to merge 1 commit into
sonic-net:masterfrom
bibhuprasad-hcl:componenttest_compmodel_Eeprom
Open

Component test for Components Model - Eeprom#751
bibhuprasad-hcl wants to merge 1 commit into
sonic-net:masterfrom
bibhuprasad-hcl:componenttest_compmodel_Eeprom

Conversation

@bibhuprasad-hcl

@bibhuprasad-hcl bibhuprasad-hcl commented Aug 14, 2026

Copy link
Copy Markdown

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

@mssonicbld

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@bibhuprasad-hcl
bibhuprasad-hcl marked this pull request as draft August 14, 2026 10:49
@mssonicbld

Copy link
Copy Markdown
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

@niranjanivivek

Copy link
Copy Markdown
Contributor

@ndas7 @rlucus Please review

@bibhuprasad-hcl
bibhuprasad-hcl marked this pull request as ready for review August 25, 2026 15:15
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

Comment thread gnmi_server/server_test.go
Comment thread gnmi_server/server_test.go Outdated
Comment thread gnmi_server/server_test.go Outdated
Comment thread gnmi_server/server_test.go Outdated
Comment thread gnmi_server/server_test.go Outdated
Comment thread gnmi_server/server_test.go
@bibhuprasad-hcl
bibhuprasad-hcl force-pushed the componenttest_compmodel_Eeprom branch from 11dc10c to 4ab17e2 Compare September 3, 2026 03:32
@mssonicbld

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

Signed-off-by: Bibhuprasad Singh <bibhuprasad@google.com>
@bibhuprasad-hcl
bibhuprasad-hcl force-pushed the componenttest_compmodel_Eeprom branch from 4ab17e2 to 6e9bd45 Compare September 3, 2026 03:49
@mssonicbld

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants