Skip to content

Component test for Components Model - SoftwareComponents#724

Draft
niranjanivivek wants to merge 1 commit into
sonic-net:masterfrom
niranjanivivek:componenttest_compmodel_swcomp
Draft

Component test for Components Model - SoftwareComponents#724
niranjanivivek wants to merge 1 commit into
sonic-net:masterfrom
niranjanivivek:componenttest_compmodel_swcomp

Conversation

@niranjanivivek

@niranjanivivek niranjanivivek commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

This PR is created to add a component test case for Open Config platform components software components Model.

Base PR - PR #230

=== RUN TestGnmiGetSoftwareComponents
=== RUN TestGnmiGetSoftwareComponents/Get_OS_Full_Component_Subtree_(AllPaths)
=== RUN TestGnmiGetSoftwareComponents/Get_OS_State_Container_(StatePaths)
=== RUN TestGnmiGetSoftwareComponents/Get_BootLoader_Full_Subtree
=== RUN TestGnmiGetSoftwareComponents/Get_BIOS_State_Container
=== RUN TestGnmiGetSoftwareComponents/Get_Network_Stack_Full_Subtree
=== RUN TestGnmiGetSoftwareComponents/Get_OS_Component_State_Name
=== RUN TestGnmiGetSoftwareComponents/Get_OS_Component_Type
=== RUN TestGnmiGetSoftwareComponents/Get_OS_Component_State_(Software_Version)
=== RUN TestGnmiGetSoftwareComponents/Get_OS_Component_State_Parent
=== RUN TestGnmiGetSoftwareComponents/Get_OS_Component_State_Oper_Status
=== RUN TestGnmiGetSoftwareComponents/Get_Bootloader_Software_Version
=== RUN TestGnmiGetSoftwareComponents/Get_Bootloader_component_name
=== RUN TestGnmiGetSoftwareComponents/Get_Bootloader_Specific_Type
=== RUN TestGnmiGetSoftwareComponents/Get_Software_Module_(Network_Stack)Type
=== RUN TestGnmiGetSoftwareComponents/Get_Software_Module_Oper_Status
=== RUN TestGnmiGetSoftwareComponents/Get_Network_Stack_Component_State_Type
=== RUN TestGnmiGetSoftwareComponents/Get_BIOS_Component_State_Type
=== RUN TestGnmiGetSoftwareComponents/Get_Software_Module_Container_Path
(COMP_SW_MOD)
=== RUN TestGnmiGetSoftwareComponents/Get_Software_Module_State_Container_Path_(COMP_SW_MOD_ST)
=== RUN TestGnmiGetSoftwareComponents/Get_OS_Component_Software_Version_when_missing_in_DB_(Expect_Error)
=== RUN TestGnmiGetSoftwareComponents/Get_Non-Existent_SW_Component_(Unknown_Component_Name)
=== RUN TestGnmiGetSoftwareComponents/Trigger_getCompTypeByName_for_OS_pattern_(not_in_DB)
=== RUN TestGnmiGetSoftwareComponents/Trigger_getCompTypeByName_for_Network_Stack_pattern_(not_in_DB)
=== RUN TestGnmiGetSoftwareComponents/Trigger_getCompTypeByName_for_BootLoader_pattern_(not_in_DB)
=== RUN TestGnmiGetSoftwareComponents/Get_Oper_Status_on_OS_with_invalid_status_string_in_DB_(Triggers_invalid_field_value_error)
=== RUN TestGnmiGetSoftwareComponents/Get_Module_Type_on_OS_Component_(Triggers_cType_!=CompTypeNWStack_error)
--- PASS: TestGnmiGetSoftwareComponents (3.38s)
--- PASS: TestGnmiGetSoftwareComponents/Get_OS_Full_Component_Subtree
(AllPaths) (0.03s)
--- PASS: TestGnmiGetSoftwareComponents/Get_OS_State_Container_(StatePaths) (0.01s)
--- PASS: TestGnmiGetSoftwareComponents/Get_BootLoader_Full_Subtree (0.01s)
--- PASS: TestGnmiGetSoftwareComponents/Get_BIOS_State_Container (0.01s)
--- PASS: TestGnmiGetSoftwareComponents/Get_Network_Stack_Full_Subtree (0.01s)
--- PASS: TestGnmiGetSoftwareComponents/Get_OS_Component_State_Name (0.01s)
--- PASS: TestGnmiGetSoftwareComponents/Get_OS_Component_Type (0.01s)
--- PASS: TestGnmiGetSoftwareComponents/Get_OS_Component_State_(Software_Version) (0.01s)
--- PASS: TestGnmiGetSoftwareComponents/Get_OS_Component_State_Parent (0.01s)
--- PASS: TestGnmiGetSoftwareComponents/Get_OS_Component_State_Oper_Status (0.01s)
--- PASS: TestGnmiGetSoftwareComponents/Get_Bootloader_Software_Version (0.01s)
--- PAsS: TestGnmiGetSoftwareComponents/Get_Bootloader_component_name (0.01s)
--- PASS: TestGnmiGetSoftwareComponents/Get_Bootloader_Specific_Type (0.01s)
--- PASS: TestGnmiGetSoftwareComponents/Get_Software_Module_(Network_Stack)Type (0.01s)
--- PASS: TestGnmiGetSoftwareComponents/Get_Software_Module_Oper_Status (0.01s)
--- PASS: TestGnmiGetSoftwareComponents/Get_Network_Stack_Component_State_Type (0.01s)
--- PASS: TestGnmiGetSoftwareComponents/Get_BIOS_Component_State_Type (0.01s)
--- PASS: TestGnmiGetSoftwareComponents/Get_Software_Module_Container_Path
(COMP_SW_MOD) (0.01s)
--- PASS: TestGnmiGetSoftwareComponents/Get_Software_Module_State_Container_Path_(COMP_SW_MOD_ST) (0.01s)
--- PASS: TestGnmiGetSoftwareComponents/Get_OS_Component_Software_Version_when_missing_in_DB_(Expect_Error) (0.01s)
--- PASS: TestGnmiGetSoftwareComponents/Get_Non-Existent_SW_Component_(Unknown_Component_Name) (0.01s)
--- PASS: TestGnmiGetSoftwareComponents/Trigger_getCompTypeByName_for_OS_pattern_(not_in_DB) (0.01s)
--- PASS: TestGnmiGetSoftwareComponents/Trigger_getCompTypeByName_for_Network_Stack_pattern_(not_in_DB) (0.01s)
--- PASS: TestGnmiGetSoftwareComponents/Trigger_getCompTypeByName_for_BootLoader_pattern_(not_in_DB) (0.01s)
--- PASS: TestGnmiGetSoftwareComponents/Get_Oper_Status_on_OS_with_invalid_status_string_in_DB_(Triggers_invalid_field_value_error) (0.01s)
--- PASS: TestGnmiGetSoftwareComponents/Get_Module_Type_on_OS_Component_(Triggers_cType_!=_CompTypeNWStack_error) (0.01s)

Signed-off-by: Niranjani Vivek <niranjaniv@google.com>
@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).

@niranjanivivek

Copy link
Copy Markdown
Contributor Author

@ndas7 @rlucus Please review

@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

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.

2 participants